00001 /* 00002 Copyright (C) 2016- The University of Notre Dame 00003 This software is distributed under the GNU General Public License. 00004 See the file COPYING for details. 00005 */ 00006 00007 #ifndef CCTOOLS_UUID_H 00008 #define CCTOOLS_UUID_H 00009 00010 /* RFC 4122 V4 */ 00011 #define UUID_LEN (sizeof "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" - 1) 00012 typedef struct { 00013 char str[UUID_LEN + 1 /* for NUL */]; 00014 } cctools_uuid_t; 00015 00016 void cctools_uuid_create (cctools_uuid_t *uuid); 00017 void cctools_uuid_loadhex (cctools_uuid_t *uuid, const char *hex); 00018 00019 #endif