|
libamxs
0.6.0
Data Model Synchronization C API
|

Functions | |
| amxs_status_t | amxs_sync_param_copy_trans_cb (const amxs_sync_entry_t *entry, amxs_sync_direction_t direction, const amxc_var_t *input, amxc_var_t *output, void *priv) |
| Translates data from a dm:object-changed event to data suited for an amxb_set call for a single parameter. More... | |
| amxs_status_t | amxs_sync_batch_param_copy_trans_cb (const amxs_sync_entry_t *entry, amxs_sync_direction_t direction, const amxc_var_t *input, amxc_var_t *output, void *priv) |
| Translates data from a dm:object-changed event to data suited for an amxb_set call for all parameters in the event that are marked as batch copy parameters. More... | |
| amxs_status_t | amxs_sync_param_copy_action_cb (const amxs_sync_entry_t *entry, amxs_sync_direction_t direction, amxc_var_t *data, void *priv) |
| Sets the new parameter value. More... | |
| amxs_status_t | amxs_sync_object_copy_trans_cb (const amxs_sync_entry_t *entry, amxs_sync_direction_t direction, const amxc_var_t *input, amxc_var_t *output, void *priv) |
| Translates data from a dm:instance-added or dm:instance-removed event to data suited for an amxb call for this instance and all it's parameters. More... | |
| amxs_status_t | amxs_sync_object_copy_action_cb (const amxs_sync_entry_t *entry, amxs_sync_direction_t direction, amxc_var_t *data, void *priv) |
| Adds, removes or updates an object with the given data using an amxb call. More... | |
| amxs_status_t amxs_sync_batch_param_copy_trans_cb | ( | const amxs_sync_entry_t * | entry, |
| amxs_sync_direction_t | direction, | ||
| const amxc_var_t * | input, | ||
| amxc_var_t * | output, | ||
| void * | priv | ||
| ) |
Translates data from a dm:object-changed event to data suited for an amxb_set call for all parameters in the event that are marked as batch copy parameters.
| entry | Pointer to the synchronization entry for which the callback is triggered. |
| direction | Direction in which the synchronization is triggered. |
| input | Variant containing the incoming event data. |
| output | Variant to store the converted data, this data will be passed to the action callback. |
| priv | Pointer to user data which was given when the entry was created. |
| amxs_status_t amxs_sync_object_copy_action_cb | ( | const amxs_sync_entry_t * | entry, |
| amxs_sync_direction_t | direction, | ||
| amxc_var_t * | data, | ||
| void * | priv | ||
| ) |
Adds, removes or updates an object with the given data using an amxb call.
| entry | Pointer to the synchronization entry for which the callback is triggered. |
| direction | Direction in which the synchronization is triggered. |
| data | Variant containing the object data to be updated. |
| priv | Pointer to user data which was given when the entry was created. |
| amxs_status_t amxs_sync_object_copy_trans_cb | ( | const amxs_sync_entry_t * | entry, |
| amxs_sync_direction_t | direction, | ||
| const amxc_var_t * | input, | ||
| amxc_var_t * | output, | ||
| void * | priv | ||
| ) |
Translates data from a dm:instance-added or dm:instance-removed event to data suited for an amxb call for this instance and all it's parameters.
| entry | Pointer to the synchronization entry for which the callback is triggered. |
| direction | Direction in which the synchronization is triggered. |
| input | Variant containing the incoming event data. |
| output | Variant to store the converted data, this data will be passed to the action callback. |
| priv | Pointer to user data which was given when the entry was created. |
| amxs_status_t amxs_sync_param_copy_action_cb | ( | const amxs_sync_entry_t * | entry, |
| amxs_sync_direction_t | direction, | ||
| amxc_var_t * | data, | ||
| void * | priv | ||
| ) |
Sets the new parameter value.
If a local dm is specified, an amxd transaction will be used to set the value. This allows writing read-only parameters.
If no local dm is specified, amxb_set will be used.
| entry | Pointer to the synchronization entry for which the callback is triggered. |
| direction | Direction in which the synchronization is triggered. |
| data | Variant containing the parameter data to be set. |
| priv | Pointer to user data which was given when the entry was created. |
| amxs_status_t amxs_sync_param_copy_trans_cb | ( | const amxs_sync_entry_t * | entry, |
| amxs_sync_direction_t | direction, | ||
| const amxc_var_t * | input, | ||
| amxc_var_t * | output, | ||
| void * | priv | ||
| ) |
Translates data from a dm:object-changed event to data suited for an amxb_set call for a single parameter.
| entry | Pointer to the synchronization entry for which the callback is triggered. |
| direction | Direction in which the synchronization is triggered. |
| input | Variant containing the incoming event data. |
| output | Variant to store the converted data, this data will be passed to the action callback. |
| priv | Pointer to user data which was given when the entry was created. |