This file contains functions to support validation of callbacks and some supplemental functions.
More...
|
| boolean | agt_hook_type_valid (agt_hook_type_t type) |
| | Verify that the hook TYPE is valid. More...
|
| |
| boolean | agt_hook_fmt_valid (agt_hook_fmt_t format) |
| | Verify that the hook format is valid. More...
|
| |
| const xmlChar * | agt_hook_get_type_name (agt_hook_type_t type) |
| | Get the keyword for the specified agt_hook_type_t enumeration. More...
|
| |
| agt_hook_type_t | agt_hook_get_type_enum (const xmlChar *type) |
| | Get agt_hook_fmt_t enumeration structure from specified string. More...
|
| |
| const xmlChar * | agt_hook_get_format_name (agt_hook_fmt_t format) |
| | Get the keyword for the specified agt_hook_fmt_t enumeration. More...
|
| |
| agt_hook_fmt_t | agt_hook_get_format_enum (const xmlChar *format) |
| | Get agt_hook_fmt_t enumeration structure from specified string. More...
|
| |
| status_t | agt_hook_obj_ok (obj_template_t *obj, agt_hook_fmt_t format, agt_hook_type_t type, const xmlChar *defpath) |
| | Check if format of the callback is acceptable for the object. More...
|
| |
| status_t | agt_hook_order_obj_ok (obj_template_t *obj, const xmlChar *defpath) |
| | Check if format of the callback is acceptable for the object. More...
|
| |
| status_t | agt_hook_post_sethook_obj_ok (obj_template_t *obj, const xmlChar *defpath) |
| | Check if format of the callback is acceptable for the object. More...
|
| |
| boolean | agt_hooks_callback_set (obj_template_t *obj) |
| | Check if an any Hook callback is registered for this object for SIL-SA usage. More...
|
| |
| boolean | agt_post_sethook_callback_set (obj_template_t *obj) |
| | Check if an Post Set Hook callback is registered for this object for SIL-SA usage. More...
|
| |
| boolean | agt_sethook_callback_set (obj_template_t *obj) |
| | Check if an Set Hook callback is registered for this object for SIL-SA usage. More...
|
| |
| boolean | agt_txhook_callback_set (obj_template_t *obj) |
| | Check if an Transaction Hook callback is registered for this object for SIL-SA usage. More...
|
| |
| boolean | agt_hook_subtree_format (obj_template_t *obj) |
| | Check if an Transaction Hook callback is registered for this object for SIL-SA usage. More...
|
| |
| status_t | agt_hook_post_sethook_subsys_register (const xmlChar *subsys_id, const xmlChar *defpath) |
| | Register an object specific SIL-SA Post Set Hook callback function. More...
|
| |
| status_t | agt_hook_hooks_subsys_register (const xmlChar *subsys_id, const xmlChar *defpath, agt_hook_fmt_t format, agt_hook_type_t type) |
| | Register an object specific SIL-SA Post Set Hook callback function. More...
|
| |
| boolean | agt_hook_skip_sethook (struct agt_cfg_transaction_t_ *txcb, struct agt_cb_fnset_t_ *cbset) |
| | Check if a Set-Hook callback have to be skpped or not. More...
|
| |
This file contains functions to support validation of callbacks and some supplemental functions.
Used internally by the server.
Example with SIL priority
edit X : priority 10
edit Y : priority 20
candidate:
set-hook(X)
EDIT(validate, X)
set-hook(Y)
EDIT(validate, Y)
running:
EDIT(validate, X)
EDIT(validate, Y)
EDIT(apply, X)
EDIT(apply, Y)
EDIT(commit, X)
transaction-hook(X)
EDIT(commit, Y)
transaction-hook(Y)
◆ agt_hook_fmt_t
different hook formats dictates specific hook functionality
| Enumerator |
|---|
| AGT_HOOKFMT_NONE | not set
|
| AGT_HOOKFMT_SUBTREE | subtree mode
|
| AGT_HOOKFMT_NODE | node mode
|
◆ agt_hook_fmt_valid()
Verify that the hook format is valid.
- Parameters
-
| format | different hook formats dictates specific hook functionality |
- Returns
- TRUE if the hook format is valid type
◆ agt_hook_get_format_enum()
Get agt_hook_fmt_t enumeration structure from specified string.
- Parameters
-
| format | string for the hook format |
- Returns
- hook format to use
◆ agt_hook_get_format_name()
Get the keyword for the specified agt_hook_fmt_t enumeration.
- Parameters
-
| format | type hook format to use |
- Returns
- string for the hook format, or "none" or "illegal"
◆ agt_hook_get_type_enum()
Get agt_hook_fmt_t enumeration structure from specified string.
- Parameters
-
| type | format string for the hook format |
- Returns
- hook format to use
◆ agt_hook_get_type_name()
Get the keyword for the specified agt_hook_type_t enumeration.
- Parameters
-
- Returns
- string for the hook type, or "none" or "illegal"
◆ agt_hook_hooks_subsys_register()
Register an object specific SIL-SA Post Set Hook callback function.
- Parameters
-
| subsys_id | subsystem ID registering the remote callback fn |
| defpath | Xpath with default (or no) prefixes defining the object that will get the callback |
| format | different hook formats dictates specific hook functionality |
| type | different hook types dictates hook invocation point |
- Returns
- the status of the operation
◆ agt_hook_obj_ok()
Check if format of the callback is acceptable for the object.
- Parameters
-
| obj | obj_template to use |
| format | hook format to use |
| type | hook types to use |
| defpath | Xpath with default prefixes defining the object |
- Returns
- status
◆ agt_hook_order_obj_ok()
Check if format of the callback is acceptable for the object.
Called for Set-Order-Hook only
- Parameters
-
| obj | obj_template to use |
| defpath | Xpath with default prefixes defining the object |
- Returns
- status
◆ agt_hook_post_sethook_obj_ok()
Check if format of the callback is acceptable for the object.
- Parameters
-
| obj | obj_template to use |
| defpath | Xpath with default prefixes defining the object |
- Returns
- status
◆ agt_hook_post_sethook_subsys_register()
| status_t agt_hook_post_sethook_subsys_register |
( |
const xmlChar * |
subsys_id, |
|
|
const xmlChar * |
defpath |
|
) |
| |
Register an object specific SIL-SA Post Set Hook callback function.
- Parameters
-
| subsys_id | subsystem ID registering the remote callback fn |
| defpath | Xpath with default (or no) prefixes defining the object that will get the callback |
- Returns
- the status of the operation
◆ agt_hook_skip_sethook()
| boolean agt_hook_skip_sethook |
( |
struct agt_cfg_transaction_t_ * |
txcb, |
|
|
struct agt_cb_fnset_t_ * |
cbset |
|
) |
| |
Check if a Set-Hook callback have to be skpped or not.
- Parameters
-
| txcb | transaction in progress |
| cbset | callback control block |
- Returns
- TRUE is need to skip the current Hook invocation
◆ agt_hook_subtree_format()
Check if an Transaction Hook callback is registered for this object for SIL-SA usage.
- Parameters
-
- Returns
- TRUE if Hook callback registered; FALSE if not
◆ agt_hook_type_valid()
Verify that the hook TYPE is valid.
- Parameters
-
| type | different hook types dictates hook invocation point |
- Returns
- TRUE if the hook TYPE is valid type
◆ agt_hooks_callback_set()
Check if an any Hook callback is registered for this object for SIL-SA usage.
- Parameters
-
- Returns
- TRUE if Hook callback registered; FALSE if not
◆ agt_post_sethook_callback_set()
Check if an Post Set Hook callback is registered for this object for SIL-SA usage.
- Parameters
-
- Returns
- TRUE if Hook callback registered; FALSE if not
◆ agt_sethook_callback_set()
Check if an Set Hook callback is registered for this object for SIL-SA usage.
- Parameters
-
- Returns
- TRUE if Hook callback registered; FALSE if not
◆ agt_txhook_callback_set()
Check if an Transaction Hook callback is registered for this object for SIL-SA usage.
- Parameters
-
- Returns
- TRUE if Hook callback registered; FALSE if not