libUPnP
1.8.4
upnp
src
inc
uuid.h
1
#ifndef UUID_H
2
#define UUID_H
3
4
/*
5
* Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
6
* Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. &
7
* Digital Equipment Corporation, Maynard, Mass.
8
* Copyright (c) 1998 Microsoft.
9
* To anyone who acknowledges that this file is provided "AS IS"
10
* without any express or implied warranty: permission to use, copy,
11
* modify, and distribute this file for any purpose is hereby
12
* granted without fee, provided that the above copyright notices and
13
* this notice appears in all source code copies, and that none of
14
* the names of Open Software Foundation, Inc., Hewlett-Packard
15
* Company, or Digital Equipment Corporation be used in advertising
16
* or publicity pertaining to distribution of the software without
17
* specific, written prior permission. Neither Open Software
18
* Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital Equipment
19
* Corporation makes any representations about the suitability of
20
* this software for any purpose.
21
*/
22
23
#include "
sysdep.h
"
24
26
typedef
struct
_uuid_upnp
{
28
uint32_t
time_low
;
30
uint16_t
time_mid
;
32
uint16_t
time_hi_and_version
;
34
uint8_t
clock_seq_hi_and_reserved
;
36
uint8_t
clock_seq_low
;
38
uint8_t
node
[6];
39
}
uuid_upnp
;
40
44
int
uuid_create
(
46
uuid_upnp
*
id
);
47
51
void
upnp_uuid_unpack
(
53
uuid_upnp
* u,
55
char
*out);
56
60
void
uuid_create_from_name
(
62
uuid_upnp
* uid,
65
uuid_upnp
nsid,
67
void
*name,
69
int
namelen);
70
81
int
uuid_compare
(
83
uuid_upnp
* u1,
85
uuid_upnp
* u2);
86
#endif
/* UUID_H */
sysdep.h
_uuid_upnp::time_mid
uint16_t time_mid
Definition:
uuid.h:30
uuid_create_from_name
void uuid_create_from_name(uuid_upnp *uid, uuid_upnp nsid, void *name, int namelen)
Create a UUID using a "name" from a "name space".
Definition:
uuid.c:224
_uuid_upnp::node
uint8_t node[6]
Definition:
uuid.h:38
_uuid_upnp::time_hi_and_version
uint16_t time_hi_and_version
Definition:
uuid.h:32
_uuid_upnp::clock_seq_low
uint8_t clock_seq_low
Definition:
uuid.h:36
_uuid_upnp::time_low
uint32_t time_low
Definition:
uuid.h:28
uuid_create
int uuid_create(uuid_upnp *uid)
Generator of a UUID.
Definition:
uuid.c:53
_uuid_upnp
Definition:
uuid.h:26
upnp_uuid_unpack
void upnp_uuid_unpack(uuid_upnp *u, char *out)
Out will be xxxx-xx-xx-xx-xxxxxx format.
Definition:
uuid.c:85
uuid_compare
int uuid_compare(uuid_upnp *u1, uuid_upnp *u2)
Compare two UUID's "lexically" and return.
Definition:
uuid.c:283
_uuid_upnp::clock_seq_hi_and_reserved
uint8_t clock_seq_hi_and_reserved
Definition:
uuid.h:34
Generated by
1.8.20