1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +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:
Michael Adam 2015-07-22 19:14:26 +02:00 committed by Jeremy Allison
parent 36abb6f2d3
commit ff4134329d
2 changed files with 1 additions and 10 deletions

View File

@ -232,13 +232,9 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
#define DEFAULT_SMB2_MAX_CREDITS 8192
#define LOADPARM_EXTRA_LOCALS \
bool valid; \
int usershare; \
struct timespec usershare_last_mod; \
char *copy; \
char *szService; \
char *include; \
bool available; \
struct parmlist_entry *param_opt; \
struct bitmap *copymap; \
char dummy[3]; /* for alignment */
@ -247,10 +243,7 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
#define LOADPARM_EXTRA_GLOBALS \
struct parmlist_entry *param_opt; \
char *realm_original; \
char *idmap_uid; \
char *idmap_gid; \
char *idmap_backend;
char *realm_original;
const char* server_role_str(uint32_t role);
int lp_find_server_role(int server_role, int security, int domain_logons, int domain_master);

View File

@ -256,8 +256,6 @@ def make_param_defs(path_in, path_out, scope):
continue
if parameter['synonym'] == "1":
continue
if parameter['generated'] == "0":
continue
if (scope == "GLOBAL" and parameter['context'] != "G" or
scope == "LOCAL" and parameter['context'] != "S"):