@ -17,6 +17,17 @@
/*! \file
*
* \ brief Generated file - Build validators for ARI model objects .
*
* In addition to the normal validation functions one would normally expect ,
* each validator has a ari_validate_ { id } _fn ( ) companion function that returns
* the validator ' s function pointer .
*
* The reason for this seamingly useless indirection is the way function
* pointers interfere with module loading . Asterisk attempts to dlopen ( ) each
* module using \ c RTLD_LAZY in order to read some metadata from the module .
* Unfortunately , if you take the address of a function , the function has to be
* resolvable at load time , even if \ c RTLD_LAZY is specified . By moving the
* function - address - taking into this module , we can once again be lazy .
*/
/*
@ -127,6 +138,11 @@ int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
/*! @} */
/*!
* \ brief Function type for validator functions . Allows for
*/
typedef int ( * ari_validator ) ( struct ast_json * json ) ;
/*!
* \ brief Validator for AsteriskInfo .
*
@ -138,6 +154,13 @@ int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
*/
int ari_validate_asterisk_info ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_asterisk_info ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_asterisk_info_fn ( void ) ;
/*!
* \ brief Validator for Endpoint .
*
@ -151,6 +174,13 @@ int ari_validate_asterisk_info(struct ast_json *json);
*/
int ari_validate_endpoint ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_endpoint ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_endpoint_fn ( void ) ;
/*!
* \ brief Validator for CallerID .
*
@ -162,6 +192,13 @@ int ari_validate_endpoint(struct ast_json *json);
*/
int ari_validate_caller_id ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_caller_id ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_caller_id_fn ( void ) ;
/*!
* \ brief Validator for Channel .
*
@ -173,6 +210,13 @@ int ari_validate_caller_id(struct ast_json *json);
*/
int ari_validate_channel ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_fn ( void ) ;
/*!
* \ brief Validator for Dialed .
*
@ -184,6 +228,13 @@ int ari_validate_channel(struct ast_json *json);
*/
int ari_validate_dialed ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_dialed ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_dialed_fn ( void ) ;
/*!
* \ brief Validator for DialplanCEP .
*
@ -195,6 +246,13 @@ int ari_validate_dialed(struct ast_json *json);
*/
int ari_validate_dialplan_cep ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_dialplan_cep ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_dialplan_cep_fn ( void ) ;
/*!
* \ brief Validator for Bridge .
*
@ -208,6 +266,13 @@ int ari_validate_dialplan_cep(struct ast_json *json);
*/
int ari_validate_bridge ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_bridge ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_bridge_fn ( void ) ;
/*!
* \ brief Validator for LiveRecording .
*
@ -219,6 +284,13 @@ int ari_validate_bridge(struct ast_json *json);
*/
int ari_validate_live_recording ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_live_recording ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_live_recording_fn ( void ) ;
/*!
* \ brief Validator for StoredRecording .
*
@ -230,6 +302,13 @@ int ari_validate_live_recording(struct ast_json *json);
*/
int ari_validate_stored_recording ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_stored_recording ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_stored_recording_fn ( void ) ;
/*!
* \ brief Validator for FormatLangPair .
*
@ -241,6 +320,13 @@ int ari_validate_stored_recording(struct ast_json *json);
*/
int ari_validate_format_lang_pair ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_format_lang_pair ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_format_lang_pair_fn ( void ) ;
/*!
* \ brief Validator for Sound .
*
@ -252,6 +338,13 @@ int ari_validate_format_lang_pair(struct ast_json *json);
*/
int ari_validate_sound ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_sound ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_sound_fn ( void ) ;
/*!
* \ brief Validator for Playback .
*
@ -263,6 +356,13 @@ int ari_validate_sound(struct ast_json *json);
*/
int ari_validate_playback ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_playback ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_playback_fn ( void ) ;
/*!
* \ brief Validator for ApplicationReplaced .
*
@ -276,6 +376,13 @@ int ari_validate_playback(struct ast_json *json);
*/
int ari_validate_application_replaced ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_application_replaced ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_application_replaced_fn ( void ) ;
/*!
* \ brief Validator for BridgeCreated .
*
@ -287,6 +394,13 @@ int ari_validate_application_replaced(struct ast_json *json);
*/
int ari_validate_bridge_created ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_bridge_created ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_bridge_created_fn ( void ) ;
/*!
* \ brief Validator for BridgeDestroyed .
*
@ -298,6 +412,13 @@ int ari_validate_bridge_created(struct ast_json *json);
*/
int ari_validate_bridge_destroyed ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_bridge_destroyed ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_bridge_destroyed_fn ( void ) ;
/*!
* \ brief Validator for BridgeMerged .
*
@ -309,6 +430,13 @@ int ari_validate_bridge_destroyed(struct ast_json *json);
*/
int ari_validate_bridge_merged ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_bridge_merged ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_bridge_merged_fn ( void ) ;
/*!
* \ brief Validator for ChannelCallerId .
*
@ -320,6 +448,13 @@ int ari_validate_bridge_merged(struct ast_json *json);
*/
int ari_validate_channel_caller_id ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel_caller_id ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_caller_id_fn ( void ) ;
/*!
* \ brief Validator for ChannelCreated .
*
@ -331,6 +466,13 @@ int ari_validate_channel_caller_id(struct ast_json *json);
*/
int ari_validate_channel_created ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel_created ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_created_fn ( void ) ;
/*!
* \ brief Validator for ChannelDestroyed .
*
@ -342,6 +484,13 @@ int ari_validate_channel_created(struct ast_json *json);
*/
int ari_validate_channel_destroyed ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel_destroyed ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_destroyed_fn ( void ) ;
/*!
* \ brief Validator for ChannelDialplan .
*
@ -353,6 +502,13 @@ int ari_validate_channel_destroyed(struct ast_json *json);
*/
int ari_validate_channel_dialplan ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel_dialplan ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_dialplan_fn ( void ) ;
/*!
* \ brief Validator for ChannelDtmfReceived .
*
@ -366,6 +522,13 @@ int ari_validate_channel_dialplan(struct ast_json *json);
*/
int ari_validate_channel_dtmf_received ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel_dtmf_received ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_dtmf_received_fn ( void ) ;
/*!
* \ brief Validator for ChannelEnteredBridge .
*
@ -377,6 +540,13 @@ int ari_validate_channel_dtmf_received(struct ast_json *json);
*/
int ari_validate_channel_entered_bridge ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel_entered_bridge ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_entered_bridge_fn ( void ) ;
/*!
* \ brief Validator for ChannelHangupRequest .
*
@ -388,6 +558,13 @@ int ari_validate_channel_entered_bridge(struct ast_json *json);
*/
int ari_validate_channel_hangup_request ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel_hangup_request ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_hangup_request_fn ( void ) ;
/*!
* \ brief Validator for ChannelLeftBridge .
*
@ -399,6 +576,13 @@ int ari_validate_channel_hangup_request(struct ast_json *json);
*/
int ari_validate_channel_left_bridge ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel_left_bridge ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_left_bridge_fn ( void ) ;
/*!
* \ brief Validator for ChannelStateChange .
*
@ -410,6 +594,13 @@ int ari_validate_channel_left_bridge(struct ast_json *json);
*/
int ari_validate_channel_state_change ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel_state_change ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_state_change_fn ( void ) ;
/*!
* \ brief Validator for ChannelUserevent .
*
@ -421,6 +612,13 @@ int ari_validate_channel_state_change(struct ast_json *json);
*/
int ari_validate_channel_userevent ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel_userevent ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_userevent_fn ( void ) ;
/*!
* \ brief Validator for ChannelVarset .
*
@ -432,6 +630,13 @@ int ari_validate_channel_userevent(struct ast_json *json);
*/
int ari_validate_channel_varset ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_channel_varset ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_channel_varset_fn ( void ) ;
/*!
* \ brief Validator for Event .
*
@ -443,6 +648,13 @@ int ari_validate_channel_varset(struct ast_json *json);
*/
int ari_validate_event ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_event ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_event_fn ( void ) ;
/*!
* \ brief Validator for PlaybackFinished .
*
@ -454,6 +666,13 @@ int ari_validate_event(struct ast_json *json);
*/
int ari_validate_playback_finished ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_playback_finished ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_playback_finished_fn ( void ) ;
/*!
* \ brief Validator for PlaybackStarted .
*
@ -465,6 +684,13 @@ int ari_validate_playback_finished(struct ast_json *json);
*/
int ari_validate_playback_started ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_playback_started ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_playback_started_fn ( void ) ;
/*!
* \ brief Validator for StasisEnd .
*
@ -476,6 +702,13 @@ int ari_validate_playback_started(struct ast_json *json);
*/
int ari_validate_stasis_end ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_stasis_end ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_stasis_end_fn ( void ) ;
/*!
* \ brief Validator for StasisStart .
*
@ -487,6 +720,13 @@ int ari_validate_stasis_end(struct ast_json *json);
*/
int ari_validate_stasis_start ( struct ast_json * json ) ;
/*!
* \ brief Function pointer to ari_validate_stasis_start ( ) .
*
* See \ ref ari_model_validators . h for more details .
*/
ari_validator ari_validate_stasis_start_fn ( void ) ;
/*
* JSON models
*