* Documentation: plugin start function doc
This commit is contained in:
parent
9a88cb5f0d
commit
927d6f2d9c
3 changed files with 16 additions and 10 deletions
|
|
@ -449,8 +449,11 @@ candidate +---------------------> CANDIDATE
|
||||||
```
|
```
|
||||||
|
|
||||||
### Invalid XML
|
### Invalid XML
|
||||||
|
|
||||||
|
```
|
||||||
repair restart
|
repair restart
|
||||||
tmp/startup --------+---------+----------------------->
|
tmp/startup --------+---------+----------------------->
|
||||||
|
```
|
||||||
|
|
||||||
## Thanks
|
## Thanks
|
||||||
Thanks matt smith and dave cornejo for input
|
Thanks matt smith and dave cornejo for input
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ module clixon-example {
|
||||||
Note, may change without updating revision, just for testing current master.
|
Note, may change without updating revision, just for testing current master.
|
||||||
";
|
";
|
||||||
revision 2020-12-01 {
|
revision 2020-12-01 {
|
||||||
description "Added table/paramater/value as the primary data example";
|
description "Added table/parameter/value as the primary data example";
|
||||||
}
|
}
|
||||||
revision 2020-03-11 {
|
revision 2020-03-11 {
|
||||||
description "Added container around translation list. Released in Clixon 4.4.0";
|
description "Added container around translation list. Released in Clixon 4.4.0";
|
||||||
|
|
|
||||||
|
|
@ -1087,12 +1087,14 @@ upgrade_interfaces(clicon_handle h,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! Plugin state reset. Add xml or set state in backend machine.
|
/*! Plugin state reset. Add xml or set state in backend machine.
|
||||||
* Called in each backend plugin. plugin_reset is called after all plugins
|
*
|
||||||
* have been initialized. This give the application a chance to reset
|
* Add xml or set state in backend system.
|
||||||
* system state back to a base state.
|
* plugin_reset in each backend plugin after all plugins have been initialized.
|
||||||
* This is generally done when a system boots up to
|
* This gives the application a chance to reset system state back to a base state.
|
||||||
* make sure the initial system state is well defined. This can be creating
|
* This is generally done when a system boots up to make sure the initial system state
|
||||||
* default configuration files for various daemons, set interface flags etc.
|
* is well defined.
|
||||||
|
* This involves creating default configuration files for various daemons, set interface
|
||||||
|
* flags etc.
|
||||||
* @param[in] h Clicon handle
|
* @param[in] h Clicon handle
|
||||||
* @param[in] db Name of database. Not may be other than "running"
|
* @param[in] db Name of database. Not may be other than "running"
|
||||||
* In this example, a loopback interface is added
|
* In this example, a loopback interface is added
|
||||||
|
|
@ -1142,10 +1144,11 @@ example_reset(clicon_handle h,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! Plugin start.
|
/*! Plugin start.
|
||||||
* @param[in] h Clicon handle
|
|
||||||
*
|
*
|
||||||
* plugin_start is called once everything has been initialized, right before
|
* Called when application is "started", (almost) all initialization is complete
|
||||||
* the main event loop is entered.
|
* Backend: daemon is in the background. If daemon privileges are dropped
|
||||||
|
* this callback is called *before* privileges are dropped.
|
||||||
|
* @param[in] h Clicon handle
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
example_start(clicon_handle h)
|
example_start(clicon_handle h)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue