28 #include <glib-object.h> 59 #define GUID_DATA_SIZE 16 61 #define GNC_TYPE_GUID (gnc_guid_get_type()) 62 #define GNC_VALUE_HOLDS_GUID(value) G_VALUE_HOLDS(value, GNC_TYPE_GUID) 75 typedef struct _gncGuid {
76 unsigned char reserved[GUID_DATA_SIZE];
79 GType gnc_guid_get_type (
void);
84 #define GUID_ENCODING_LENGTH 32 118 void guid_free (
GncGUID *guid);
void guid_replace(GncGUID *guid)
Generate a new guid.
GncGUID guid_new_return(void)
Generate a new id.
GncGUID * guid_copy(const GncGUID *guid)
Returns a newly allocated GncGUID that matches the passed-in GUID.
gboolean string_to_guid(const gchar *string, GncGUID *guid)
Given a string, replace the given guid with the parsed one unless the given value is null...
GncGUID * guid_new(void)
Allocate and construct a new GUID.
GHashTable * guid_hash_table_new(void)
Returns a GHashTable with <GUID*> as key and a <gpointer> as value and no destructor functions for ke...
gchar * guid_to_string_buff(const GncGUID *guid, gchar *buff)
The guid_to_string_buff() routine puts a null-terminated string encoding of the id into the memory po...
guint guid_hash_to_guint(gconstpointer ptr)
Hash function for a GUID.
const GncGUID * gnc_value_get_guid(const GValue *value)
gnc_value_get_guid
GncGUID * guid_malloc(void)
Allocate memory for a GUID.
gboolean guid_equal(const GncGUID *guid_1, const GncGUID *guid_2)
Given two GUIDs, return TRUE if they are non-NULL and equal.
gchar * guid_to_string(const GncGUID *guid)
The guid_to_string() routine returns a null-terminated string encoding of the id. ...
const GncGUID * guid_null(void)
Returns a GncGUID which is guaranteed to never reference any entity.
The type used to store guids in C.
gint guid_g_hash_table_equal(gconstpointer guid_a, gconstpointer guid_b)
Equality function for two GUIDs in a GHashTable.