summaryrefslogtreecommitdiffstats
path: root/kexi/3rdparty/uuid/uuid.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
commit8362bf63dea22bbf6736609b0f49c152f975eb63 (patch)
tree0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kexi/3rdparty/uuid/uuid.h
downloadkoffice-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/uuid.h')
-rw-r--r--kexi/3rdparty/uuid/uuid.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/kexi/3rdparty/uuid/uuid.h b/kexi/3rdparty/uuid/uuid.h
new file mode 100644
index 000000000..17a33a8a4
--- /dev/null
+++ b/kexi/3rdparty/uuid/uuid.h
@@ -0,0 +1,68 @@
+/*
+ * Public include file for the UUID library
+ *
+ * Copyright (C) 1996, 1997, 1998 Theodore Ts'o.
+ *
+ * %Begin-Header%
+ * This file may be redistributed under the terms of the GNU
+ * Library General Public License.
+ * %End-Header%
+ */
+
+#ifndef _UUID_UUID_H
+#define _UUID_UUID_H
+
+/*(js)*/
+#ifndef KEXIUUID_EXPORT
+# define KEXIUUID_EXPORT
+#endif
+
+#include <sys/types.h>
+#include <sys/time.h>
+#include <time.h>
+
+typedef unsigned char uuid_t[16];
+
+/* UUID Variant definitions */
+#define UUID_VARIANT_NCS 0
+#define UUID_VARIANT_DCE 1
+#define UUID_VARIANT_MICROSOFT 2
+#define UUID_VARIANT_OTHER 3
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* clear.c */
+void KEXIUUID_EXPORT uuid_clear(uuid_t uu);
+
+/* compare.c */
+int KEXIUUID_EXPORT uuid_compare(const uuid_t uu1, const uuid_t uu2);
+
+/* copy.c */
+void KEXIUUID_EXPORT uuid_copy(uuid_t dst, const uuid_t src);
+
+/* gen_uuid.c */
+void KEXIUUID_EXPORT uuid_generate(uuid_t out);
+void KEXIUUID_EXPORT uuid_generate_random(uuid_t out);
+void KEXIUUID_EXPORT uuid_generate_time(uuid_t out);
+
+/* isnull.c */
+int KEXIUUID_EXPORT uuid_is_null(const uuid_t uu);
+
+/* parse.c */
+int KEXIUUID_EXPORT uuid_parse(const char *in, uuid_t uu);
+
+/* unparse.c */
+void KEXIUUID_EXPORT uuid_unparse(const uuid_t uu, char *out);
+
+/* uuid_time.c */
+time_t KEXIUUID_EXPORT uuid_time(const uuid_t uu, struct timeval *ret_tv);
+int KEXIUUID_EXPORT uuid_type(const uuid_t uu);
+int KEXIUUID_EXPORT uuid_variant(const uuid_t uu);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _UUID_UUID_H */