Changeset 4296:16e3f8f5983e in roaraudio for libroar/meta.c


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

added a lot const keywords

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/meta.c

    r3875 r4296  
    4242*/ 
    4343 
    44 struct { 
     44static struct { 
    4545 int    id; 
    46  char * name; 
     46 const char * name; 
    4747} _libroar_meta_typelist[] = { 
    4848 {ROAR_META_TYPE_NONE,               "NONE"           }, 
     
    9292 
    9393 
    94 struct { 
     94static struct { 
    9595 int    id; 
    96  char * name; 
     96 const char * name; 
    9797} _libroar_meta_genrelist[] = { 
    9898{ROAR_META_GENRE_RDS_EU_NONE,             "rds_eu_none"}, 
     
    396396}; 
    397397 
    398 char * roar_meta_strtype(int type) { 
     398// TODO: Why do we return a non-const buffer here? 
     399char * roar_meta_strtype(const int type) { 
    399400 int i; 
    400401 static char name[ROAR_META_MAX_NAMELEN]; 
     
    409410} 
    410411 
    411 int    roar_meta_inttype(char * type) { 
     412int    roar_meta_inttype(const char * type) { 
    412413 int i; 
    413414 
     
    545546 
    546547// genere: 
    547 char * roar_meta_strgenre(int genre) { 
     548const char * roar_meta_strgenre(const int genre) { 
    548549 int i; 
    549550 
     
    556557} 
    557558 
    558 int    roar_meta_intgenre(char * genre) { 
     559int    roar_meta_intgenre(const char * genre) { 
    559560 int i; 
    560561 
     
    567568} 
    568569 
    569 int    roar_meta_parse_audioinfo(struct roar_audio_info * info, char * str) { 
     570int    roar_meta_parse_audioinfo(struct roar_audio_info * info, const char * str) { 
    570571 char * lc; 
    571572 char * cur, * next; 
Note: See TracChangeset for help on using the changeset viewer.