Whamcloud - gitweb
ChangeLog, Makefile.in:
[tools/e2fsprogs.git] / lib / uuid / uuidP.h
1 /*
2  * uuid.h -- private header file for uuids
3  * 
4  * Copyright (C) 1996, 1997 Theodore Ts'o.
5  *
6  * %Begin-Header%
7  * This file may be redistributed under the terms of the GNU Public
8  * License.
9  * %End-Header%
10  */
11
12 #include <sys/types.h>
13 #include <asm/types.h>
14
15 #include "uuid.h"
16
17 /*
18  * Offset between 15-Oct-1582 and 1-Jan-70
19  */
20 #define TIME_OFFSET_HIGH 0x01B21DD2
21 #define TIME_OFFSET_LOW  0x13814000
22
23 struct uuid {
24         __u32   time_low;
25         __u16   time_mid;
26         __u16   time_hi_and_version;
27         __u16   clock_seq;
28         __u8    node[6];
29 };
30
31
32 /*
33  * prototypes
34  */
35 void uuid_pack(struct uuid *uu, uuid_t ptr);
36 void uuid_unpack(uuid_t in, struct uuid *uu);
37
38
39
40