Provide UUID functions compatible with libuuid from util-linux-ng. More...
#include <config.h>#include "win32_uuid.h"#include "xapian/error.h"#include <cstring>#include "stringutils.h"#include <arpa/inet.h>
Include dependency graph for win32_uuid.cc:Go to the source code of this file.
Functions | |
| void | uuid_generate (uuid_t uu) |
| int | uuid_parse (const char *in, uuid_t uu) |
| void | uuid_unparse_lower (const uuid_t uu, char *out) |
| void | uuid_clear (uuid_t uu) |
| int | uuid_is_null (const uuid_t uu) |
Variables | |
| const size_t | UUID_SIZE = 16 |
| The size of a UUID in bytes. More... | |
Provide UUID functions compatible with libuuid from util-linux-ng.
Definition in file win32_uuid.cc.
| void uuid_clear | ( | uuid_t | uu | ) |
Definition at line 83 of file win32_uuid.cc.
References UUID_SIZE.
| void uuid_generate | ( | uuid_t | uu | ) |
Definition at line 44 of file win32_uuid.cc.
References close(), Xapian::InMemory::open(), rare, uuid_parse(), UUID_SIZE, and UUID_STRING_SIZE.
| int uuid_is_null | ( | const uuid_t | uu | ) |
Definition at line 88 of file win32_uuid.cc.
References UUID_SIZE.
| int uuid_parse | ( | const char * | in, |
| uuid_t | uu | ||
| ) |
Definition at line 62 of file win32_uuid.cc.
References hex_digit(), and UUID_SIZE.
| void uuid_unparse_lower | ( | const uuid_t | uu, |
| char * | out | ||
| ) |
Definition at line 71 of file win32_uuid.cc.
References UUID_SIZE.
| const size_t UUID_SIZE = 16 |
The size of a UUID in bytes.
Definition at line 41 of file win32_uuid.cc.
Referenced by uuid_clear(), uuid_generate(), uuid_is_null(), uuid_parse(), and uuid_unparse_lower().