/** * @file * @section AUTHORS * * Authors: * Eamon Walsh * * @section LICENSE * * This file is in the public domain. */ #ifndef _LINPICKER_FD_H_ #define _LINPICKER_FD_H_ #include "config.h" typedef void (*fd_handler)(void *closure); #define FD_LOG(lvl, msg...) \ do { \ if (lvl <= LOGLEVEL) \ fd_log(msg); \ } while (0) void fd_vlog(const char *fmt, va_list args); void fd_log(const char *fmt, ...); int fd_open_logfile(const char *path); int fd_set_handler(int fd, fd_handler callback, void *closure); int fd_run_select(void); void fd_shutdown(void); #endif /* _LINPICKER_FD_H_ */