2020-04-13 22:50:55 +00:00
|
|
|
#ifndef CONTROLLER_HANDLERS_H
|
|
|
|
#define CONTROLLER_HANDLERS_H
|
|
|
|
|
2020-04-16 19:19:56 +00:00
|
|
|
#include <poll.h>
|
|
|
|
|
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
|
|
|
|
handler_command(int fd, controller_t *controller);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @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(int fd, controller_t *controller);
|
|
|
|
|
2020-04-16 19:19:56 +00:00
|
|
|
void
|
|
|
|
handler_loop(controller_t *this_controller);
|
|
|
|
|
|
|
|
void
|
|
|
|
handler_poll(struct pollfd *fds, controller_t *controller, MDB_env *mdb_env);
|
|
|
|
|
2020-04-13 22:50:55 +00:00
|
|
|
#endif /* CONTROLLER_HANDLERS_H */
|