| GData Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <gdata/gdata-atom.h>
GDataAuthor;
GDataAuthor * gdata_author_new (const gchar *name,
const gchar *uri,
const gchar *email);
void gdata_author_free (GDataAuthor *self);
GDataCategory;
GDataCategory * gdata_category_new (const gchar *term,
const gchar *scheme,
const gchar *label);
void gdata_category_free (GDataCategory *self);
GDataLink;
GDataLink * gdata_link_new (const gchar *href,
const gchar *rel,
const gchar *type,
const gchar *hreflang,
const gchar *title,
gint length);
void gdata_link_free (GDataLink *self);
GDataGenerator;
GDataGenerator * gdata_generator_new (const gchar *name,
const gchar *uri,
const gchar *version);
void gdata_generator_free (GDataGenerator *self);
The structures here represent several core elements in the Atom specification which are used in GData APIs, as the GData API is based on Atom.
typedef struct {
gchar *name;
gchar *uri;
gchar *email;
} GDataAuthor;
A structure fully representing an Atom "author" element. The name field is required, but the others are optional.
See the Atom specification for more information.
GDataAuthor * gdata_author_new (const gchar *name, const gchar *uri, const gchar *email);
Creates a new GDataAuthor. More information is available in the Atom specification.
All the parameters are copied, so can be freed after calling this function.
|
the author's name |
|
an IRI describing the author, or NULL
|
|
the author's e-mail address, or NULL
|
Returns : |
a new GDataAuthor, or NULL on error
|
void gdata_author_free (GDataAuthor *self);
Frees a GDataAuthor and its fields.
|
a GDataAuthor |
typedef struct {
gchar *term;
gchar *scheme;
gchar *label;
} GDataCategory;
A structure fully representing an Atom "category" element. The term field is required, but the others are optional.
See the Atom specification for more information.
GDataCategory * gdata_category_new (const gchar *term, const gchar *scheme, const gchar *label);
Creates a new GDataCategory. More information is available in the Atom specification.
All the parameters are copied, so can be freed after calling this function.
|
a category identifier |
|
an IRI to define the categorisation scheme, or NULL
|
|
a human-readable label for the category, or NULL
|
Returns : |
a new GDataCategory, or NULL on error
|
void gdata_category_free (GDataCategory *self);
Frees a GDataCategory and its fields.
|
a GDataCategory |
typedef struct {
gchar *href;
gchar *rel;
gchar *type;
gchar *hreflang;
gchar *title;
gint length;
} GDataLink;
A structure fully representing an Atom "link" element. The href field is required, but the others are optional.
See the Atom specification for more information.
GDataLink * gdata_link_new (const gchar *href, const gchar *rel, const gchar *type, const gchar *hreflang, const gchar *title, gint length);
Creates a new GDataLink. More information is available in the Atom specification.
All the parameters are copied, so can be freed after calling this function.
|
the link's IRI |
|
the relationship of the link to the current document, or NULL
|
|
an advisory media type for the href page, or NULL
|
|
the language of the href page, or NULL
|
|
human-readable information about the link, or NULL
|
|
an advisory content length, in octets, for the href page, or -1
|
Returns : |
a new GDataLink, or NULL on error
|
void gdata_link_free (GDataLink *self);
Frees a GDataLink and its fields.
|
a GDataLink |
typedef struct {
gchar *uri;
gchar *version;
gchar *name;
} GDataGenerator;
A structure fully representing an Atom "generator" element. The name field is required, but the others are optional.
See the Atom specification for more information.
GDataGenerator * gdata_generator_new (const gchar *name, const gchar *uri, const gchar *version);
Creates a new GDataGenerator. More information is available in the Atom specification.
All the parameters are copied, so can be freed after calling this function.
|
the human-readable generator's name |
|
an IRI describing the generator, or NULL
|
|
the version of the generator, or NULL
|
Returns : |
a new GDataGenerator, or NULL on error
|
void gdata_generator_free (GDataGenerator *self);
Frees a GDataGenerator and its fields.
|
a GDataGenerator |