Functions | Variables
win32_uuid.cc File Reference

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...
 

Detailed Description

Provide UUID functions compatible with libuuid from util-linux-ng.

Definition in file win32_uuid.cc.

Function Documentation

◆ uuid_clear()

void uuid_clear ( uuid_t  uu)

Definition at line 83 of file win32_uuid.cc.

References UUID_SIZE.

◆ uuid_generate()

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.

◆ uuid_is_null()

int uuid_is_null ( const uuid_t  uu)

Definition at line 88 of file win32_uuid.cc.

References UUID_SIZE.

◆ uuid_parse()

int uuid_parse ( const char *  in,
uuid_t  uu 
)

Definition at line 62 of file win32_uuid.cc.

References hex_digit(), and UUID_SIZE.

◆ uuid_unparse_lower()

void uuid_unparse_lower ( const uuid_t  uu,
char *  out 
)

Definition at line 71 of file win32_uuid.cc.

References UUID_SIZE.

Variable Documentation

◆ 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().


Documentation for Xapian (version 1.4.7).
Generated on Fri Jul 20 2018 by Doxygen 1.8.13.