Changeset 2574:ec7d9af6f76b in roaraudio
- Timestamp:
- 09/06/09 00:32:20 (15 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroarsndio/sndiosym.h
r2351 r2574 94 94 struct sio_cap; 95 95 96 struct sio_hdl * sio_open(c har * name, unsigned mode, int nbio_flag);96 struct sio_hdl * sio_open(const char * name, unsigned mode, int nbio_flag); 97 97 void sio_close (struct sio_hdl * hdl); 98 98 … … 106 106 int sio_stop (struct sio_hdl * hdl); 107 107 108 size_t sio_read (struct sio_hdl * hdl, void * addr, size_t nbytes);109 size_t sio_write (struct sio_hdl * hdl, void * addr, size_t nbytes);108 size_t sio_read (struct sio_hdl * hdl, void * addr, size_t nbytes); 109 size_t sio_write (struct sio_hdl * hdl, const void * addr, size_t nbytes); 110 110 111 111 void sio_onmove (struct sio_hdl * hdl, void (*cb)(void * arg, int delta), void * arg); -
libroarsndio/libroarsndio.c
r2515 r2574 83 83 } 84 84 85 struct sio_hdl * sio_open(c har * name, unsigned mode, int nbio_flag) {85 struct sio_hdl * sio_open(const char * name, unsigned mode, int nbio_flag) { 86 86 struct sio_hdl * hdl = NULL; 87 87 int is_midi = 0; … … 124 124 } 125 125 126 name = sndio_to_roar_names( name);126 name = sndio_to_roar_names((char*) name); 127 127 128 if ( roar_simple_connect(&(hdl->con), name, "libroarsndio") == -1 ) {128 if ( roar_simple_connect(&(hdl->con), (char*) name, "libroarsndio") == -1 ) { 129 129 free(hdl); 130 130 return NULL; -
libroarsndio/stream.c
r2375 r2574 148 148 return ret; 149 149 } 150 size_t sio_write (struct sio_hdl * hdl, void * addr, size_t nbytes) {150 size_t sio_write (struct sio_hdl * hdl, const void * addr, size_t nbytes) { 151 151 ssize_t ret; 152 152 … … 157 157 return 0; 158 158 159 if ( (ret = roar_vio_write(&(hdl->svio), addr, nbytes)) < 0 )159 if ( (ret = roar_vio_write(&(hdl->svio), (void*) addr, nbytes)) < 0 ) 160 160 return 0; 161 161
Note: See TracChangeset
for help on using the changeset viewer.