Added clicon_data_init API, and yang_mount_get API
Moved dynamic options from options to data API
This commit is contained in:
parent
5822c1a72a
commit
1e136bc9df
11 changed files with 174 additions and 43 deletions
|
|
@ -37,7 +37,7 @@
|
|||
* Access functions for clixon data.
|
||||
* Free-typed values for runtime getting and setting.
|
||||
* Accessed with clicon_data(h).
|
||||
* @see clixon_option.[ch] for clixon options
|
||||
* @see clixon_option.[ch] for clixon options from Clixon configuration file
|
||||
*/
|
||||
|
||||
#ifndef _CLIXON_DATA_H_
|
||||
|
|
@ -76,6 +76,11 @@ cvec *clicon_data_cvec_get(clicon_handle h, const char *name);
|
|||
int clicon_data_cvec_set(clicon_handle h, const char *name, cvec *cvv);
|
||||
int clicon_data_cvec_del(clicon_handle h, const char *name);
|
||||
|
||||
/* String options, default NULL */
|
||||
int clicon_data_int_get(clicon_handle h, const char *name);
|
||||
int clicon_data_int_set(clicon_handle h, const char *name, int val);
|
||||
int clicon_data_int_del(clicon_handle h, const char *name);
|
||||
|
||||
yang_stmt * clicon_dbspec_yang(clicon_handle h);
|
||||
int clicon_dbspec_yang_set(clicon_handle h, yang_stmt *ys);
|
||||
|
||||
|
|
|
|||
|
|
@ -54,6 +54,9 @@
|
|||
* Prototypes
|
||||
*/
|
||||
int yang_schema_mount_point(yang_stmt *y);
|
||||
|
||||
int yang_mount_get(yang_stmt *yu, char *xpath, yang_stmt **yspec);
|
||||
int yang_mount_set(yang_stmt *yu, char *xpath, yang_stmt *yspec);
|
||||
int xml_yang_mount_get(clicon_handle h, cxobj *x, validate_level *vl, yang_stmt **yspec);
|
||||
int xml_yang_mount_set(cxobj *x, yang_stmt *yspec);
|
||||
int xml_yang_mount_freeall(cvec *cvv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue