Changeset 4296:16e3f8f5983e in roaraudio for include/libroar


Ignore:
Timestamp:
09/01/10 15:48:19 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added a lot const keywords

Location:
include/libroar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/auth.h

    r3915 r4296  
    5252int roar_auth   (struct roar_connection * con); 
    5353 
    54 int    roar_str2autht(char * str); 
    55 char * roar_autht2str(int auth); 
     54int    roar_str2autht(const char * str); 
     55const char * roar_autht2str(const int auth); 
    5656 
    5757#endif 
  • include/libroar/meta.h

    r3517 r4296  
    4646int roar_meta_free (struct roar_meta * meta); 
    4747 
    48 char * roar_meta_strtype(int type); 
    49 int    roar_meta_inttype(char * type); 
     48char * roar_meta_strtype(const int type); 
     49int    roar_meta_inttype(const char * type); 
    5050 
    51 char * roar_meta_strgenre(int genre); 
    52 int    roar_meta_intgenre(char * genre); 
     51const char * roar_meta_strgenre(const int genre); 
     52int    roar_meta_intgenre(const char * genre); 
    5353 
    54 int    roar_meta_parse_audioinfo(struct roar_audio_info * info, char * str); 
     54int    roar_meta_parse_audioinfo(struct roar_audio_info * info, const char * str); 
    5555 
    5656#endif 
  • include/libroar/stream.h

    r4097 r4296  
    3939#include "roaraudio.h" 
    4040 
    41 char * roar_dir2str (int dir); 
    42 int    roar_str2dir (char * name); 
     41const char * roar_dir2str (const int dir); 
     42int    roar_str2dir (const char * name); 
    4343 
    4444struct roar_stream_info { 
     
    9898int roar_stream_m2s     (struct roar_stream * s, struct roar_message * m); 
    9999 
    100 int    roar_str2codec (char * codec); 
    101 char * roar_codec2str (int    codec); 
     100int    roar_str2codec (const char * codec); 
     101const char * roar_codec2str (const int    codec); 
    102102 
    103 char * roar_streamstate2str(int streamstate); 
     103const char * roar_streamstate2str(int streamstate); 
    104104 
    105 int    roar_str2role  (char * role); 
    106 char * roar_role2str  (int    role); 
     105int    roar_str2role  (const char * role); 
     106const char * roar_role2str  (const int    role); 
    107107 
    108108ssize_t roar_info2samplesize (struct roar_audio_info * info); 
Note: See TracChangeset for help on using the changeset viewer.