From 0b5d524723ecc400a31912d099ad05eaf1197e34 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Mon, 11 Jul 2016 14:29:41 +0100 Subject: [PATCH] Update defer plugin function signatures. --- src/mosquitto_broker.h | 2 ++ src/plugin_defer.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mosquitto_broker.h b/src/mosquitto_broker.h index 1d0fbe07..6fb5afcc 100644 --- a/src/mosquitto_broker.h +++ b/src/mosquitto_broker.h @@ -17,6 +17,8 @@ Contributors: #ifndef MOSQUITTO_BROKER_H #define MOSQUITTO_BROKER_H +#include + struct mosquitto; enum mosquitto_protocol { diff --git a/src/plugin_defer.c b/src/plugin_defer.c index 5bdf755e..8d90f3f0 100644 --- a/src/plugin_defer.c +++ b/src/plugin_defer.c @@ -27,22 +27,22 @@ int mosquitto_auth_plugin_version(void) return MOSQ_AUTH_PLUGIN_VERSION; } -int mosquitto_auth_plugin_init(void **user_data, struct mosquitto_auth_opt *auth_opts, int auth_opt_count) +int mosquitto_auth_plugin_init(void **user_data, struct mosquitto_opt *auth_opts, int auth_opt_count) { return MOSQ_ERR_SUCCESS; } -int mosquitto_auth_plugin_cleanup(void *user_data, struct mosquitto_auth_opt *auth_opts, int auth_opt_count) +int mosquitto_auth_plugin_cleanup(void *user_data, struct mosquitto_opt *auth_opts, int auth_opt_count) { return MOSQ_ERR_SUCCESS; } -int mosquitto_auth_security_init(void *user_data, struct mosquitto_auth_opt *auth_opts, int auth_opt_count, bool reload) +int mosquitto_auth_security_init(void *user_data, struct mosquitto_opt *auth_opts, int auth_opt_count, bool reload) { return MOSQ_ERR_SUCCESS; } -int mosquitto_auth_security_cleanup(void *user_data, struct mosquitto_auth_opt *auth_opts, int auth_opt_count, bool reload) +int mosquitto_auth_security_cleanup(void *user_data, struct mosquitto_opt *auth_opts, int auth_opt_count, bool reload) { return MOSQ_ERR_SUCCESS; }