Changeset 5112:034315dcf9d4 in roaraudio
- Timestamp:
- 08/01/11 00:28:57 (13 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/ctl.h
r5110 r5112 86 86 int roar_ctl_m2c (struct roar_message * m, struct roar_client * c); 87 87 88 int roar_str2proto (c har * proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE;89 char * roar_proto2str ( int proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE;88 int roar_str2proto (const char * proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 89 char * roar_proto2str (const int proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 90 90 91 int roar_str2byteorder (c har * byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE;92 char * roar_byteorder2str ( int byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE;91 int roar_str2byteorder (const char * byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 92 char * roar_byteorder2str (const int byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 93 93 94 94 int roar_str2ot (const char * ot) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; -
libroar/ctl.c
r4873 r5112 517 517 } 518 518 519 int roar_str2proto (c har * proto) {519 int roar_str2proto (const char * proto) { 520 520 if ( !strcasecmp(proto, "roar") ) { 521 521 return ROAR_PROTO_ROARAUDIO; … … 553 553 } 554 554 555 char * roar_proto2str ( int proto) {555 char * roar_proto2str (const int proto) { 556 556 switch (proto) { 557 557 case ROAR_PROTO_ROARAUDIO: return "RoarAudio"; break; … … 572 572 } 573 573 574 int roar_str2byteorder (c har * byteorder) {574 int roar_str2byteorder (const char * byteorder) { 575 575 if ( !strcasecmp(byteorder, "le") || !strcasecmp(byteorder, "little") || 576 576 !strcasecmp(byteorder, "little endian") || !strcasecmp(byteorder, "1234") ) { … … 590 590 } 591 591 592 char * roar_byteorder2str ( int byteorder) {592 char * roar_byteorder2str (const int byteorder) { 593 593 switch (byteorder) { 594 594 case ROAR_BYTEORDER_LE: return "little endian"; break;
Note: See TracChangeset
for help on using the changeset viewer.