controller-legacy/include/handlers.h

33 lines
757 B
C
Raw Normal View History

2020-04-13 22:50:55 +00:00
#ifndef CONTROLLER_HANDLERS_H
#define CONTROLLER_HANDLERS_H
2020-06-24 09:41:12 +00:00
#include <mongoose.h>
2020-04-16 19:19:56 +00:00
2020-04-13 22:50:55 +00:00
#include <models/controller.h>
/**
* @brief Handle the command processing
*
* @param fd File descriptor to receive initial data from
* @param controller Controller to use for answering command
*/
void
2020-06-24 09:41:12 +00:00
handler_command(struct mg_connection *c, int ev, void *ev_data);
2020-04-13 22:50:55 +00:00
/**
* @brief Handle the discovery processing
*
* @param fd File descriptor to receive initial data from
* @param controller Controller to use for answering discovery
*/
void
2020-06-24 09:41:12 +00:00
handler_discovery(struct mg_connection *c, int ev, void *ev_data);
2020-04-13 22:50:55 +00:00
2020-04-16 19:19:56 +00:00
void
2020-06-24 09:41:12 +00:00
handler_mqtt(struct mg_connection *c, int ev, void *ev_data);
2020-04-16 19:19:56 +00:00
void
2020-06-24 09:41:12 +00:00
handler_loop(struct mg_connection *c_mqtt);
2020-04-16 19:19:56 +00:00
2020-04-13 22:50:55 +00:00
#endif /* CONTROLLER_HANDLERS_H */