Commit 7b558301 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Hide internal settings

parent bb62471f
...@@ -652,10 +652,6 @@ static VLCTreeItem *o_root_item = nil; ...@@ -652,10 +652,6 @@ static VLCTreeItem *o_root_item = nil;
default: default:
{ {
VLCConfigControl *o_control = nil; VLCConfigControl *o_control = nil;
if( p_item->b_internal == VLC_TRUE )
{
break;
}
o_control = [VLCConfigControl newControl:p_item o_control = [VLCConfigControl newControl:p_item
withView:o_view]; withView:o_view];
if( o_control != nil ) if( o_control != nil )
......
...@@ -993,8 +993,6 @@ PrefsPanel::PrefsPanel( wxWindow* parent, intf_thread_t *_p_intf, ...@@ -993,8 +993,6 @@ PrefsPanel::PrefsPanel( wxWindow* parent, intf_thread_t *_p_intf,
p_item->i_type == CONFIG_SUBCATEGORY ) ) p_item->i_type == CONFIG_SUBCATEGORY ) )
break; break;
if( p_item->b_internal == VLC_TRUE ) continue;
ConfigControl *control = ConfigControl *control =
CreateConfigControl( VLC_OBJECT(p_intf), CreateConfigControl( VLC_OBJECT(p_intf),
p_item, config_window ); p_item, config_window );
......
...@@ -794,13 +794,21 @@ char ** __module_GetModulesNamesForCapability( vlc_object_t *p_this, ...@@ -794,13 +794,21 @@ char ** __module_GetModulesNamesForCapability( vlc_object_t *p_this,
module_config_t *module_GetConfig (const module_t *module, unsigned *restrict psize) module_config_t *module_GetConfig (const module_t *module, unsigned *restrict psize)
{ {
unsigned size = module->confsize; unsigned size = module->confsize;
module_config_t *config = malloc (size * sizeof (*config));
assert (psize != NULL); assert (psize != NULL);
*psize = size; *psize = 0;
module_config_t *config = malloc (size * sizeof (*config)); for (unsigned i = 0, j = 0; i < size; i++)
if (config) {
memcpy (config, module->p_config, size * sizeof (*config)); if (module->p_config[i].b_internal)
continue;
if (config != NULL)
memcpy (config + j, module->p_config + i, sizeof (*config));
*psize = j;
j++;
}
return config; return config;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment