yumapro
24.10-3
YumaPro SDK
|
The optional yp-system library provides system-wide vendor hooks into the server. More...
Functions | |
void | agt_static_syslib_init_profile (void) |
Override the agt_profile default initialization. More... | |
status_t | agt_static_syslib_init1 (boolean pre_cli) |
Call the init1 function for the yp_system-static.a library. More... | |
status_t | agt_static_syslib_init2 (boolean pre_load) |
Call the init2 function for the yp_system-static.a library. More... | |
void | agt_static_syslib_cleanup (void) |
Call the cleanup function for the yp_system-static.a library. More... | |
The optional yp-system library provides system-wide vendor hooks into the server.
It is generally not used for YANG module specific callbacks.
The libyp-system.so file is usually used (dlopen) but if STATIC_SERVER=1 then it can be integrated with APIs in the server instead.
Note that STATIC_SERVER=1 is more static than STATIC_LINK=1. It means that the dynamic load library (dlopen) will not be used at all and not linked into the server image.
void agt_static_syslib_cleanup | ( | void | ) |
Call the cleanup function for the yp_system-static.a library.
Used only if STATIC_SERVER=1. Called by the server during shutdown.
status_t agt_static_syslib_init1 | ( | boolean | pre_cli | ) |
Call the init1 function for the yp_system-static.a library.
Used only if STATIC_SERVER=1. This function is called twice in the server boot INIT1 phase.
pre_cli | TRUE if before CLI load; FALSE if after CLI load |
status_t agt_static_syslib_init2 | ( | boolean | pre_load | ) |
Call the init2 function for the yp_system-static.a library.
Used only if STATIC_SERVER=1. This function is called twice in the server boot INIT2 phase
pre_load | TRUE if before config load; FALSE if after config load |
void agt_static_syslib_init_profile | ( | void | ) |
Override the agt_profile default initialization.
Used only if STATIC_SERVER=1. Allows vendor override of agt_profile fields. Use with extreme caution!
Called after the agt_profile_t is initialized with the server defaults. Then the server will adjust (hack) the YANG module default nodes to hold the vendor values.