guid.h revision 8562f8de469e87ad4104747cebec6b133fa3a0f5
#ifndef GUID_H
#define GUID_H
#define GUID_128_SIZE 16
#define GUID_128_HOST_HASH_SIZE 4
/* Generate a GUID (contains host name) */
const char *guid_generate(void);
/* Generate 128 bit GUID */
/* Returns TRUE if GUID is empty (not set / unknown). */
/* Returns TRUE if two GUIDs are equal. */
/* Copy GUID */
{
}
/* Returns GUID as a hex string. */
/* Parse GUID from a string. Returns 0 if ok, -1 if GUID isn't valid. */
/* Return the hash of host used by guid_128_generate(). */
void guid_128_host_hash_get(const char *host,
unsigned char hash_r[GUID_128_HOST_HASH_SIZE]);
#endif