| 1 | /* |
| 2 | * Public include file for the UUID library |
| 3 | * |
| 4 | * Copyright (C) 1996, 1997, 1998 Theodore Ts'o. |
| 5 | * |
| 6 | * %Begin-Header% |
| 7 | * Redistribution and use in source and binary forms, with or without |
| 8 | * modification, are permitted provided that the following conditions |
| 9 | * are met: |
| 10 | * 1. Redistributions of source code must retain the above copyright |
| 11 | * notice, and the entire permission notice in its entirety, |
| 12 | * including the disclaimer of warranties. |
| 13 | * 2. Redistributions in binary form must reproduce the above copyright |
| 14 | * notice, this list of conditions and the following disclaimer in the |
| 15 | * documentation and/or other materials provided with the distribution. |
| 16 | * 3. The name of the author may not be used to endorse or promote |
| 17 | * products derived from this software without specific prior |
| 18 | * written permission. |
| 19 | * |
| 20 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED |
| 21 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 22 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF |
| 23 | * WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE |
| 24 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 25 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
| 26 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 27 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
| 28 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE |
| 30 | * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH |
| 31 | * DAMAGE. |
| 32 | * %End-Header% |
| 33 | */ |
| 34 | |
| 35 | #ifndef _UUID_UUID_H |
| 36 | #define _UUID_UUID_Hcxx . . $ `Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid.h:36:9`! |
| 37 | |
| 38 | #include "uuid_mangle.h"cxx . . $ `<file>/build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h`/ |
| 39 | |
| 40 | #include <sys/types.h> |
| 41 | #ifndef _WIN32 |
| 42 | #include <sys/time.h> |
| 43 | #endif |
| 44 | #include <time.h> |
| 45 | |
| 46 | typedef unsigned char uuid_tcxx . . $ uuid_t#[16]; |
| 47 | |
| 48 | /* UUID Variant definitions */ |
| 49 | #define UUID_VARIANT_NCScxx . . $ `Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid.h:49:9`! 0 |
| 50 | #define UUID_VARIANT_DCEcxx . . $ `Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid.h:50:9`! 1 |
| 51 | #define UUID_VARIANT_MICROSOFTcxx . . $ `Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid.h:51:9`! 2 |
| 52 | #define UUID_VARIANT_OTHERcxx . . $ `Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid.h:52:9`! 3 |
| 53 | |
| 54 | /* UUID Type definitions */ |
| 55 | #define UUID_TYPE_DCE_TIMEcxx . . $ `Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid.h:55:9`! 1 |
| 56 | #define UUID_TYPE_DCE_RANDOMcxx . . $ `Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid.h:56:9`! 4 |
| 57 | |
| 58 | /* Allow UUID constants to be defined */ |
| 59 | #ifdef __GNUC__cxx . . $ `<built-in>:8:9`! |
| 60 | #define UUID_DEFINEcxx . . $ `Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid.h:60:9`!(name,u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15) \ |
| 61 | static const uuid_t name __attribute__ ((unused)) = {u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15} |
| 62 | #else |
| 63 | #define UUID_DEFINE(name,u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15) \ |
| 64 | static const uuid_t name = {u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15} |
| 65 | #endif |
| 66 | |
| 67 | #ifdef __cplusplus |
| 68 | extern "C" { |
| 69 | #endif |
| 70 | |
| 71 | /* clear.c */ |
| 72 | void uuid_clearcxx . . $ uuid_clear(f25546b61a629de7).(uuid_tcxx . . $ uuid_t# uu); |
| 73 | |
| 74 | /* compare.c */ |
| 75 | int uuid_comparecxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:17:9`!(const uuid_tcxx . . $ uuid_t# uu1, const uuid_tcxx . . $ uuid_t# uu2); |
| 76 | |
| 77 | /* copy.c */ |
| 78 | void uuid_copycxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:18:9`!(uuid_tcxx . . $ uuid_t# dst, const uuid_tcxx . . $ uuid_t# src); |
| 79 | |
| 80 | /* gen_uuid.c */ |
| 81 | void uuid_generatecxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:21:9`!(uuid_tcxx . . $ uuid_t# out); |
| 82 | void uuid_generate_randomcxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:22:9`!(uuid_tcxx . . $ uuid_t# out); |
| 83 | void uuid_generate_timecxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:23:9`!(uuid_tcxx . . $ uuid_t# out); |
| 84 | |
| 85 | /* isnull.c */ |
| 86 | int uuid_is_nullcxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:24:9`!(const uuid_tcxx . . $ uuid_t# uu); |
| 87 | |
| 88 | /* parse.c */ |
| 89 | int uuid_parsecxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:27:9`!(const char *in, uuid_tcxx . . $ uuid_t# uu); |
| 90 | |
| 91 | /* unparse.c */ |
| 92 | void uuid_unparsecxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:31:9`!(const uuid_tcxx . . $ uuid_t# uu, char *out); |
| 93 | void uuid_unparse_lowercxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:32:9`!(const uuid_tcxx . . $ uuid_t# uu, char *out); |
| 94 | void uuid_unparse_uppercxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:33:9`!(const uuid_tcxx . . $ uuid_t# uu, char *out); |
| 95 | |
| 96 | /* uuid_time.c */ |
| 97 | time_tcxx . . $ time_t# uuid_timecxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:28:9`!(const uuid_tcxx . . $ uuid_t# uu, struct timevalcxx . . $ timeval# *ret_tv); |
| 98 | int uuid_typecxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:29:9`!(const uuid_tcxx . . $ uuid_t# uu); |
| 99 | int uuid_variantcxx . . $ `build/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmuuid/uuid_mangle.h:34:9`!(const uuid_tcxx . . $ uuid_t# uu); |
| 100 | |
| 101 | #ifdef __cplusplus |
| 102 | } |
| 103 | #endif |
| 104 | |
| 105 | #endif /* _UUID_UUID_H */ |