![]() |
![]() |
![]() |
GData Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <gdata/atom/gdata-generator.h> GDataGenerator; GDataGeneratorClass; gint gdata_generator_compare (const GDataGenerator *a, const GDataGenerator *b); const gchar * gdata_generator_get_name (GDataGenerator *self); const gchar * gdata_generator_get_uri (GDataGenerator *self); const gchar * gdata_generator_get_version (GDataGenerator *self);
typedef struct _GDataGenerator GDataGenerator;
All the fields in the GDataGenerator structure are private and should never be accessed directly.
typedef struct { } GDataGeneratorClass;
All the fields in the GDataGeneratorClass structure are private and should never be accessed directly.
Since 0.4.0
gint gdata_generator_compare (const GDataGenerator *a, const GDataGenerator *b);
Compares the two generators in a strcmp()
fashion. NULL
values are handled gracefully, with
0
returned if both a
and b
are NULL
, -1
if a
is NULL
and 1
if b
is NULL
.
The comparison of non-NULL
values is done on the basis of the name
property of the GDataGenerators.
|
a GDataGenerator, or NULL
|
|
another GDataGenerator, or NULL
|
Returns : |
0 if a equals b , -1 or 1 as appropriate otherwise
|
Since 0.4.0
const gchar * gdata_generator_get_name (GDataGenerator *self);
Gets the "name" property.
|
a GDataGenerator |
Returns : |
the generator's name |
Since 0.4.0
const gchar * gdata_generator_get_uri (GDataGenerator *self);
Gets the "uri" property.
|
a GDataGenerator |
Returns : |
the generator's URI, or NULL
|
Since 0.4.0
"name"
property"name" gchar* : Read
A human-readable name for the generating agent.
For more information, see the Atom specification.
Default value: NULL
Since 0.4.0
"uri"
property"uri" gchar* : Read
An IRI reference that is relevant to the agent.
For more information, see the Atom specification.
Default value: NULL
Since 0.4.0
"version"
property"version" gchar* : Read
Indicates the version of the generating agent.
For more information, see the Atom specification.
Default value: NULL
Since 0.4.0