Asterisk - The Open Source Telephony Project GIT-master-7e7a603
Data Fields
ast_aeap_params Struct Reference

Callbacks and other parameters used by an Asterisk external application object. More...

#include <res_aeap.h>

Collaboration diagram for ast_aeap_params:
Collaboration graph
[legend]

Data Fields

unsigned int emit_error
 
const struct ast_aeap_message_typemsg_type
 
void(* on_binary )(struct ast_aeap *aeap, const void *buf, intmax_t size)
 Raised when binary data is received. More...
 
void(* on_error )(struct ast_aeap *aeap)
 Raised when an error occurs during reading. More...
 
void(* on_string )(struct ast_aeap *aeap, const char *buf, intmax_t size)
 Raised when string data is received. More...
 
const struct ast_aeap_message_handlerrequest_handlers
 
uintmax_t request_handlers_size
 
const struct ast_aeap_message_handlerresponse_handlers
 
uintmax_t response_handlers_size
 

Detailed Description

Callbacks and other parameters used by an Asterisk external application object.

Definition at line 144 of file res_aeap.h.

Field Documentation

◆ emit_error

unsigned int emit_error

If true pass along error messages to the implementation. Otherwise log it only, and consider it handled.

Definition at line 149 of file res_aeap.h.

Referenced by raise_msg_handler().

◆ msg_type

const struct ast_aeap_message_type* msg_type

The message type used for communication

Definition at line 152 of file res_aeap.h.

Referenced by AST_TEST_DEFINE(), load_module(), raise_msg(), and raise_msg_handler().

◆ on_binary

void(* on_binary) (struct ast_aeap *aeap, const void *buf, intmax_t size)

Raised when binary data is received.

Parameters
aeapAn Asterisk external application object
bufThe buffer containing binary data
sizeThe size of the buffer

Definition at line 171 of file res_aeap.h.

Referenced by aeap_receive().

◆ on_error

void(* on_error) (struct ast_aeap *aeap)

Raised when an error occurs during reading.

Note
This is an AEAP transport level read error event
When this event is triggered the client has also been disconnected.
Parameters
aeapAn Asterisk external application object

Definition at line 192 of file res_aeap.h.

Referenced by aeap_receive().

◆ on_string

void(* on_string) (struct ast_aeap *aeap, const char *buf, intmax_t size)

Raised when string data is received.

Parameters
aeapAn Asterisk external application object
bufThe buffer containing string data
sizeThe size/length of the string

Definition at line 180 of file res_aeap.h.

Referenced by aeap_receive(), and AST_TEST_DEFINE().

◆ request_handlers

const struct ast_aeap_message_handler* request_handlers

Request handlers array

Definition at line 160 of file res_aeap.h.

Referenced by AST_TEST_DEFINE(), and raise_msg().

◆ request_handlers_size

uintmax_t request_handlers_size

The number of request handlers

Definition at line 162 of file res_aeap.h.

Referenced by raise_msg().

◆ response_handlers

const struct ast_aeap_message_handler* response_handlers

Response handlers array

Definition at line 155 of file res_aeap.h.

Referenced by AST_TEST_DEFINE(), and raise_msg().

◆ response_handlers_size

uintmax_t response_handlers_size

The number of response handlers

Definition at line 157 of file res_aeap.h.

Referenced by raise_msg().


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