From 5be670074e908781ff67d3cbbce35b3e61b2058a Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 23 Jun 2001 15:01:34 +0000 Subject: handle P_LIST parameters (This used to be commit 26ab608c91c7357df3a79bc34111194f115de005) --- source3/web/swat.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'source3/web') diff --git a/source3/web/swat.c b/source3/web/swat.c index 71239d5681..262e7ef4c8 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -180,6 +180,27 @@ static void show_parameter(int snum, struct parm_struct *parm) make_parm_name(parm->label),(char)(parm->def.cvalue)); break; + case P_LIST: + printf("label)); + if (ptr) { + char** list = ptr; + for (;*list;list++) { + printf("%s%s", *list, ((*(list+1))?" ":"")); + } + } + printf("\">"); + printf("label)); + if (parm->def.lvalue) { + char **list = parm->def.lvalue; + for (; *list; list++) { + printf("%s%s", *list, ((*(list+1))?" ":"")); + } + } + printf("\'\">"); + break; + case P_STRING: case P_USTRING: printf("", @@ -279,6 +300,10 @@ static void show_parameters(int snum, int allparameters, int advanced, int print if (*(char *)ptr == (char)(parm->def.cvalue)) continue; break; + case P_LIST: + if (!lp_list_compare(*(char ***)ptr,(char **)(parm->def.lvalue))) continue; + break; + case P_STRING: case P_USTRING: if (!strcmp(*(char **)ptr,(char *)(parm->def.svalue))) continue; -- cgit