Commit 303a06f0 authored by David Fuhrmann's avatar David Fuhrmann

macosx: show lua intfs in advanced preferences

hack adapted from the qt interface.

close #7876
(cherry picked from commit 3b4128149119c6b0f9575a6ec16f7d585ac7a388)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent 12093430
...@@ -2157,6 +2157,28 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -2157,6 +2157,28 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
arrayWithObjects: o_modulename, o_modulelongname, arrayWithObjects: o_modulename, o_modulelongname,
o_moduleenabled, nil]]; o_moduleenabled, nil]];
} }
/* Parental Advisory HACK:
* Selecting HTTP, RC and Telnet interfaces is difficult now
* since they are just the lua interface module */
if (p_config->i_type == CONFIG_SUBCATEGORY &&
!strcmp(module_get_object(p_parser), "lua") &&
!strcmp(_p_item->psz_name, "extraintf") &&
p_config->value.i == _p_item->min.i) {
#define addLuaIntf(shortname, longname) \
if (_p_item->value.psz && strstr(_p_item->value.psz, shortname))\
o_moduleenabled = [NSNumber numberWithBool:YES];\
else\
o_moduleenabled = [NSNumber numberWithBool:NO];\
[o_modulearray addObject:[NSMutableArray arrayWithObjects: @shortname, _NS(longname), o_moduleenabled, nil]]
addLuaIntf("http", "Web");
addLuaIntf("telnet", "Telnet");
addLuaIntf("cli", "Console");
#undef addLuaIntf
}
} }
module_config_free( p_configlist ); module_config_free( p_configlist );
} }
......
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