Home Download Musics Developers
API Sources Tools File Format Technicals

rsc68.h

Go to the documentation of this file.
00001 
00012 /* Copyright (C) 1998-2003 Benjamin Gerard */
00013 
00014 #ifndef _RSC68_H_
00015 #define _RSC68_H_
00016 
00017 #include "file68/istream68.h"
00018 
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022 
00032 typedef enum
00033 {
00034   rsc68_replay,       
00035   rsc68_config,       
00036   rsc68_sample,       
00037   rsc68_dll,          
00038   rsc68_music,        
00040   rsc68_last,         
00041 } rsc68_t;
00042 
00044 typedef struct {
00045   rsc68_t type; 
00047   union {
00049     struct {
00050       int track; 
00051       int loop;  
00052       int time;  
00053     } music;
00054   } data;
00055 
00056 } rsc68_info_t;
00057 
00059 typedef istream_t * (*rsc68_handler_t)(rsc68_t type,
00060                                        const char * name,
00061                                        int mode,
00062                                        rsc68_info_t * info);
00063 
00076 const char * rsc68_set_share(const char *path);
00077 
00089 const char * rsc68_set_user(const char *path);
00090 
00102 const char * rsc68_set_music(const char *path);
00103 
00115 const char * rsc68_set_remote_music(const char *path);
00116 
00124 void rsc68_get_path(const char ** share,
00125                     const char ** user,
00126                     const char ** lmusic,
00127                     const char ** rmusic);
00128 
00155 rsc68_handler_t rsc68_set_handler(rsc68_handler_t fct);
00156 
00172 istream_t * rsc68_open(rsc68_t type,
00173                        const char *name,
00174                        int mode,
00175                        rsc68_info_t * info);
00176 
00188 istream_t * rsc68_open_url(const char *url,
00189                            int mode,
00190                            rsc68_info_t * info);
00191 
00192 
00206 const char * rsc68_get_music_params(rsc68_info_t *info,
00207                                     const char * str);
00208 
00213 #ifdef __cplusplus
00214 }
00215 #endif
00216 
00217 #endif /* #ifndef _RSC68_H_ */