| | 125 | /* |
|---|
| | 126 | * Configuration stuff |
|---|
| | 127 | */ |
|---|
| | 128 | #if 0 |
|---|
| | 129 | struct module_config_t |
|---|
| | 130 | { |
|---|
| | 131 | int i_type; /* Configuration type */ |
|---|
| | 132 | const char *psz_type; /* Configuration subtype */ |
|---|
| | 133 | const char *psz_name; /* Option name */ |
|---|
| | 134 | char i_short; /* Optional short option name */ |
|---|
| | 135 | const char *psz_text; /* Short comment on the configuration option */ |
|---|
| | 136 | const char *psz_longtext; /* Long comment on the configuration option */ |
|---|
| | 137 | module_value_t value; /* Option value */ |
|---|
| | 138 | module_value_t orig; |
|---|
| | 139 | module_value_t saved; |
|---|
| | 140 | module_nvalue_t min; |
|---|
| | 141 | module_nvalue_t max; |
|---|
| | 142 | |
|---|
| | 143 | /* Function to call when commiting a change */ |
|---|
| | 144 | vlc_callback_t pf_callback; |
|---|
| | 145 | void *p_callback_data; |
|---|
| | 146 | |
|---|
| | 147 | /* Values list */ |
|---|
| | 148 | const char **ppsz_list; /* List of possible values for the option */ |
|---|
| | 149 | int *pi_list; /* Idem for integers */ |
|---|
| | 150 | const char **ppsz_list_text; /* Friendly names for list values */ |
|---|
| | 151 | int i_list; /* Options list size */ |
|---|
| | 152 | |
|---|
| | 153 | /* Actions list */ |
|---|
| | 154 | vlc_callback_t *ppf_action; /* List of possible actions for a config */ |
|---|
| | 155 | const char **ppsz_action_text; /* Friendly names for actions */ |
|---|
| | 156 | int i_action; /* actions list size */ |
|---|
| | 157 | |
|---|
| | 158 | /* Misc */ |
|---|
| | 159 | vlc_mutex_t *p_lock; /* Lock to use when modifying the config */ |
|---|
| | 160 | vlc_bool_t b_dirty; /* Dirty flag to indicate a config change */ |
|---|
| | 161 | vlc_bool_t b_advanced; /* Flag to indicate an advanced option */ |
|---|
| | 162 | vlc_bool_t b_internal; /* Flag to indicate option is not to be shown */ |
|---|
| | 163 | vlc_bool_t b_restart; /* Flag to indicate the option needs a restart */ |
|---|
| | 164 | /* to take effect */ |
|---|
| | 165 | |
|---|
| | 166 | /* Deprecated */ |
|---|
| | 167 | const char *psz_current; /* Good option name */ |
|---|
| | 168 | vlc_bool_t b_strict; /* Transitionnal or strict */ |
|---|
| | 169 | |
|---|
| | 170 | /* Option values loaded from config file */ |
|---|
| | 171 | vlc_bool_t b_autosave; /* Config will be auto-saved at exit time */ |
|---|
| | 172 | vlc_bool_t b_unsaveable; /* Config should be saved */ |
|---|
| | 173 | }; |
|---|