![]() |
![]() |
![]() |
GData Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <gdata/gdata-gdata.h> GDataGDFeedLink; GDataGDFeedLink * gdata_gd_feed_link_new (const gchar *href, const gchar *rel, guint count_hint); void gdata_gd_feed_link_free (GDataGDFeedLink *self); GDataGDRating; GDataGDRating * gdata_gd_rating_new (guint min, guint max, guint num_raters, gdouble average); void gdata_gd_rating_free (GDataGDRating *self); GDataGDWhere; GDataGDWhere * gdata_gd_where_new (const gchar *rel, const gchar *value_string, const gchar *label); void gdata_gd_where_free (GDataGDWhere *self); GDataGDWho; GDataGDWho * gdata_gd_who_new (const gchar *rel, const gchar *value_string, const gchar *email); void gdata_gd_who_free (GDataGDWho *self);
The structures here represent several core GData-specific elements used by various different GData-based services, from the "gdata" namespace.
For more information on the common GData elements, see the GData specification.
typedef struct { gchar *rel; gchar *href; guint count_hint; /* TODO: support readOnly and feed */ } GDataGDFeedLink;
A structure fully representing a GData "rating" element. The href
field is required, but the others are optional.
See the GData specification for more information.
Currently, readOnly and feed functionality is not implemented in GDataGDFeedLink.
the relationship between the related feed and the current item, or NULL
|
|
the URI of the related feed | |
a hint about the number of items in the related feed |
GDataGDFeedLink * gdata_gd_feed_link_new (const gchar *href, const gchar *rel, guint count_hint);
Creates a new GDataGDFeedLink. More information is available in the GData specification.
Currently, readOnly and feed functionality is not implemented in GDataGDFeedLink.
|
the URI of the related feed |
|
the relationship between the related feed and the current item, or NULL
|
|
a hint about the number of items in the related feed |
Returns : |
a new GDataGDFeedLink, or NULL on error
|
void gdata_gd_feed_link_free (GDataGDFeedLink *self);
Frees a GDataGDFeedLink.
|
a GDataGDFeedLink |
typedef struct { guint min; guint max; guint num_raters; gdouble average; } GDataGDRating;
A structure fully representing a GData "rating" element. All fields are required.
See the GData specification for more information.
Currently, rel and value functionality is not implemented in GDataGDRating.
GDataGDRating * gdata_gd_rating_new (guint min, guint max, guint num_raters, gdouble average);
Creates a new GDataGDRating. More information is available in the GData specification.
Currently, rel and value functionality is not implemented in GDataGDRating.
|
the minimum rating which can be chosen (typically 1 )
|
|
the maximum rating which can be chosen (typically 5 )
|
|
the number of people who have rated the item |
|
the average rating for the item |
Returns : |
a new GDataGDRating |
void gdata_gd_rating_free (GDataGDRating *self);
Frees a GDataGDRating.
|
a GDataGDRating |
typedef struct { gchar *rel; gchar *value_string; gchar *label; /* TODO: deal with the entryLink */ } GDataGDWhere;
A structure fully representing a GData "where" element. All fields are optional.
See the GData specification for more information.
Currently, entryLink functionality is not implemented in GDataGDWhere.
GDataGDWhere * gdata_gd_where_new (const gchar *rel, const gchar *value_string, const gchar *label);
Creates a new GDataGDWhere. More information is available in the GData specification.
Currently, entryLink functionality is not implemented in GDataGDWhere.
|
the relationship between the item and this place, or NULL
|
|
a string to represent the place, or NULL
|
|
a human-readable label for the place, or NULL
|
Returns : |
a new GDataGDWhere |
void gdata_gd_where_free (GDataGDWhere *self);
Frees a GDataGDWhere.
|
a GDataGDWhere |
typedef struct { gchar *rel; gchar *value_string; gchar *email; /* TODO: deal with the attendeeType, attendeeStatus and entryLink */ } GDataGDWho;
A structure fully representing a GData "who" element. All fields are optional.
See the GData specification for more information.
Currently, entryLink functionality is not implemented in GDataGDWho.
GDataGDWho * gdata_gd_who_new (const gchar *rel, const gchar *value_string, const gchar *email);
Creates a new GDataGDWho. More information is available in the GData specification.
Currently, entryLink functionality is not implemented in GDataGDWho.
|
the relationship between the item and this person, or NULL
|
|
a string to represent the person, or NULL
|
|
the person's e-mail address, or NULL
|
Returns : |
a new GDataGDWho |
void gdata_gd_who_free (GDataGDWho *self);
Frees a GDataGDWho.
|
a GDataGDWho |