source: project/release/4/uuid-ossp/trunk/uuid-ossp-fix.h @ 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.8 KB
Line 
1/* See "uuid-ossp-fix.c" for more information. */
2
3/* Isn't case-sensitivity grand ;-) */
4
5extern unsigned int uuid_LEN_BIN;
6extern unsigned int uuid_LEN_STR;
7extern unsigned int uuid_LEN_SIV;
8
9extern unsigned int uuid_RC_OK;
10extern unsigned int uuid_RC_ARG;
11extern unsigned int uuid_RC_MEM;
12extern unsigned int uuid_RC_SYS;
13extern unsigned int uuid_RC_INT;
14extern unsigned int uuid_RC_IMP;
15
16extern unsigned int uuid_MAKE_V1;
17extern unsigned int uuid_MAKE_V1MC;
18extern unsigned int uuid_MAKE_V3;
19extern unsigned int uuid_MAKE_V4;
20extern unsigned int uuid_MAKE_V5;
21
22extern unsigned int uuid_FMT_BIN;
23extern unsigned int uuid_FMT_STR;
24extern unsigned int uuid_FMT_TXT;
25extern unsigned int uuid_FMT_SIV;
26
27/* Actually enum but this will do */
28typedef unsigned int uuid_rc_t;
29typedef unsigned int uuid_fmt_t;
30
31struct uuid_st;
32
33/* UUID object handling */
34extern uuid_rc_t uuid_create   (      struct uuid_st **_uuid);
35extern uuid_rc_t uuid_destroy  (      struct uuid_st  *_uuid);
36extern uuid_rc_t uuid_clone    (const struct uuid_st  *_uuid, struct uuid_st **_clone);
37
38/* UUID generation */
39extern uuid_rc_t uuid_load     (      struct uuid_st  *_uuid, const char *_name);
40extern uuid_rc_t uuid_make     (      struct uuid_st  *_uuid, unsigned int _mode, ...);
41
42/* UUID comparison */
43extern uuid_rc_t uuid_isnil    (const struct uuid_st  *_uuid,                       int *_result);
44extern uuid_rc_t uuid_compare  (const struct uuid_st  *_uuid, const struct uuid_st *_uuid2, int *_result);
45
46/* UUID import/export */
47extern uuid_rc_t uuid_import   (      struct uuid_st  *_uuid, uuid_fmt_t _fmt, const void  *_data_ptr, size_t  _data_len);
48extern uuid_rc_t uuid_export   (const struct uuid_st  *_uuid, uuid_fmt_t _fmt,       void **_data_ptr, size_t *_data_len);
49
50/* library utilities */
51extern char         *uuid_error    (uuid_rc_t _rc);
52extern unsigned long uuid_version  (void);
Note: See TracBrowser for help on using the repository browser.