param/share: Use static prototypes.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 13 Jun 2010 17:21:02 +0000 (19:21 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 13 Jun 2010 17:26:48 +0000 (19:26 +0200)
source4/param/share.h
source4/param/wscript_build

index 755d19e33790137e8f0a493349956c722dab8c98..ab20c8a2441c1d87549157ba1d14eaa79cb27448 100644 (file)
@@ -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 */
 
index 1308829801b679073e8ed11318fb3fad872c6571..f3729d05506edf980bdf5c3a6ce6b6117f7bacbf 100644 (file)
@@ -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'
        )