summaryrefslogtreecommitdiff
path: root/source4/lib/policy/policy.h
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-05-24 17:07:48 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 17:19:12 +0200
commit674d559f37a1e553be3e01ade04936ff9662baa3 (patch)
tree103f9fa65d57e2722eb688eda7662ea0ebcb13c5 /source4/lib/policy/policy.h
parent3fe793fce7060c785576bb5f3d7039df60bc7b1d (diff)
downloadsamba-674d559f37a1e553be3e01ade04936ff9662baa3.tar.gz
samba-674d559f37a1e553be3e01ade04936ff9662baa3.tar.bz2
samba-674d559f37a1e553be3e01ade04936ff9662baa3.zip
Add GP ini functions.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/lib/policy/policy.h')
-rw-r--r--source4/lib/policy/policy.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/lib/policy/policy.h b/source4/lib/policy/policy.h
index d55cb30abd..8dc2f9ccb0 100644
--- a/source4/lib/policy/policy.h
+++ b/source4/lib/policy/policy.h
@@ -18,8 +18,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GPO_H__
-#define __GPO_H__
+#ifndef __POLICY_H__
+#define __POLICY_H__
#include "libcli/libcli.h"
#define GPLINK_OPT_DISABLE (1 << 0)
@@ -110,6 +110,11 @@ NTSTATUS gp_fetch_gpt (struct gp_context *gp_ctx, struct gp_object *gpo, const c
NTSTATUS gp_create_gpt(struct gp_context *gp_ctx, const char *name, const char *file_sys_path);
NTSTATUS gp_set_gpt_security_descriptor(struct gp_context *gp_ctx, struct gp_object *gpo, struct security_descriptor *sd);
+/* Ini functions */
+NTSTATUS gp_parse_ini(TALLOC_CTX *mem_ctx, struct gp_context *gp_ctx, const char *filename, struct gp_ini_context **ret);
+NTSTATUS gp_get_ini_string(struct gp_ini_context *ini, const char *section, const char *name, char **ret);
+NTSTATUS gp_get_ini_uint(struct gp_ini_context *ini, const char *section, const char *name, uint32_t *ret);
+
/* Managing functions */
NTSTATUS gp_create_gpo (struct gp_context *gp_ctx, const char *display_name, struct gp_object **ret);
NTSTATUS gp_create_gpt_security_descriptor (TALLOC_CTX *mem_ctx, struct security_descriptor *ds_sd, struct security_descriptor **ret);