Changeset 5360:3dd9d1fd1b0e in roaraudio
- Timestamp:
- 12/16/11 19:03:13 (12 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/ctl.h
r5357 r5360 84 84 85 85 int roar_str2proto (const char * proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 86 c har * roar_proto2str (const int proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE;86 const char * roar_proto2str (const int proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 87 87 88 88 int roar_str2byteorder (const char * byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 89 c har * roar_byteorder2str (const int byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE;89 const char * roar_byteorder2str (const int byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 90 90 91 91 int roar_str2ot (const char * ot) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; -
libroar/authfile.c
r5270 r5360 97 97 filename = roar_mm_strdup(filename); 98 98 99 if ( roar_vio_open_dstr(&(ret->vio), (char*)filename, &def, 1) == -1 ) {99 if ( roar_vio_open_dstr(&(ret->vio), filename, &def, 1) == -1 ) { 100 100 roar_mm_free((void*)filename); 101 101 roar_mm_free(ret); -
libroar/basic.c
r5296 r5360 175 175 if ( list != NULL ) { 176 176 for (i = 0; list[i].server != NULL; i++) { 177 if ( (fh = roar_connect_raw( (char*)list[i].server, 0, 0)) != -1 ) {177 if ( (fh = roar_connect_raw(list[i].server, 0, 0)) != -1 ) { 178 178 roar_enum_servers_free(list); 179 179 return fh; -
libroar/ctl.c
r5357 r5360 579 579 } 580 580 581 c har * roar_proto2str (const int proto) {581 const char * roar_proto2str (const int proto) { 582 582 size_t i; 583 583 … … 586 586 for (i = 0; _proto[i].id != -1; i++) 587 587 if ( proto == _proto[i].id ) 588 return (char*)_proto[i].name;588 return _proto[i].name; 589 589 590 590 roar_err_set(ROAR_ERROR_NOENT); … … 611 611 } 612 612 613 c har * roar_byteorder2str (const int byteorder) {613 const char * roar_byteorder2str (const int byteorder) { 614 614 switch (byteorder) { 615 615 case ROAR_BYTEORDER_LE: return "little endian"; break;
Note: See TracChangeset
for help on using the changeset viewer.