AgsUUID
AgsUUID — boxed type of uuid
|
|
Stability Level
Stable, unless otherwise indicated
Object Hierarchy
GBoxed
╰── AgsUUID
Includes
#include <ags/lib/ags_uuid.h>
Description
Boxed type of uuid_t data type.
Functions
ags_uuid_alloc ()
AgsUUID *
ags_uuid_alloc ();
Allocate AgsUUID.
Since: 3.0.0
ags_uuid_copy ()
gpointer
ags_uuid_copy (AgsUUID *ptr
);
Create a copy of ptr
.
Returns
a pointer of the new AgsUUID
Since: 3.0.0
ags_uuid_free ()
void
ags_uuid_free (AgsUUID *ptr
);
Free the memory of ptr
.
Since: 3.0.0
ags_uuid_generate ()
void
ags_uuid_generate (AgsUUID *ptr
);
Generate random UUID.
Since: 3.0.0
ags_uuid_compare ()
gint
ags_uuid_compare (AgsUUID *a
,
AgsUUID *b
);
Compare a
with b
.
Returns
0 on success, otherwise a value less or greater than 0
Since: 3.0.0
ags_uuid_to_string ()
gchar *
ags_uuid_to_string (AgsUUID *ptr
);
Get string representation of ptr
.
Returns
the UUID as string if ptr
not NULL
, else NULL
.
[transfer full]
Since: 3.0.0
ags_uuid_from_string ()
AgsUUID *
ags_uuid_from_string (gchar *str
);
Retrieve AgsUUID by parsing str
.
Returns
the new AgsUUID on success, otherwise NULL
Since: 3.0.0
Types and Values
AGS_UUID_DEFAULT_LENGTH
#define AGS_UUID_DEFAULT_LENGTH (16)
AGS_UUID_STRING_DEFAULT_LENGTH
#define AGS_UUID_STRING_DEFAULT_LENGTH (36)