Changeset 5589:de9dbc2ecc4b in roaraudio
- Timestamp:
- 07/22/12 13:21:15 (12 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r5579 r5589 10 10 * Support a common protocol interface (Closes: #257) 11 11 * Converted roard plugins to universal where possible (Closes: #256) 12 * Corrected critical bug in UUID support (compare function overwrote 13 arguments) (Closes: #276) 12 14 13 15 v. 1.0beta3 - Sun Jul 15 2012 26:08 CEST -
include/libroar/uuid.h
r5505 r5589 50 50 }; 51 51 52 int roar_uuid_eq(roar_uuid_t a, roar_uuid_t b); 53 int roar_uuid2str(char * str, roar_uuid_t uuid, ssize_t len); 52 // compare two UUIDs: return 1 if they are the same, 0 if they are not and -1 in case of error. 53 int roar_uuid_eq(const roar_uuid_t a, const roar_uuid_t b); 54 55 int roar_uuid2str(char * str, const roar_uuid_t uuid, ssize_t len); 54 56 int roar_str2uuid(roar_uuid_t uuid, const char * str); 55 57 int roar_uuid_gen(roar_uuid_t uuid, enum roar_uuid_type type, roar_uuid_t ns, void * argp, ssize_t arglen); -
libroar/uuid.c
r5505 r5589 36 36 #include "libroar.h" 37 37 38 int roar_uuid_eq( roar_uuid_t a,roar_uuid_t b) {38 int roar_uuid_eq(const roar_uuid_t a, const roar_uuid_t b) { 39 39 if ( a == NULL || b == NULL ) { 40 40 roar_err_set(ROAR_ERROR_FAULT); … … 42 42 } 43 43 44 if ( memc py(a, b, sizeof(roar_uuid_t)) == 0 )44 if ( memcmp(a, b, sizeof(roar_uuid_t)) == 0 ) 45 45 return 1; 46 46 … … 48 48 } 49 49 50 int roar_uuid2str(char * str, roar_uuid_t uuid, ssize_t len) {50 int roar_uuid2str(char * str, const roar_uuid_t uuid, ssize_t len) { 51 51 if ( str == NULL || uuid == NULL ) { 52 52 roar_err_set(ROAR_ERROR_FAULT);
Note: See TracChangeset
for help on using the changeset viewer.