Changeset 652 for trunk/zoo-project/zoo-kernel/server_internal.c
- Timestamp:
- Jun 11, 2015, 3:07:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/server_internal.c
r649 r652 29 29 #include <dlfcn.h> 30 30 #endif 31 #include <uuid/uuid.h> 31 32 32 33 int getVersionId(const char* version){ … … 37 38 } 38 39 return 0; 40 } 41 42 /** 43 * Generate a UUID. 44 * ref: https://www.ietf.org/rfc/rfc4122.txt / 4.2 45 * 46 * @return a new char* containing the UUID, make sure to free the returned 47 * ressource once used. 48 */ 49 char *get_uuid(){ 50 char *res=(char*)malloc(37*sizeof(char)); 51 uuid_t uuid; 52 uuid_generate_time(uuid); 53 char * rest; 54 uuid_unparse(uuid,rest); 55 sprintf(res,"%s", rest); 56 return res; 39 57 } 40 58 … … 325 343 void dumpMapsValuesToFiles(maps** main_conf,maps** in){ 326 344 map* tmpPath=getMapFromMaps(*main_conf,"main","tmpPath"); 327 map* tmpSid=getMapFromMaps(*main_conf,"lenv"," sid");345 map* tmpSid=getMapFromMaps(*main_conf,"lenv","usid"); 328 346 maps* inputs=*in; 329 347 int length=0;
Note: See TracChangeset
for help on using the changeset viewer.