ach
Real-Time IPC Library
ach_evhandler Struct Reference

Control structure for event handling loop. More...

#include <experimental.h>

Data Fields

struct ach_channelchannel
 Channel to get messages from.
 
void * context
 Context argument for handler.
 
enum ach_status(* handler )(void *context, struct ach_channel *channel)
 Handler function. More...
 

Detailed Description

Control structure for event handling loop.

Field Documentation

enum ach_status(* ach_evhandler::handler)(void *context, struct ach_channel *channel)

Handler function.

Called whenever there is new data in the channel.

Handler should return ACH_OK when new frames are read, or ACH_STALE_FRAMES if no new frames are read. Any other return value will terminate the event loop.


The documentation for this struct was generated from the following file: