| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) |
|---|
| 22 |
# error This header file can only be included from LibVLC. |
|---|
| 23 |
#endif |
|---|
| 24 |
|
|---|
| 25 |
#ifndef LIBVLC_CONFIGURATION_H |
|---|
| 26 |
# define LIBVLC_CONFIGURATION_H 1 |
|---|
| 27 |
|
|---|
| 28 |
# ifdef __cplusplus |
|---|
| 29 |
extern "C" { |
|---|
| 30 |
# endif |
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
int config_CreateDir( vlc_object_t *, const char * ); |
|---|
| 35 |
int config_AutoSaveConfigFile( vlc_object_t * ); |
|---|
| 36 |
|
|---|
| 37 |
void config_Free( module_t * ); |
|---|
| 38 |
|
|---|
| 39 |
void config_SetCallbacks( module_config_t *, module_config_t *, size_t ); |
|---|
| 40 |
void config_UnsetCallbacks( module_config_t *, size_t ); |
|---|
| 41 |
|
|---|
| 42 |
#define config_LoadCmdLine(a,b,c,d) __config_LoadCmdLine(VLC_OBJECT(a),b,c,d) |
|---|
| 43 |
#define config_LoadConfigFile(a,b) __config_LoadConfigFile(VLC_OBJECT(a),b) |
|---|
| 44 |
|
|---|
| 45 |
int __config_LoadCmdLine ( vlc_object_t *, int *, const char *[], bool ); |
|---|
| 46 |
char *config_GetCustomConfigFile( libvlc_int_t * ); |
|---|
| 47 |
int __config_LoadConfigFile( vlc_object_t *, const char * ); |
|---|
| 48 |
|
|---|
| 49 |
int IsConfigStringType( int type ); |
|---|
| 50 |
int IsConfigIntegerType (int type); |
|---|
| 51 |
static inline int IsConfigFloatType (int type) |
|---|
| 52 |
{ |
|---|
| 53 |
return type == CONFIG_ITEM_FLOAT; |
|---|
| 54 |
} |
|---|
| 55 |
|
|---|
| 56 |
int ConfigStringToKey( const char * ); |
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
#if defined (SYS_BEOS) |
|---|
| 60 |
# define CONFIG_DIR "config/settings/VideoLAN Client" |
|---|
| 61 |
#elif defined (__APPLE__) |
|---|
| 62 |
# define CONFIG_DIR "Library/Preferences/VLC" |
|---|
| 63 |
#elif defined( WIN32 ) || defined( UNDER_CE ) |
|---|
| 64 |
# define CONFIG_DIR "vlc" |
|---|
| 65 |
#else |
|---|
| 66 |
# define CONFIG_DIR ".vlc" |
|---|
| 67 |
#endif |
|---|
| 68 |
#define CONFIG_FILE "vlcrc" |
|---|
| 69 |
|
|---|
| 70 |
# ifdef __cplusplus |
|---|
| 71 |
} |
|---|
| 72 |
# endif |
|---|
| 73 |
#endif |
|---|