Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 1 | /* |
| 2 | * uuid.h -- private header file for uuids |
Theodore Ts'o | 19c78dc | 1997-04-29 16:17:09 +0000 | [diff] [blame] | 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% |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #include <sys/types.h> |
| 13 | #include <linux/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 | |