|
Defines |
| #define | ATOM_STRING 0 /**< Strings */ |
| | Strings.
|
| #define | ATOM_GUID 1 /**< GUIDs (binary, 16 bytes) */ |
| | GUIDs (binary, 16 bytes).
|
| #define | ATOM_SHA1 2 /**< SHA1 (binary, 20 bytes) */ |
| | SHA1 (binary, 20 bytes).
|
| #define | ATOM_UINT64 3 /**< integers (binary, 8 bytes) */ |
| | integers (binary, 8 bytes)
|
| #define | atom_str_get(k) atom_get(ATOM_STRING, k) |
| #define | atom_str_free(k) atom_free(ATOM_STRING, k) |
| #define | atom_guid_get(k) atom_get(ATOM_GUID, k) |
| #define | atom_guid_free(k) atom_free(ATOM_GUID, k) |
| #define | atom_sha1_get(k) atom_get(ATOM_SHA1, k) |
| #define | atom_sha1_free(k) atom_free(ATOM_SHA1, k) |
| #define | atom_uint64_get(k) atom_get(ATOM_UINT64, k) |
| #define | atom_uint64_free(k) atom_free(ATOM_UINT64, k) |
Functions |
| void | atoms_init (void) |
| | Initialize atom structures.
|
| void | atoms_close (void) |
| | Shutdown atom structures, freeing all remaining atoms.
|
| guint | uint64_hash (gconstpointer key) |
| | Calculate the 32-bit hash of a 64-bit integer.
|
| gint | uint64_eq (gconstpointer a, gconstpointer b) |
| | Test two 64-bit integers for equality.
|
| guint | sha1_hash (gconstpointer key) |
| | Hash a SHA1 (20 bytes).
|
| gint | sha1_eq (gconstpointer a, gconstpointer b) |
| | Test two SHA1s for equality.
|
| guint | guid_hash (gconstpointer key) |
| | Hash a GUID (16 bytes).
|
| gint | guid_eq (gconstpointer a, gconstpointer b) |
| | Test two GUIDs for equality.
|
| guint | binary_hash (const guchar *key, guint len) |
| | Hash `len' bytes (multiple of 4) starting from `key'.
|
| gpointer | atom_get (gint type, gconstpointer key) |
| | Get atom of given `type', whose value is `key'.
|
| void | atom_free (gint type, gconstpointer key) |
| | Remove one reference from atom.
|