| 151 | | /* |
|---|
| 152 | | * Configuration stuff |
|---|
| 153 | | */ |
|---|
| 154 | | #if 0 |
|---|
| 155 | | struct module_config_t |
|---|
| 156 | | { |
|---|
| 157 | | int i_type; /* Configuration type */ |
|---|
| 158 | | const char *psz_type; /* Configuration subtype */ |
|---|
| 159 | | const char *psz_name; /* Option name */ |
|---|
| 160 | | char i_short; /* Optional short option name */ |
|---|
| 161 | | const char *psz_text; /* Short comment on the configuration option */ |
|---|
| 162 | | const char *psz_longtext; /* Long comment on the configuration option */ |
|---|
| 163 | | module_value_t value; /* Option value */ |
|---|
| 164 | | module_value_t orig; |
|---|
| 165 | | module_value_t saved; |
|---|
| 166 | | module_nvalue_t min; |
|---|
| 167 | | module_nvalue_t max; |
|---|
| 168 | | |
|---|
| 169 | | /* Function to call when commiting a change */ |
|---|
| 170 | | vlc_callback_t pf_callback; |
|---|
| 171 | | void *p_callback_data; |
|---|
| 172 | | |
|---|
| 173 | | /* Values list */ |
|---|
| 174 | | const char **ppsz_list; /* List of possible values for the option */ |
|---|
| 175 | | int *pi_list; /* Idem for integers */ |
|---|
| 176 | | const char **ppsz_list_text; /* Friendly names for list values */ |
|---|
| 177 | | int i_list; /* Options list size */ |
|---|
| 178 | | |
|---|
| 179 | | /* Actions list */ |
|---|
| 180 | | vlc_callback_t *ppf_action; /* List of possible actions for a config */ |
|---|
| 181 | | const char **ppsz_action_text; /* Friendly names for actions */ |
|---|
| 182 | | int i_action; /* actions list size */ |
|---|
| 183 | | |
|---|
| 184 | | /* Misc */ |
|---|
| 185 | | vlc_mutex_t *p_lock; /* Lock to use when modifying the config */ |
|---|
| 186 | | vlc_bool_t b_dirty; /* Dirty flag to indicate a config change */ |
|---|
| 187 | | vlc_bool_t b_advanced; /* Flag to indicate an advanced option */ |
|---|
| 188 | | vlc_bool_t b_internal; /* Flag to indicate option is not to be shown */ |
|---|
| 189 | | vlc_bool_t b_restart; /* Flag to indicate the option needs a restart */ |
|---|
| 190 | | /* to take effect */ |
|---|
| 191 | | |
|---|
| 192 | | /* Deprecated */ |
|---|
| 193 | | const char *psz_current; /* Good option name */ |
|---|
| 194 | | vlc_bool_t b_strict; /* Transitionnal or strict */ |
|---|
| 195 | | |
|---|
| 196 | | /* Option values loaded from config file */ |
|---|
| 197 | | vlc_bool_t b_autosave; /* Config will be auto-saved at exit time */ |
|---|
| 198 | | vlc_bool_t b_unsaveable; /* Config should be saved */ |
|---|
| 199 | | }; |
|---|
| 200 | | #endif |
|---|
| 201 | | |
|---|