New command-line option for dumping configuration options for all clixon applications after load

Removed -s dump
This commit is contained in:
Olof hagsand 2023-08-22 12:41:36 +02:00
parent 0e81e8137b
commit c101799e74
12 changed files with 267 additions and 32 deletions

View file

@ -68,7 +68,6 @@ enum startup_mode_t{
SM_RUNNING, /* Commit running db configuration into running state */
SM_STARTUP, /* Commit startup configuration into running state */
SM_RUNNING_STARTUP, /* First try running db, if it is empty try startup db */
SM_DUMP_XML /* Dump XML configuration to stdout and exit */
};
/*! See clixon-config.yang type priv_mode (privileges mode) */
@ -106,9 +105,12 @@ enum regexp_mode{
* Prototypes
*/
/* Print registry on file. For debugging. */
/* Debug dump config options */
int clicon_option_dump(clicon_handle h, int dblevel);
/*! Dump config options on stdio using output format */
int clicon_option_dump1(clicon_handle h, FILE *f, int format);
/* Add a clicon options overriding file setting */
int clicon_option_add(clicon_handle h, const char *name, char *value);