ChannelHandlerWhat channel handlers do. Background More about channel handlers. Handler Activation Function
XCALL_( int ) MyChannel( long version, GlobalFunc *global,
LWChannelHandler *local, void *serverData );
The local argument to a channel handler's activation function is an LWChannelHandler.
typedef struct st_LWChannelHandler {
LWInstanceFuncs *inst;
void (*evaluate) (LWInstance, const LWChannelAccess *);
unsigned int (*flags) (LWInstance);
} LWChannelHandler;
The first member of this structure points to the standard instance handler functions. A channel handler also provides an evaluation function and a flags function. flags( instance ) Interface Activation Function XCALL_( int ) MyInterface( long version, GlobalFunc *global,
??? *???, void *serverData );
TBD. Channel Access This is the structure passed to the handler's evaluation function.
typedef struct st_LWChannelAccess {
LWChannelID chan;
LWFrame frame;
LWTime time;
double value;
void (*getChannel) (LWChannelID chan, LWTime t,
double *value);
void (*setChannel) (LWChannelID chan, const double value);
const char * (*channelName) (LWChannelID chan);
} LWChannelAccess;
|