~ubuntu-branches/ubuntu/edgy/e2fsprogs/edgy

« back to all changes in this revision

Viewing changes to lib/uuid/uuidP.h

  • Committer: Bazaar Package Importer
  • Author(s): Yann Dirson
  • Date: 2002-03-21 23:58:48 UTC
  • Revision ID: james.westby@ubuntu.com-20020321235848-cmmy98hy0nihp922
Tags: upstream-1.27
ImportĀ upstreamĀ versionĀ 1.27

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 
 
8
 * Library General Public License.
 
9
 * %End-Header%
 
10
 */
 
11
 
 
12
#include <sys/types.h>
 
13
#include <ext2fs/ext2_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(const struct uuid *uu, uuid_t ptr);
 
36
void uuid_unpack(const uuid_t in, struct uuid *uu);
 
37
 
 
38
 
 
39
 
 
40