diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/policy/config.mk | 2 | ||||
-rw-r--r-- | source4/lib/policy/policy.h | 15 | ||||
-rw-r--r-- | source4/lib/policy/wscript_build | 2 |
3 files changed, 17 insertions, 2 deletions
diff --git a/source4/lib/policy/config.mk b/source4/lib/policy/config.mk index 0a3e731c54..bc87644ef7 100644 --- a/source4/lib/policy/config.mk +++ b/source4/lib/policy/config.mk @@ -1,6 +1,6 @@ [SUBSYSTEM::policy] PRIVATE_DEPENDENCIES = LIBLDB LIBSAMBA-NET -policy_OBJ_FILES = $(policydir)/gp_ldap.o $(policydir)/gp_filesys.c $(policydir)/gp_manage.c +policy_OBJ_FILES = $(policydir)/gp_ldap.o $(policydir)/gp_filesys.c $(policydir)/gp_manage.c $(policydir)/gp_ini.c PC_FILES += $(policydir)/policy.pc diff --git a/source4/lib/policy/policy.h b/source4/lib/policy/policy.h index 86ab33ee7d..d55cb30abd 100644 --- a/source4/lib/policy/policy.h +++ b/source4/lib/policy/policy.h @@ -61,6 +61,21 @@ struct gp_link { const char *dn; }; +struct gp_ini_param { + char *name; + char *value; +}; + +struct gp_ini_section { + char *name; + uint16_t num_params; + struct gp_ini_param *params; +}; + +struct gp_ini_context { + uint16_t num_sections; + struct gp_ini_section *sections; +}; NTSTATUS gp_init(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, diff --git a/source4/lib/policy/wscript_build b/source4/lib/policy/wscript_build index fb34c14c34..0892353d88 100644 --- a/source4/lib/policy/wscript_build +++ b/source4/lib/policy/wscript_build @@ -1,7 +1,7 @@ #!/usr/bin/env python bld.SAMBA_LIBRARY('policy', - source='gp_ldap.c gp_filesys.c gp_manage.c', + source='gp_ldap.c gp_filesys.c gp_manage.c gp_ini.c', pc_files='policy.pc', public_deps='LIBLDB LIBSAMBA-NET', public_headers='policy.h', |