libUPnP 1.14.19
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
27{
29 uint32_t time_low;
31 uint16_t time_mid;
39 uint8_t node[6];
40} uuid_upnp;
41
45int uuid_create(
47 uuid_upnp *id);
48
52void upnp_uuid_unpack(
54 uuid_upnp *u,
56 char *out);
57
61void uuid_create_from_name(
63 uuid_upnp *uid,
66 uuid_upnp nsid,
68 void *name,
70 int namelen);
71
82int uuid_compare(
84 uuid_upnp *u1,
86 uuid_upnp *u2);
87#endif /* UUID_H */
Definition uuid.h:27
uint32_t time_low
Definition uuid.h:29
uint8_t node[6]
Definition uuid.h:39
uint16_t time_mid
Definition uuid.h:31
uint8_t clock_seq_low
Definition uuid.h:37
uint8_t clock_seq_hi_and_reserved
Definition uuid.h:35
uint16_t time_hi_and_version
Definition uuid.h:33