controller-legacy/include/handlers.h

33 lines
742 B
C

#ifndef CONTROLLER_HANDLERS_H
#define CONTROLLER_HANDLERS_H
#include <poll.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(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);
void
handler_loop(controller_t *this_controller);
void
handler_poll(struct pollfd *fds, controller_t *controller, MDB_env *mdb_env);
#endif /* CONTROLLER_HANDLERS_H */