57 #ifndef ACH_EXPERIMENTAL_H
58 #define ACH_EXPERIMENTAL_H
93 #define ACH_EV_O_PERIODIC_TIMEOUT 0x01
97 #define ACH_EV_O_PERIODIC_INPUT 0x02
122 const struct timespec *period,
123 enum ach_status (*periodic_handler)(
void *context),
124 void *periodic_context,
enum ach_status ACH_WARN_UNUSED ach_evhandle(struct ach_evhandler *handlers, size_t n, const struct timespec *period, enum ach_status(*periodic_handler)(void *context), void *periodic_context, int options)
Event loop for handling multiple channels.
Control structure for event handling loop.
Definition: experimental.h:68
void * context
Context argument for handler.
Definition: experimental.h:75
enum ach_status(* handler)(void *context, struct ach_channel *channel)
Handler function.
Definition: experimental.h:86
#define ACH_WARN_UNUSED
Warn if result is unused.
Definition: generic.h:71
Descriptor for an Ach channel.
Definition: ach.h:320
struct ach_channel * channel
Channel to get messages from.
Definition: experimental.h:71
ach_status
return status codes for ach functions.
Definition: generic.h:78