#include "includes.h"
#include "../source4/param/s3_param.h"
+static bool lp_load_for_s4_ctx(const char *filename)
+{
+ return lp_load(filename, false, false, false, false);
+}
+
/* These are in the order that they appear in the s4 loadparm file.
* All of the s4 loadparm functions should be here eventually, once
* they are implemented in the s3 loadparm, have the same format (enum
.get_servicebynum = lp_servicebynum,
.get_default_loadparm_service = lp_default_loadparm_service,
.get_numservices = lp_numservices,
+ .load = lp_load_for_s4_ctx,
.set_cmdline = lp_set_cmdline,
.server_role = lp_server_role,
char *n2;
bool bRetval;
+ if (lp_ctx->s3_fns) {
+ return lp_ctx->s3_fns->load(filename);
+ }
+
filename = talloc_strdup(lp_ctx, filename);
lp_ctx->szConfigFile = filename;
$file->("\tstruct loadparm_service * (*get_default_loadparm_service)(void);\n");
$file->("\tstruct loadparm_service * (*get_servicebynum)(int snum);\n");
$file->("\tint (*get_numservices)(void);\n");
+ $file->("\tbool (*load)(const char *filename);\n");
$file->("\tbool (*set_cmdline)(const char *pszParmName, const char *pszParmValue);\n");
}