00001 /* 00002 * Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc. 00003 * Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. & 00004 * Digital Equipment Corporation, Maynard, Mass. 00005 * Copyright (c) 1998 Microsoft. 00006 * To anyone who acknowledges that this file is provided "AS IS" 00007 * without any express or implied warranty: permission to use, copy, 00008 * modify, and distribute this file for any purpose is hereby 00009 * granted without fee, provided that the above copyright notices and 00010 * this notice appears in all source code copies, and that none of 00011 * the names of Open Software Foundation, Inc., Hewlett-Packard 00012 * Company, or Digital Equipment Corporation be used in advertising 00013 * or publicity pertaining to distribution of the software without 00014 * specific, written prior permission. Neither Open Software 00015 * Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital Equipment 00016 * Corporation makes any representations about the suitability of 00017 * this software for any purpose. 00018 */ 00019 00020 00021 #include "sysdep.h" 00022 00023 00025 typedef struct _uuid_upnp { 00027 unsigned32 time_low; 00029 unsigned16 time_mid; 00031 unsigned16 time_hi_and_version; 00033 unsigned8 clock_seq_hi_and_reserved; 00035 unsigned8 clock_seq_low; 00037 byte node[6]; 00038 } uuid_upnp; 00039 00040 00044 int uuid_create( 00046 uuid_upnp * id); 00047 00048 00052 void uuid_unpack( 00054 uuid_upnp *u, 00056 char *out); 00057 00058 00062 void uuid_create_from_name( 00064 uuid_upnp *uid, 00067 uuid_upnp nsid, 00069 void *name, 00071 int namelen 00072 ); 00073 00074 00085 int uuid_compare( 00087 uuid_upnp *u1, 00089 uuid_upnp *u2); 00090