Move the hardcode debug flags from src/Makefile.am file to configure.ac file.
[siplcs.git] / src / uuid.h
blobf2365936bad3f90ce6ad3b9b5797d6d844ad9dbd
1 /**
2 * @file uuid.h
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef SIPE_UUID_H_
20 #define SIPE_UUID_H_
22 #pragma pack(push, 1)
24 typedef struct _uuid_t {
25 unsigned time_low;
26 unsigned short time_mid;
27 unsigned short time_hi_and_version;
28 unsigned char clock_seq_hi_and_reserved;
29 unsigned char clock_seq_low;
30 unsigned char node[6];
31 } sipe_uuid_t;
33 #pragma pack(pop)
35 char * generateUUIDfromEPID(const gchar *epid);
37 gchar * sipe_uuid_get_macaddr();
40 void printUUID(sipe_uuid_t *uuid, char *string);
41 void readUUID(const char *string, sipe_uuid_t *uuid);
42 void createUUIDfromHash(sipe_uuid_t *uuid, const unsigned char *hash);
43 long mac_addr_sys (const unsigned char *addr);
46 #endif /* SIPE_UUID_H_ */