source: project/release/4/uuid-ossp/tags/1.4.0/uuid-ossp-fix.c @ 21918

Last change on this file since 21918 was 21918, checked in by Kon Lovett, 9 years ago

Expanded the "common API" w/ uuid-lib. Rmvd uuid=, etc. (were dep in 1.3), Added "single integer value' external form support; could break on some systems with older OSSP library. Added uuid-load! Better error kinds. More comments.

Still needs the uuid-ossp-fix cut-out BS to deal with the system header conflict.

File size: 1.2 KB
Line 
1/*
2Source to isolate use of uuid_t by OSSP uuid.h file. This type is part
3of man Unix system headers. The technique used by the OSSP header to
4avoid conflict will not work with Chicken sources. So rather than
5include the OSSP header directly into a Chicken Scheme source a
6"cut-out" is used to isolate the problem.
7*/
8
9#include "uuid.h"
10
11/*
12These are the enum & macro constants from the header that we cannot
13include. See above.
14*/
15
16unsigned int uuid_LEN_BIN = UUID_LEN_BIN;
17unsigned int uuid_LEN_STR = UUID_LEN_STR;
18unsigned int uuid_LEN_SIV = UUID_LEN_SIV;
19
20unsigned int uuid_RC_OK = UUID_RC_OK;
21unsigned int uuid_RC_ARG = UUID_RC_ARG;
22unsigned int uuid_RC_MEM = UUID_RC_MEM;
23unsigned int uuid_RC_SYS = UUID_RC_SYS;
24unsigned int uuid_RC_INT = UUID_RC_INT;
25unsigned int uuid_RC_IMP = UUID_RC_IMP;
26
27unsigned int uuid_MAKE_V1 = UUID_MAKE_V1;
28unsigned int uuid_MAKE_V1MC = (UUID_MAKE_V1 | UUID_MAKE_MC);
29unsigned int uuid_MAKE_V3 = UUID_MAKE_V3;
30unsigned int uuid_MAKE_V4 = UUID_MAKE_V4;
31unsigned int uuid_MAKE_V5 = UUID_MAKE_V5;
32
33unsigned int uuid_FMT_BIN = UUID_FMT_BIN;
34unsigned int uuid_FMT_STR = UUID_FMT_STR;
35unsigned int uuid_FMT_TXT = UUID_FMT_TXT;
36unsigned int uuid_FMT_SIV = UUID_FMT_SIV;
Note: See TracBrowser for help on using the repository browser.