Changeset b47cf198a11ab929cdc6617b32af2c8c92843a93

Show
Ignore:
Timestamp:
12/09/07 20:55:16 (9 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1197230116 +0000
git-parent:

[b2f6c56e64b012426453f20f476866f03425ba36]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1197230116 +0000
Message:

Do not privatize module_config_t - yet

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc.h

    re7f8878 rb47cf19  
    2727 
    2828extern const char vlc_usage[]; 
    29  
    30 extern const module_config_t libvlc_config[]; 
    31 extern const size_t libvlc_config_count; 
    3229 
    3330extern const struct hotkey libvlc_hotkeys[]; 
     
    126123} 
    127124 
     125/* 
     126 * Configuration stuff 
     127 */ 
     128#if 0 
     129struct 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}; 
    128174#endif 
     175 
     176extern const module_config_t libvlc_config[]; 
     177extern const size_t libvlc_config_count; 
     178 
     179#endif