- register a callback function to receive annotate requests
#include <$OV_HEADER/ecs/ANNO/ANNO.h> int32 ANNO_registerReceiveFn ( const ANNO_ConnectionId annoId, ANNO_ReceiveFn *receiveFn );
This function is used to register a callback function for a specified annotation connection. The registered function is called for each annotation request received from the specified connection. Only one receive function can be registered for each annotation connection. If a call is made to register a function where one is already registered the existing registration is replaced.
The receive function to be registered has the following prototype:
int32 (ANNO_ReceiveFn) ( ANNO_ConnectionId conId, /* ConnectionId the request came from */ ANNO_RequestId requestId, /* uniquely identifies the request */ EV_AttrValue *annoRequest /* the annotate request */ );
const ANNO_ConnectionId annoId
receiveFn will be registered for (as set by ANNO_open). If ANNO_ALLCON is specified then the receiveFn is called for each annotation request received on annotation connections that do not have a registered receive function.
ANNO_ReceiveFn *receiveFn
ECS_SUCCESS
ECS_BAD_PARAMETER
ANNO_NOT_INITIALISED
ANNO_stackInit has not been called.
ANNO_BAD_CONNECTION