summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
Diffstat (limited to 'options')
-rw-r--r--options/m_config.c2
-rw-r--r--options/m_config.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/options/m_config.c b/options/m_config.c
index d9a3343ab7..2b873e765c 100644
--- a/options/m_config.c
+++ b/options/m_config.c
@@ -64,7 +64,7 @@ static int parse_include(struct m_config *config, struct bstr param, bool set,
if (!set)
return 1;
char *filename = bstrdup0(NULL, param);
- config->includefunc(config, filename, flags);
+ config->includefunc(config->includefunc_ctx, filename, flags);
talloc_free(filename);
return 1;
}
diff --git a/options/m_config.h b/options/m_config.h
index 1f03a9abea..829fa90ba7 100644
--- a/options/m_config.h
+++ b/options/m_config.h
@@ -61,7 +61,8 @@ typedef struct m_config {
bool use_profiles;
bool is_toplevel;
- int (*includefunc)(struct m_config *conf, char *filename, int flags);
+ int (*includefunc)(void *ctx, char *filename, int flags);
+ void *includefunc_ctx;
void *optstruct; // struct mpopts or other
} m_config_t;