mirror of
https://github.com/samba-team/samba.git
synced 2025-11-06 08:23:50 +03:00
r8318: added a bunch more ejs calls.
getgr*() getpw*() strlower() strupper() IfaceList()
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
5f079d7463
commit
1517ad490d
@@ -114,6 +114,18 @@ struct MprVar mprList(const char *name, const char **list)
|
||||
return var;
|
||||
}
|
||||
|
||||
/*
|
||||
construct a MprVar from a string, using NULL if needed
|
||||
*/
|
||||
struct MprVar mprString(const char *s)
|
||||
{
|
||||
struct MprVar var;
|
||||
if (s == NULL) {
|
||||
return mprCreatePtrVar(NULL, "NULL");
|
||||
}
|
||||
return mprCreateStringVar(s, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
construct a string MprVar from a lump of data
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user