mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
generate_param: generate struct entries if we don't generate access functions.
This shrinks LOADPARM_EXTRA_GLOBALS/LOCALS. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
36abb6f2d3
commit
ff4134329d
@ -232,13 +232,9 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
|
|||||||
#define DEFAULT_SMB2_MAX_CREDITS 8192
|
#define DEFAULT_SMB2_MAX_CREDITS 8192
|
||||||
|
|
||||||
#define LOADPARM_EXTRA_LOCALS \
|
#define LOADPARM_EXTRA_LOCALS \
|
||||||
bool valid; \
|
|
||||||
int usershare; \
|
int usershare; \
|
||||||
struct timespec usershare_last_mod; \
|
struct timespec usershare_last_mod; \
|
||||||
char *copy; \
|
|
||||||
char *szService; \
|
char *szService; \
|
||||||
char *include; \
|
|
||||||
bool available; \
|
|
||||||
struct parmlist_entry *param_opt; \
|
struct parmlist_entry *param_opt; \
|
||||||
struct bitmap *copymap; \
|
struct bitmap *copymap; \
|
||||||
char dummy[3]; /* for alignment */
|
char dummy[3]; /* for alignment */
|
||||||
@ -247,10 +243,7 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
|
|||||||
|
|
||||||
#define LOADPARM_EXTRA_GLOBALS \
|
#define LOADPARM_EXTRA_GLOBALS \
|
||||||
struct parmlist_entry *param_opt; \
|
struct parmlist_entry *param_opt; \
|
||||||
char *realm_original; \
|
char *realm_original;
|
||||||
char *idmap_uid; \
|
|
||||||
char *idmap_gid; \
|
|
||||||
char *idmap_backend;
|
|
||||||
|
|
||||||
const char* server_role_str(uint32_t role);
|
const char* server_role_str(uint32_t role);
|
||||||
int lp_find_server_role(int server_role, int security, int domain_logons, int domain_master);
|
int lp_find_server_role(int server_role, int security, int domain_logons, int domain_master);
|
||||||
|
@ -256,8 +256,6 @@ def make_param_defs(path_in, path_out, scope):
|
|||||||
continue
|
continue
|
||||||
if parameter['synonym'] == "1":
|
if parameter['synonym'] == "1":
|
||||||
continue
|
continue
|
||||||
if parameter['generated'] == "0":
|
|
||||||
continue
|
|
||||||
|
|
||||||
if (scope == "GLOBAL" and parameter['context'] != "G" or
|
if (scope == "GLOBAL" and parameter['context'] != "G" or
|
||||||
scope == "LOCAL" and parameter['context'] != "S"):
|
scope == "LOCAL" and parameter['context'] != "S"):
|
||||||
|
Loading…
Reference in New Issue
Block a user