ED247 Library  VA2.3.0
Implementation of ED247-A standard
Receive and send callbacks

Detailed Description

Typedefs

typedef ed247_status_t(* ed247_stream_recv_callback_t) (ed247_context_t context, ed247_stream_t stream)
 Stream receive callback function pointer. More...
 

Functions

LIBED247_EXPORT ed247_status_t ed247_stream_register_recv_callback (ed247_context_t context, ed247_stream_t stream, ed247_stream_recv_callback_t callback)
 Register a callback (in a stream) which is called once a frame is received and decoded. More...
 
LIBED247_EXPORT ed247_status_t ed247_stream_unregister_recv_callback (ed247_context_t context, ed247_stream_t stream, ed247_stream_recv_callback_t callback)
 Unregister a callback (from a stream) which is called once a frame is received and decoded. More...
 
LIBED247_EXPORT ed247_status_t ed247_streams_register_recv_callback (ed247_context_t context, ed247_stream_list_t streams, ed247_stream_recv_callback_t callback)
 Register a callback (in several streams as once) which is called once a frame is received and decoded. More...
 
LIBED247_EXPORT ed247_status_t ed247_streams_unregister_recv_callback (ed247_context_t context, ed247_stream_list_t streams, ed247_stream_recv_callback_t callback)
 Unregister a callback (from several streams as once) which is called once a frame is received and decoded. More...
 
LIBED247_EXPORT ed247_status_t ed247_register_recv_callback (ed247_context_t context, ed247_stream_recv_callback_t callback)
 Register a callback (in all streams) which is called once a frame is received and decoded. More...
 
LIBED247_EXPORT ed247_status_t ed247_unregister_recv_callback (ed247_context_t context, ed247_stream_recv_callback_t callback)
 Unegister a callback (in all streams) which is called once a frame is received and decoded. More...
 

Typedef Documentation

typedef ed247_status_t(* ed247_stream_recv_callback_t) (ed247_context_t context, ed247_stream_t stream)

Stream receive callback function pointer.

The decoding of the current frame will be aborted if the callback do not return ED247_STATUS_SUCCESS.

Function Documentation

LIBED247_EXPORT ed247_status_t ed247_stream_register_recv_callback ( ed247_context_t  context,
ed247_stream_t  stream,
ed247_stream_recv_callback_t  callback 
)

Register a callback (in a stream) which is called once a frame is received and decoded.

Parameters
[in]context
[in]streamStream identifier
[in]callbackThe callback function
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE
LIBED247_EXPORT ed247_status_t ed247_stream_unregister_recv_callback ( ed247_context_t  context,
ed247_stream_t  stream,
ed247_stream_recv_callback_t  callback 
)

Unregister a callback (from a stream) which is called once a frame is received and decoded.

Parameters
[in]context
[in]streamStream identifier
[in]callbackThe callback function
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE
LIBED247_EXPORT ed247_status_t ed247_streams_register_recv_callback ( ed247_context_t  context,
ed247_stream_list_t  streams,
ed247_stream_recv_callback_t  callback 
)

Register a callback (in several streams as once) which is called once a frame is received and decoded.

Parameters
[in]context
[in]streamsStream identifiers
[in]callbackThe callback function
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE
LIBED247_EXPORT ed247_status_t ed247_streams_unregister_recv_callback ( ed247_context_t  context,
ed247_stream_list_t  streams,
ed247_stream_recv_callback_t  callback 
)

Unregister a callback (from several streams as once) which is called once a frame is received and decoded.

Parameters
[in]context
[in]streamsStream identifiers
[in]callbackThe callback function
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE
LIBED247_EXPORT ed247_status_t ed247_register_recv_callback ( ed247_context_t  context,
ed247_stream_recv_callback_t  callback 
)

Register a callback (in all streams) which is called once a frame is received and decoded.

Parameters
[in]context
[in]callbackThe callback function
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE
LIBED247_EXPORT ed247_status_t ed247_unregister_recv_callback ( ed247_context_t  context,
ed247_stream_recv_callback_t  callback 
)

Unegister a callback (in all streams) which is called once a frame is received and decoded.

Parameters
[in]context
[in]callbackThe callback function
Return values
ED247_STATUS_SUCCESS
ED247_STATUS_FAILURE