Changeset 0babda75f1d5df89261dc5fa4e98f57f3ef9de77
- Timestamp:
- 12/16/07 16:12:51
(9 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1197817971 +0000
- git-parent:
[514ab9ef4abf5e361fed91424a3b2cc5ee2e530d]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1197817971 +0000
- Message:
Don't use enums. They are cool and all (the compiler even tells when one case is missing in switch), but I don't want the compiler to assume as yet unassigned codepoints will not be used.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1f9d8d6 |
r0babda7 |
|
| 232 | 232 | #define config_ExistIntf(a,b) __config_ExistIntf(VLC_OBJECT(a),b) |
|---|
| 233 | 233 | |
|---|
| 234 | | typedef enum vlc_config_properties |
|---|
| | 234 | enum vlc_config_properties |
|---|
| 235 | 235 | { |
|---|
| 236 | 236 | /* DO NOT EVER REMOVE, INSERT OR REPLACE ANY ITEM! It would break the ABI! |
|---|
| … | … | |
| 269 | 269 | VLC_CONFIG_CAPABILITY, |
|---|
| 270 | 270 | /* capability for a module or list thereof (args=const char*) */ |
|---|
| 271 | | } vlc_config_t; |
|---|
| | 271 | }; |
|---|
| 272 | 272 | |
|---|
| 273 | 273 | |
|---|
| 274 | 274 | VLC_EXPORT( module_config_t *, vlc_config_create, (module_t *, int type) ); |
|---|
| 275 | | VLC_EXPORT( int, vlc_config_set, (module_config_t *, vlc_config_t, ...) ); |
|---|
| | 275 | VLC_EXPORT( int, vlc_config_set, (module_config_t *, int, ...) ); |
|---|
| 276 | 276 | |
|---|
| 277 | 277 | /***************************************************************************** |
|---|
| … | … | |
| 362 | 362 | (const char *)(psz_caps)) |
|---|
| 363 | 363 | |
|---|
| 364 | | #define add_module_cat( name, i_subcategory, value, p_callback, text, longtext, advc ) \ |
|---|
| 365 | | add_string_inner( CONFIG_ITEM_MODULE_CAT, name, text, longtext, advc, p_callback, value ); \ |
|---|
| 366 | | p_config[i_config].min.i = i_subcategory /* gruik */ |
|---|
| 367 | | |
|---|
| 368 | 364 | #define add_module_list( name, psz_caps, value, p_callback, text, longtext, advc ) \ |
|---|
| 369 | 365 | add_string_inner( CONFIG_ITEM_MODULE_LIST, name, text, longtext, advc, p_callback, value ); \ |
|---|
| … | … | |
| 371 | 367 | (const char *)(psz_caps)) |
|---|
| 372 | 368 | |
|---|
| | 369 | #ifndef __PLUGIN__ |
|---|
| | 370 | #define add_module_cat( name, i_subcategory, value, p_callback, text, longtext, advc ) \ |
|---|
| | 371 | add_string_inner( CONFIG_ITEM_MODULE_CAT, name, text, longtext, advc, p_callback, value ); \ |
|---|
| | 372 | p_config[i_config].min.i = i_subcategory /* gruik */ |
|---|
| | 373 | |
|---|
| 373 | 374 | #define add_module_list_cat( name, i_subcategory, value, p_callback, text, longtext, advc ) \ |
|---|
| 374 | 375 | add_string_inner( CONFIG_ITEM_MODULE_LIST_CAT, name, text, longtext, advc, p_callback, value ); \ |
|---|
| 375 | 376 | p_config[i_config].min.i = i_subcategory /* gruik */ |
|---|
| | 377 | #endif |
|---|
| 376 | 378 | |
|---|
| 377 | 379 | #define add_integer( name, value, p_callback, text, longtext, advc ) \ |
|---|
| rcc4cca2 |
r0babda7 |
|
| 72 | 72 | VLC_MODULE_CB_CLOSE, |
|---|
| 73 | 73 | VLC_MODULE_UNLOADABLE, |
|---|
| 74 | | VLC_MODULE_NAME |
|---|
| | 74 | VLC_MODULE_NAME, |
|---|
| 75 | 75 | }; |
|---|
| 76 | 76 | |
|---|
| reda425f |
r0babda7 |
|
| 133 | 133 | case VLC_MODULE_PROGRAM: |
|---|
| 134 | 134 | msg_Warn (module, "deprecated module property %d", propid); |
|---|
| 135 | | return 0; |
|---|
| | 135 | break; |
|---|
| 136 | 136 | |
|---|
| 137 | 137 | default: |
|---|
| … | … | |
| 162 | 162 | } |
|---|
| 163 | 163 | |
|---|
| 164 | | int vlc_config_set (module_config_t *restrict item, vlc_config_t id, ...) |
|---|
| | 164 | int vlc_config_set (module_config_t *restrict item, int id, ...) |
|---|
| 165 | 165 | { |
|---|
| 166 | 166 | int ret = -1; |
|---|