libsmbconf: add talloc context to the get_includes methods.
authorMichael Adam <obnox@samba.org>
Tue, 8 Apr 2008 08:16:03 +0000 (10:16 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 9 Apr 2008 23:28:57 +0000 (01:28 +0200)
Michael

source/lib/smbconf/smbconf.c
source/lib/smbconf/smbconf.h
source/lib/smbconf/smbconf_private.h
source/lib/smbconf/smbconf_reg.c
source/lib/smbconf/smbconf_txt_simple.c

index 1ce761ebd4e1151241ed22b709947030ae2f966c..d5a334b92875fc8c4fc5ddd07649ed05909b15c4 100644 (file)
@@ -337,6 +337,7 @@ WERROR smbconf_delete_global_parameter(struct smbconf_ctx *ctx,
 }
 
 WERROR smbconf_get_includes(struct smbconf_ctx *ctx,
+                           TALLOC_CTX *mem_ctx,
                            const char *service,
                            uint32_t *num_includes, char ***includes)
 {
@@ -344,7 +345,8 @@ WERROR smbconf_get_includes(struct smbconf_ctx *ctx,
                return WERR_NO_SUCH_SERVICE;
        }
 
-       return ctx->ops->get_includes(ctx, service, num_includes, includes);
+       return ctx->ops->get_includes(ctx, mem_ctx, service, num_includes,
+                                     includes);
 }
 
 WERROR smbconf_set_includes(struct smbconf_ctx *ctx,
index 626d48e9620e46220e97fb3d61666ccb92156dfc..cd39758d3e7c8b5fe976c579ffdef29959d2a01b 100644 (file)
@@ -87,6 +87,7 @@ WERROR smbconf_delete_parameter(struct smbconf_ctx *ctx,
 WERROR smbconf_delete_global_parameter(struct smbconf_ctx *ctx,
                                       const char *param);
 WERROR smbconf_get_includes(struct smbconf_ctx *ctx,
+                           TALLOC_CTX *mem_ctx,
                            const char *service,
                            uint32_t *num_includes, char ***includes);
 WERROR smbconf_set_includes(struct smbconf_ctx *ctx,
index 1f26fca1ea546bd11656c6b44af25e958961ac80..bed8f8e5edbd66a9e939929f72ced367b9191cfb 100644 (file)
@@ -52,6 +52,7 @@ struct smbconf_ops {
        WERROR (*delete_parameter)(struct smbconf_ctx *ctx,
                                   const char *service, const char *param);
        WERROR (*get_includes)(struct smbconf_ctx *ctx,
+                              TALLOC_CTX *mem_ctx,
                               const char *service,
                               uint32_t *num_includes, char ***includes);
        WERROR (*set_includes)(struct smbconf_ctx *ctx,
index 0f499e3146dd0df77346fa19f88c99058daf2318..5651357d0bcb65a85595c4b8f0fc18dc12e9be12 100644 (file)
@@ -777,6 +777,7 @@ done:
 }
 
 static WERROR smbconf_reg_get_includes(struct smbconf_ctx *ctx,
+                                      TALLOC_CTX *mem_ctx,
                                       const char *service,
                                       uint32_t *num_includes,
                                       char ***includes)
index 9273b7947b91def78a045f1aa5867d0a135c1615..faf7ebb2537b9bfd9c407213ec03571727b848ba 100644 (file)
@@ -495,6 +495,7 @@ static WERROR smbconf_txt_delete_parameter(struct smbconf_ctx *ctx,
 }
 
 static WERROR smbconf_txt_get_includes(struct smbconf_ctx *ctx,
+                                      TALLOC_CTX *mem_ctx,
                                       const char *service,
                                       uint32_t *num_includes,
                                       char ***includes)