Update 'es' translation
[siplcs.git] / src / uuid.h
blobd2b12c5f8f3a429fdab23d7e22feb54108d08fdd
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);
36 void printUUID(sipe_uuid_t *uuid, char *string);
37 void readUUID(const char *string, sipe_uuid_t *uuid);
38 void createUUIDfromHash(sipe_uuid_t *uuid, const unsigned char *hash);
40 char *sipe_get_epid(const char *self_sip_uri,
41 const char *hostname,
42 const char *ip_address);
45 #endif /* SIPE_UUID_H_ */