1997-04-29 18:53:37 +04:00
|
|
|
/*
|
|
|
|
* uuid.h -- private header file for uuids
|
1997-04-29 20:17:09 +04:00
|
|
|
*
|
|
|
|
* Copyright (C) 1996, 1997 Theodore Ts'o.
|
|
|
|
*
|
|
|
|
* %Begin-Header%
|
2000-04-08 00:06:04 +04:00
|
|
|
* This file may be redistributed under the terms of the GNU
|
|
|
|
* Library General Public License.
|
1997-04-29 20:17:09 +04:00
|
|
|
* %End-Header%
|
1997-04-29 18:53:37 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
2003-03-02 10:07:14 +03:00
|
|
|
#include <uuid/uuid_types.h>
|
1997-04-29 18:53:37 +04:00
|
|
|
|
|
|
|
#include "uuid.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Offset between 15-Oct-1582 and 1-Jan-70
|
|
|
|
*/
|
|
|
|
#define TIME_OFFSET_HIGH 0x01B21DD2
|
|
|
|
#define TIME_OFFSET_LOW 0x13814000
|
|
|
|
|
|
|
|
struct uuid {
|
|
|
|
__u32 time_low;
|
|
|
|
__u16 time_mid;
|
|
|
|
__u16 time_hi_and_version;
|
|
|
|
__u16 clock_seq;
|
|
|
|
__u8 node[6];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes
|
|
|
|
*/
|
compare.c (uuid_compare), copy.c (uuid_copy),
isnull.c (uuid_is_null), pack.c (uuid_pack),
parse.c (uuid_parse), unpack.c (uuid_unpack),
unparse.c (uuid_unparse), uuid.h, uuidP.h,
uuid_time.c (uuid_time, uuid_type, uuid_variant):
Use const for pointer variables that we don't modify. Add
the appropriate ifdef's in uuid.h to make it be C++ friendly.
2001-09-11 04:30:09 +04:00
|
|
|
void uuid_pack(const struct uuid *uu, uuid_t ptr);
|
|
|
|
void uuid_unpack(const uuid_t in, struct uuid *uu);
|
1997-04-29 18:53:37 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|