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)
75typedef struct _gncGuid {
76 unsigned char reserved[GUID_DATA_SIZE];
79GType gnc_guid_get_type (
void);
84#define GUID_ENCODING_LENGTH 32
166gboolean string_to_guid(
const gchar *
string,
GncGUID * 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(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.
gboolean guid_equal(const GncGUID *guid_1, const GncGUID *guid_2)
Given two GUIDs, return TRUE if they are non-NULL and equal.
guint guid_hash_to_guint(gconstpointer ptr)
Hash function for a GUID.
void guid_replace(GncGUID *guid)
Generate a new guid.
GncGUID * guid_copy(const GncGUID *guid)
Returns a newly allocated GncGUID that matches the passed-in GUID.
const GncGUID * gnc_value_get_guid(const GValue *value)
gnc_value_get_guid
gint guid_g_hash_table_equal(gconstpointer guid_a, gconstpointer guid_b)
Equality function for two GUIDs in a GHashTable.
GncGUID guid_new_return(void)
Generate a new id.
GncGUID * guid_malloc(void)
Allocate memory for a GUID.
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...
GncGUID * guid_new(void)
Allocate and construct a new GUID.
The type used to store guids in C.