diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-18 19:24:40 +0200 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-04-22 16:36:22 +0300 | 
| commit | 03883ee431565b4a1f4857f6655ed8c97313b204 (patch) | |
| tree | d5f73327c8172b13b7c59c23f704b5fe9377ca2e /lib/yang.h | |
| parent | 58a8ebc1fca07ba963faf60d54d77336f36e5ded (diff) | |
tests: add test for NB RPC callback
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/yang.h')
| -rw-r--r-- | lib/yang.h | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/yang.h b/lib/yang.h index 25703b1879..1903079d1c 100644 --- a/lib/yang.h +++ b/lib/yang.h @@ -536,6 +536,21 @@ extern struct lyd_node *yang_dnode_dup(const struct lyd_node *dnode);  extern void yang_dnode_free(struct lyd_node *dnode);  /* + * Add a libyang data node to an RPC/action output container. + * + * output + *    RPC/action output container. + * + * xpath + *    XPath of the data node to add, relative to the output container. + * + * value + *    String representing the value of the data node. + */ +extern void yang_dnode_rpc_output_add(struct lyd_node *output, +				      const char *xpath, const char *value); + +/*   * Create a new yang_data structure.   *   * xpath  | 
