Replace I/O functions with your own ones operating on some kind of handle instead of integer descriptors. The handle is a void pointer, so you can pass any data you want... mpg123_open_handle() is the call you make to use the I/O defined here. There is no fallback to internal read/seek here. Note: As it would be troublesome to mess with this while having a file open, this mpg123_close() is implied here.
- Parameters:
-
| r_read | The callback for reading (behaviour like posix read). |
| r_lseek | The callback for seeking (like posix lseek). |
| cleanup | A callback to clean up an I/O handle on mpg123_close, can be NULL for none (you take care of cleaning your handles). |
Definition at line 241 of file lfs_alias.c.
Referenced by mpg123_open(), mpg123_open_fd(), mpg123_open_handle(), and mpg123_replace_reader_handle().