]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmbconf: group together functions in smbconf.c more appropriately
authorMichael Adam <obnox@samba.org>
Fri, 21 Mar 2008 15:40:20 +0000 (16:40 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 21 Mar 2008 15:40:20 +0000 (16:40 +0100)
Michael

source/lib/smbconf/smbconf.c

index 88f2141139874ebfab8a3c6d6cdcdba894bb19e6..0eee5a6c4a2c2425936be912625066c44c988281 100644 (file)
 
 /**********************************************************************
  *
- * 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)
  *
  **********************************************************************/
 
        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.
  */