32 lines
757 B
C
32 lines
757 B
C
#ifndef CONTROLLER_HANDLERS_H
|
|
#define CONTROLLER_HANDLERS_H
|
|
|
|
#include <mongoose.h>
|
|
|
|
#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
|
|
handler_command(struct mg_connection *c, int ev, void *ev_data);
|
|
|
|
/**
|
|
* @brief Handle the discovery processing
|
|
*
|
|
* @param fd File descriptor to receive initial data from
|
|
* @param controller Controller to use for answering discovery
|
|
*/
|
|
void
|
|
handler_discovery(struct mg_connection *c, int ev, void *ev_data);
|
|
|
|
void
|
|
handler_mqtt(struct mg_connection *c, int ev, void *ev_data);
|
|
|
|
void
|
|
handler_loop(struct mg_connection *c_mqtt);
|
|
|
|
#endif /* CONTROLLER_HANDLERS_H */
|