project/lightd/config.h
@@ -13,6 +13,8 @@ #ifndef __CONF_H_ #define __CONF_H_ #include <stddef.h> #include "utils.h" #include "gpio.h" enum @@ -73,6 +75,9 @@ mqtt_ctx_t mqtt; } iotd_ctx_t; /* get iotd_ctx address by mqtt_ctx address */ #define to_iotd(ctx) container_of(ctx, iotd_ctx_t, mqtt); extern int parser_conf(const char *conf_file, iotd_ctx_t *ctx, int debug); #endif /* ----- #ifndef _CONF_H_ ----- */