mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
param: Add an lp_string_set function
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-on: https://gerrit.samba.org/100 Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
7c92cf30a5
commit
c1c1f09c18
@ -254,6 +254,7 @@ bool lp_is_security_and_server_role_valid(int server_role, int security);
|
||||
|
||||
struct loadparm_global * get_globals(void);
|
||||
char * lp_string(TALLOC_CTX *, const char *);
|
||||
bool lp_string_set(char **, const char *);
|
||||
|
||||
/**
|
||||
* Check if two parameters are equal.
|
||||
|
@ -325,6 +325,10 @@ static bool string_set(TALLOC_CTX *mem_ctx, char **dest,const char *src)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool lp_string_set(char **dest, const char *src) {
|
||||
return string_set(Globals.ctx, dest, src);
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
Initialise the sDefault parameter structure for the printer values.
|
||||
***************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user