blob: db0a74ccbacf5cd83e62a07eda28ec718b7492bd [file] [log] [blame]
Theodore Ts'o1e3472c1997-04-29 14:53:37 +00001/*
2 * uuid.h -- private header file for uuids
Theodore Ts'o19c78dc1997-04-29 16:17:09 +00003 *
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'o1e3472c1997-04-29 14:53:37 +000010 */
11
12#include <sys/types.h>
Theodore Ts'o91b2c421998-04-27 01:28:13 +000013#include <asm/types.h>
Theodore Ts'o1e3472c1997-04-29 14:53:37 +000014
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
23struct 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 */
35void uuid_pack(struct uuid *uu, uuid_t ptr);
36void uuid_unpack(uuid_t in, struct uuid *uu);
37
38
39
40