libUPnP 1.8.4
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
26typedef struct _uuid_upnp {
28 uint32_t time_low;
30 uint16_t time_mid;
38 uint8_t node[6];
39} uuid_upnp;
40
44int uuid_create(
46 uuid_upnp * id);
47
51void upnp_uuid_unpack(
53 uuid_upnp * u,
55 char *out);
56
60void uuid_create_from_name(
62 uuid_upnp * uid,
65 uuid_upnp nsid,
67 void *name,
69 int namelen);
70
81int uuid_compare(
83 uuid_upnp * u1,
85 uuid_upnp * u2);
86#endif /* UUID_H */
Definition uuid.h:26
uint32_t time_low
Definition uuid.h:28
uint8_t node[6]
Definition uuid.h:38
uint16_t time_mid
Definition uuid.h:30
uint8_t clock_seq_low
Definition uuid.h:36
uint8_t clock_seq_hi_and_reserved
Definition uuid.h:34
uint16_t time_hi_and_version
Definition uuid.h:32