mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
r25462: Remove refernece to categories from js as well.
(This used to be commit 12d7cccd7c
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
f5f6d6d2ab
commit
8ffc4c1f97
@ -45,27 +45,6 @@ static int ejs_lpServices(MprVarHandle eid, int argc, char **argv)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
return a list of parameter categories
|
||||
*/
|
||||
static int ejs_lpCategories(MprVarHandle eid, int argc, char **argv)
|
||||
{
|
||||
struct parm_struct *parm_table = lp_parm_table();
|
||||
int i;
|
||||
const char **list = NULL;
|
||||
if (argc != 0) return -1;
|
||||
|
||||
for (i=0;parm_table[i].label;i++) {
|
||||
if (parm_table[i].class == P_SEPARATOR) {
|
||||
list = str_list_add(list, parm_table[i].label);
|
||||
}
|
||||
}
|
||||
talloc_steal(mprMemCtx(), list);
|
||||
mpr_Return(eid, mprList("categories", list));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
allow access to loadparm variables from inside ejs scripts in web apps
|
||||
|
||||
@ -178,9 +157,6 @@ static int ejs_lpGet(MprVarHandle eid, int argc, char **argv)
|
||||
case P_LIST:
|
||||
mpr_Return(eid, mprList(parm->label, *(const char ***)parm_ptr));
|
||||
break;
|
||||
case P_SEP:
|
||||
mpr_Return(eid, mprCreateUndefinedVar());
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -230,7 +206,6 @@ static int ejs_loadparm_init(MprVarHandle eid, int argc, struct MprVar **argv)
|
||||
mprSetStringCFunction(obj, "set", ejs_lpSet);
|
||||
mprSetStringCFunction(obj, "reload", ejs_lpReload);
|
||||
mprSetStringCFunction(obj, "services", ejs_lpServices);
|
||||
mprSetStringCFunction(obj, "categories", ejs_lpCategories);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user