This file contains functions to support validation of callbacks and some supplemental functions.
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_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