Changeset 4296:16e3f8f5983e in roaraudio for libroar/stream.c
- Timestamp:
- 09/01/10 15:48:19 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/stream.c
r4002 r4296 738 738 */ 739 739 740 st ruct {740 static struct { 741 741 int dir; 742 c har * name;742 const char * name; 743 743 } _libroar_dir[] = { 744 744 {ROAR_DIR_PLAY, "play" }, … … 765 765 }; 766 766 767 c har * roar_dir2str (int dir) {767 const char * roar_dir2str (const int dir) { 768 768 int i; 769 769 … … 775 775 } 776 776 777 int roar_str2dir (c har * name) {777 int roar_str2dir (const char * name) { 778 778 int i; 779 779 … … 793 793 */ 794 794 795 st ruct {795 static struct { 796 796 int codec; 797 c har * name;797 const char * name; 798 798 } _libroar_codec[] = { 799 799 // PCM: … … 883 883 }; 884 884 885 int roar_str2codec(c har * codec) {885 int roar_str2codec(const char * codec) { 886 886 int i; 887 887 int guess; … … 904 904 905 905 906 c har * roar_codec2str (int codec) {906 const char * roar_codec2str (const int codec) { 907 907 int i; 908 908 … … 914 914 } 915 915 916 c har * roar_streamstate2str(int streamstate) {916 const char * roar_streamstate2str(int streamstate) { 917 917 switch (streamstate) { 918 918 case ROAR_STREAMSTATE_UNUSED: return "unused"; break; … … 926 926 } 927 927 928 st ruct {928 static struct { 929 929 int role; 930 c har * name;930 const char * name; 931 931 } _libroar_role[] = { 932 932 {ROAR_ROLE_UNKNOWN, "unknown" }, … … 948 948 }; 949 949 950 int roar_str2role (c har * role) {950 int roar_str2role (const char * role) { 951 951 int i; 952 952 … … 958 958 } 959 959 960 c har * roar_role2str (int role) {960 const char * roar_role2str (const int role) { 961 961 int i; 962 962
Note: See TracChangeset
for help on using the changeset viewer.