Functions | Variables
proc_uuid.cc File Reference

Generate UUIDs by reading from a pseudo-file under /proc. More...

#include <config.h>
#include "proc_uuid.h"
#include "xapian/error.h"
#include <cstring>
#include "stringutils.h"
#include <sys/types.h>
#include "safesysstat.h"
#include "safeerrno.h"
#include "safefcntl.h"
#include "safeunistd.h"
+ Include dependency graph for proc_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...
 
const size_t UUID_STRING_SIZE = 36
 The size of a UUID string in bytes (not including trailing '\0'). More...
 

Detailed Description

Generate UUIDs by reading from a pseudo-file under /proc.

Especially useful when building for Android, as it avoids having to cross-build a UUID library.

Definition in file proc_uuid.cc.

Function Documentation

◆ uuid_clear()

void uuid_clear ( uuid_t  uu)

Definition at line 86 of file proc_uuid.cc.

Referenced by test_uuid1().

◆ uuid_generate()

void uuid_generate ( uuid_t  uu)

Definition at line 49 of file proc_uuid.cc.

Referenced by ChertVersion::create(), GlassVersion::create(), and test_uuid1().

◆ uuid_is_null()

int uuid_is_null ( const uuid_t  uu)

Definition at line 91 of file proc_uuid.cc.

Referenced by test_uuid1().

◆ uuid_parse()

int uuid_parse ( const char *  in,
uuid_t  uu 
)

◆ uuid_unparse_lower()

void uuid_unparse_lower ( const uuid_t  uu,
char *  out 
)

Variable Documentation

◆ UUID_SIZE

const size_t UUID_SIZE = 16

The size of a UUID in bytes.

Definition at line 43 of file proc_uuid.cc.

Referenced by uuid_clear(), uuid_is_null(), uuid_parse(), and uuid_unparse_lower().

◆ UUID_STRING_SIZE

const size_t UUID_STRING_SIZE = 36

The size of a UUID string in bytes (not including trailing '\0').

Definition at line 46 of file proc_uuid.cc.

Referenced by uuid_generate().


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