uuid.h
#ifndef UUID_H
#define UUID_H
/*
* Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
* Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. &
* Digital Equipment Corporation, Maynard, Mass.
* Copyright (c) 1998 Microsoft.
* To anyone who acknowledges that this file is provided "AS IS"
* without any express or implied warranty: permission to use, copy,
* modify, and distribute this file for any purpose is hereby
* granted without fee, provided that the above copyright notices and
* this notice appears in all source code copies, and that none of
* the names of Open Software Foundation, Inc., Hewlett-Packard
* Company, or Digital Equipment Corporation be used in advertising
* or publicity pertaining to distribution of the software without
* specific, written prior permission. Neither Open Software
* Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital Equipment
* Corporation makes any representations about the suitability of
* this software for any purpose.
*/
#include "sysdep.h"
typedef struct _uuid_upnp {
uint32_t time_low;
uint16_t time_mid;
uint16_t time_hi_and_version;
uint8_t clock_seq_hi_and_reserved;
uint8_t clock_seq_low;
uint8_t node[6];
} uuid_upnp;
int uuid_create(
uuid_upnp * id);
void upnp_uuid_unpack(
uuid_upnp * u,
char *out);
void uuid_create_from_name(
uuid_upnp * uid,
uuid_upnp nsid,
void *name,
int namelen);
int uuid_compare(
uuid_upnp * u1,
uuid_upnp * u2);
#endif /* UUID_H */
_uuid_upnp::time_mid
uint16_t time_mid
Definition: uuid.h:30
_uuid_upnp
Definition: uuid.h:26
_uuid_upnp::clock_seq_hi_and_reserved
uint8_t clock_seq_hi_and_reserved
Definition: uuid.h:34
_uuid_upnp::time_hi_and_version
uint16_t time_hi_and_version
Definition: uuid.h:32
uuid_compare
int uuid_compare(uuid_upnp *u1, uuid_upnp *u2)
Compare two UUID&#39;s "lexically" and return.
Definition: uuid.c:283
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_upnp::clock_seq_low
uint8_t clock_seq_low
Definition: uuid.h:36
sysdep.h
_uuid_upnp::time_low
uint32_t time_low
Definition: uuid.h:28
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_create
int uuid_create(uuid_upnp *uid)
Generator of a UUID.
Definition: uuid.c:53
_uuid_upnp::node
uint8_t node[6]
Definition: uuid.h:38