[Insert name here] Reference Manual | ||||
---|---|---|---|---|
GanId; GanId* gan_id_new (); void gan_id_unref (GanId *id); GanId* gan_id_generate (); GanId* gan_id_new_with_id (uuid_t uuid); GanId* gan_id_dup (const GanId *id); void gan_id_assign (GanId *id, const GanId *other); void gan_id_clear (GanId *id); void gan_id_set_id (GanId *id, uuid_t uuid); void gan_id_get_id (const GanId *id, uuid_t uuid); gboolean gan_id_is_null (const GanId *id); gboolean gan_id_equals (const GanId *this, const GanId *that); gboolean gan_id_in_list (const GanId *id, const GList *list); gchar* gan_id_get_description (const GanId *id);
void gan_id_unref (GanId *id);
Decrement the GObject reference counter for an identifier.
id : |
GanId* gan_id_generate ();
Generate a new, world-unique identifier.
Returns : | A new identifier. |
GanId* gan_id_new_with_id (uuid_t uuid);
Create a new identifier with a uuid_t.
uuid : |
The uuid_t to assign the new identifier. |
Returns : | A new identifier. |
GanId* gan_id_dup (const GanId *id);
Duplicate an identifier.
id : |
The identifier to duplicate. |
Returns : | A copy of id .
|
void gan_id_assign (GanId *id, const GanId *other);
Assign the value one identifier to another.
id : |
The identifier to be assigned to. |
other : |
The identifier whose value to assign. |
void gan_id_clear (GanId *id);
Set an itentifier to NULL.
id : |
The identifier to nullify. |
void gan_id_set_id (GanId *id, uuid_t uuid);
Set an identifier to the value of a uuid_t.
id : |
The identifier whose value to set. |
uuid : |
The uuid_t to set it to. |
void gan_id_get_id (const GanId *id, uuid_t uuid);
Extract the value of an identifier into a uuid_t.
id : |
The identifier whose value to extract. |
uuid : |
The uuid_t to extract the value into. |
gboolean gan_id_is_null (const GanId *id);
Determine whether an identifier is NULL.
gboolean gan_id_equals (const GanId *this, const GanId *that);
Check two identifiers for equality.
gboolean gan_id_in_list (const GanId *id, const GList *list);
Check whether a list of identifiers contains a specific identifier.