summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf/smbconf.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-21 16:40:20 +0100
committerMichael Adam <obnox@samba.org>2008-03-21 16:40:20 +0100
commit5e1eca34f36e1d886e568142d18813cedf3e1699 (patch)
treeafd80fbe6733661064d20ece8980ff0e6140c742 /source3/lib/smbconf/smbconf.c
parent44dc10d808474e669f86337fff73738f97110a0f (diff)
downloadsamba-5e1eca34f36e1d886e568142d18813cedf3e1699.tar.gz
samba-5e1eca34f36e1d886e568142d18813cedf3e1699.tar.bz2
samba-5e1eca34f36e1d886e568142d18813cedf3e1699.zip
libsmbconf: group together functions in smbconf.c more appropriately
Michael (This used to be commit e8ed8ad077f69ae7237f49b150625d20eb509586)
Diffstat (limited to 'source3/lib/smbconf/smbconf.c')
-rw-r--r--source3/lib/smbconf/smbconf.c50
1 files changed, 29 insertions, 21 deletions
diff --git a/source3/lib/smbconf/smbconf.c b/source3/lib/smbconf/smbconf.c
index 88f2141139..0eee5a6c4a 100644
--- a/source3/lib/smbconf/smbconf.c
+++ b/source3/lib/smbconf/smbconf.c
@@ -23,7 +23,28 @@
/**********************************************************************
*
- * Helper functions
+ * internal helper functions
+ *
+ **********************************************************************/
+
+static int smbconf_destroy_ctx(struct smbconf_ctx *ctx)
+{
+ return ctx->ops->shutdown(ctx);
+}
+
+static WERROR smbconf_global_check(struct smbconf_ctx *ctx)
+{
+ if (!smbconf_share_exists(ctx, GLOBAL_NAME)) {
+ return smbconf_create_share(ctx, GLOBAL_NAME);
+ }
+ return WERR_OK;
+}
+
+
+/**********************************************************************
+ *
+ * helper functions exported to the backend modules
+ * (might go into a smbconf_util.c)
*
**********************************************************************/
@@ -57,26 +78,6 @@
return WERR_OK;
}
-static int smbconf_destroy_ctx(struct smbconf_ctx *ctx)
-{
- return ctx->ops->shutdown(ctx);
-}
-
-static WERROR smbconf_global_check(struct smbconf_ctx *ctx)
-{
- if (!smbconf_share_exists(ctx, GLOBAL_NAME)) {
- return smbconf_create_share(ctx, GLOBAL_NAME);
- }
- return WERR_OK;
-}
-
-
-/**********************************************************************
- *
- * The actual libsmbconf API functions that are exported.
- *
- **********************************************************************/
-
/**
* Initialize the configuration.
*
@@ -122,6 +123,13 @@ fail:
return werr;
}
+
+/**********************************************************************
+ *
+ * The actual libsmbconf API functions that are exported.
+ *
+ **********************************************************************/
+
/**
* Close the configuration.
*/