Home | Download | Musics | Developers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Resource files |
Files | |
file | rsc68.h |
resources header. | |
Data Structures | |
struct | rsc68_info_t |
Resource specific information. More... | |
Typedefs | |
typedef istream_t *(* | rsc68_handler_t )(rsc68_t type, const char *name, int mode, rsc68_info_t *info) |
Resource handle function type. | |
Enumerations | |
enum | rsc68_t { rsc68_replay, rsc68_config, rsc68_sample, rsc68_dll, rsc68_music, rsc68_last } |
Resource type. More... | |
Functions | |
const char * | rsc68_set_share (const char *path) |
Set shared resource path. | |
const char * | rsc68_set_user (const char *path) |
Set user resource path. | |
const char * | rsc68_set_music (const char *path) |
Set sc68 local music database path. | |
const char * | rsc68_set_remote_music (const char *path) |
Set sc68 remote music database path. | |
void | rsc68_get_path (const char **share, const char **user, const char **lmusic, const char **rmusic) |
Get resource pathes. | |
rsc68_handler_t | rsc68_set_handler (rsc68_handler_t fct) |
Set/Get resource handler. | |
istream_t * | rsc68_open (rsc68_t type, const char *name, int mode, rsc68_info_t *info) |
Open a resource in given mode. | |
istream_t * | rsc68_open_url (const char *url, int mode, rsc68_info_t *info) |
Open a resource URL in given mode. | |
const char * | rsc68_get_music_params (rsc68_info_t *info, const char *str) |
Get music parameters from string. |
|
Resource type.
|
|
Set shared resource path. The rsc68_set_share() function set the shared resource path. The path will be duplicate by SC68strdup(). If path is null the current path is freed.
|
|
Set user resource path. The rsc68_set_user() function set the user resource path. The path will be duplicate by SC68strdup(). If path is null the current path is freed.
|
|
Set sc68 local music database path. The rsc68_set_music() function set the local music database path. The path will be duplicate by SC68strdup(). If path is null the current path is freed.
|
|
Set sc68 remote music database path. The rsc68_set_remote_music() function set the remote music database path. The path will be duplicate by SC68strdup(). If path is null the current path is freed.
|
|
Get resource pathes.
|
|
Set/Get resource handler. The rsc68_set_handler() function set the current resource handler. If 0 is given as fct parameter the function does not set the handler. In all case the function returns the current handler. See below for more information about the default resource handler.
|
|
Open a resource in given mode. The function rsc68_open() function opens an istream_t to access a resource.
|
|
Open a resource URL in given mode.
|
|
Get music parameters from string. The rsc68_get_music_params() function parses the str string and stores track loop and time in the info struct. If it successes the info::type is set to rsc68_music else it is set rsc68_last.
|