diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-06-13 19:21:02 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-06-13 19:26:48 +0200 |
commit | f52a0d31f08aff9eb8e8890730ec76dfdee7016a (patch) | |
tree | 1b47055fed5d81f7b4b51106257b8d459b12fc8d /source4/param | |
parent | 09fb7fcd5f63e180007958de82e59359cc8cfd5e (diff) | |
download | samba-f52a0d31f08aff9eb8e8890730ec76dfdee7016a.tar.gz samba-f52a0d31f08aff9eb8e8890730ec76dfdee7016a.tar.bz2 samba-f52a0d31f08aff9eb8e8890730ec76dfdee7016a.zip |
param/share: Use static prototypes.
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/share.h | 16 | ||||
-rw-r--r-- | source4/param/wscript_build | 1 |
2 files changed, 15 insertions, 2 deletions
diff --git a/source4/param/share.h b/source4/param/share.h index 755d19e337..ab20c8a244 100644 --- a/source4/param/share.h +++ b/source4/param/share.h @@ -67,7 +67,21 @@ struct share_ops { struct loadparm_context; -#include "param/share_proto.h" +const char *share_string_option(struct share_config *scfg, const char *opt_name, const char *defval); +int share_int_option(struct share_config *scfg, const char *opt_name, int defval); +bool share_bool_option(struct share_config *scfg, const char *opt_name, bool defval); +const char **share_string_list_option(TALLOC_CTX *mem_ctx, struct share_config *scfg, const char *opt_name); +NTSTATUS share_list_all(TALLOC_CTX *mem_ctx, struct share_context *sctx, int *count, const char ***names); +NTSTATUS share_get_config(TALLOC_CTX *mem_ctx, struct share_context *sctx, const char *name, struct share_config **scfg); +NTSTATUS share_create(struct share_context *sctx, const char *name, struct share_info *info, int count); +NTSTATUS share_set(struct share_context *sctx, const char *name, struct share_info *info, int count); +NTSTATUS share_remove(struct share_context *sctx, const char *name); +NTSTATUS share_register(const struct share_ops *ops); +NTSTATUS share_get_context_by_name(TALLOC_CTX *mem_ctx, const char *backend_name, + struct tevent_context *event_ctx, + struct loadparm_context *lp_ctx, + struct share_context **ctx); +NTSTATUS share_init(void); /* list of shares options */ diff --git a/source4/param/wscript_build b/source4/param/wscript_build index 1308829801..f3729d0550 100644 --- a/source4/param/wscript_build +++ b/source4/param/wscript_build @@ -18,7 +18,6 @@ bld.SAMBA_PYTHON('PROVISION', bld.SAMBA_SUBSYSTEM('share', source='share.c', - autoproto='share_proto.h', public_headers='share.h', deps='LIBSAMBA-UTIL' ) |