diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
commit | 8362bf63dea22bbf6736609b0f49c152f975eb63 (patch) | |
tree | 0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kexi/3rdparty/uuid/uuidP.h | |
download | koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip |
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/3rdparty/uuid/uuidP.h')
-rw-r--r-- | kexi/3rdparty/uuid/uuidP.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/kexi/3rdparty/uuid/uuidP.h b/kexi/3rdparty/uuid/uuidP.h new file mode 100644 index 00000000..2595277f --- /dev/null +++ b/kexi/3rdparty/uuid/uuidP.h @@ -0,0 +1,58 @@ +/* + * uuid.h -- private header file for uuids + * + * Copyright (C) 1996, 1997 Theodore Ts'o. + * + * %Begin-Header% + * This file may be redistributed under the terms of the GNU + * Library General Public License. + * %End-Header% + */ + +#include <sys/types.h> +/*jowenn: #include <uuid/uuid_types.h>*/ + +/*js*/ +#ifdef _WIN32 +/*.. */ +# define longlong __int64 +#else /* non-win32 systems */ +# define longlong long long +#endif + +#ifdef __linux__ +# include <linux/types.h> +#endif + +#ifdef __FreeBSD__ +typedef u_int32_t __u32; +typedef u_int16_t __u16; +typedef u_int8_t __u8; +#endif + +#include "uuid.h" + +/* + * Offset between 15-Oct-1582 and 1-Jan-70 + */ +#define TIME_OFFSET_HIGH 0x01B21DD2 +#define TIME_OFFSET_LOW 0x13814000 + +struct uuid { + __u32 time_low; + __u16 time_mid; + __u16 time_hi_and_version; + __u16 clock_seq; + __u8 node[6]; +}; + + +/* + * prototypes + */ +void uuid_pack(const struct uuid *uu, uuid_t ptr); +void uuid_unpack(const uuid_t in, struct uuid *uu); + + + + |