summaryrefslogtreecommitdiffstats
path: root/src/methods/methods.c.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/methods/methods.c.in')
-rw-r--r--src/methods/methods.c.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/methods/methods.c.in b/src/methods/methods.c.in
index a2c7963..d81a121 100644
--- a/src/methods/methods.c.in
+++ b/src/methods/methods.c.in
@@ -29,15 +29,15 @@
@METHOD_DEFINITIONS@
-static const fastd_method_t *const methods[] = { @METHOD_LIST@
+static const fastd_method_provider_t *const providers[] = { @METHOD_LIST@
};
-bool fastd_method_create_by_name(const char *name, const fastd_method_t **method, fastd_method_context_t **method_ctx) {
+bool fastd_method_create_by_name(const char *name, const fastd_method_provider_t **provider, fastd_method_t **method) {
size_t i;
- for (i = 0; i < array_size(methods); i++) {
- if (methods[i]->create_by_name(name, method_ctx)) {
- *method = methods[i];
+ for (i = 0; i < array_size(providers); i++) {
+ if (providers[i]->create_by_name(name, method)) {
+ *provider = providers[i];
return true;
}
}