libUPnP
1.6.17
|
00001 #ifndef UUID_H 00002 #define UUID_H 00003 00004 /* 00005 * Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc. 00006 * Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. & 00007 * Digital Equipment Corporation, Maynard, Mass. 00008 * Copyright (c) 1998 Microsoft. 00009 * To anyone who acknowledges that this file is provided "AS IS" 00010 * without any express or implied warranty: permission to use, copy, 00011 * modify, and distribute this file for any purpose is hereby 00012 * granted without fee, provided that the above copyright notices and 00013 * this notice appears in all source code copies, and that none of 00014 * the names of Open Software Foundation, Inc., Hewlett-Packard 00015 * Company, or Digital Equipment Corporation be used in advertising 00016 * or publicity pertaining to distribution of the software without 00017 * specific, written prior permission. Neither Open Software 00018 * Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital Equipment 00019 * Corporation makes any representations about the suitability of 00020 * this software for any purpose. 00021 */ 00022 00023 #include "sysdep.h" 00024 00026 typedef struct _uuid_upnp { 00028 uint32_t time_low; 00030 uint16_t time_mid; 00032 uint16_t time_hi_and_version; 00034 uint8_t clock_seq_hi_and_reserved; 00036 uint8_t clock_seq_low; 00038 uint8_t node[6]; 00039 } uuid_upnp; 00040 00044 int uuid_create( 00046 uuid_upnp * id); 00047 00051 void uuid_unpack( 00053 uuid_upnp * u, 00055 char *out); 00056 00060 void uuid_create_from_name( 00062 uuid_upnp * uid, 00065 uuid_upnp nsid, 00067 void *name, 00069 int namelen); 00070 00081 int uuid_compare( 00083 uuid_upnp * u1, 00085 uuid_upnp * u2); 00086 #endif /* UUID_H */