Changeset 5112:034315dcf9d4 in roaraudio


Ignore:
Timestamp:
08/01/11 00:28:57 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added some const keywords

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/ctl.h

    r5110 r5112  
    8686int roar_ctl_m2c      (struct roar_message * m, struct roar_client * c); 
    8787 
    88 int    roar_str2proto (char * proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
    89 char * roar_proto2str (int    proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
     88int    roar_str2proto (const char * proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
     89char * roar_proto2str (const int    proto) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
    9090 
    91 int    roar_str2byteorder (char * byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
    92 char * roar_byteorder2str (int    byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
     91int    roar_str2byteorder (const char * byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
     92char * roar_byteorder2str (const int    byteorder) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
    9393 
    9494int    roar_str2ot        (const char * ot) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
  • libroar/ctl.c

    r4873 r5112  
    517517} 
    518518 
    519 int    roar_str2proto (char * proto) { 
     519int    roar_str2proto (const char * proto) { 
    520520 if ( !strcasecmp(proto, "roar") ) { 
    521521  return ROAR_PROTO_ROARAUDIO; 
     
    553553} 
    554554 
    555 char * roar_proto2str (int    proto) { 
     555char * roar_proto2str (const int    proto) { 
    556556 switch (proto) { 
    557557  case ROAR_PROTO_ROARAUDIO: return "RoarAudio"; break; 
     
    572572} 
    573573 
    574 int    roar_str2byteorder (char * byteorder) { 
     574int    roar_str2byteorder (const char * byteorder) { 
    575575 if (        !strcasecmp(byteorder, "le")            || !strcasecmp(byteorder, "little") || 
    576576             !strcasecmp(byteorder, "little endian") || !strcasecmp(byteorder, "1234")   ) { 
     
    590590} 
    591591 
    592 char * roar_byteorder2str (int    byteorder) { 
     592char * roar_byteorder2str (const int    byteorder) { 
    593593 switch (byteorder) { 
    594594  case ROAR_BYTEORDER_LE:      return "little endian"; break; 
Note: See TracChangeset for help on using the changeset viewer.