yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
agt_templates.h
Go to the documentation of this file.
1#ifdef WITH_TEMPLATES
2#ifndef _H_agt_templates
3#define _H_agt_templates
4/*
5 * Copyright (c) 2017 - 2021, YumaWorks, Inc., All Rights Reserved.
6 *
7 * Unless required by applicable law or agreed to in writing,
8 * software distributed under the License is distributed on an
9 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
10 * KIND, either express or implied. See the License for the
11 * specific language governing permissions and limitations
12 * under the License.
13 */
14
15#include <xmlstring.h>
16
17#include "obj.h"
18#include "val.h"
19#include "ses.h"
20#include "status_enum.h"
21#include "rpc.h"
22#include "xml_util.h"
23
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34
52extern status_t
53 agt_templates_init (void);
54
55
61extern void agt_templates_cleanup (void);
62
63
73extern status_t
74 agt_templates_set (const xmlChar *name,
75 const xmlChar *targstr,
76 obj_template_t *targobj,
77 val_value_t *targval);
78
79
85extern void
86 agt_templates_clear (const xmlChar *name);
87
88
103extern status_t
105 rpc_msg_t *msg,
106 xml_node_t *methnode);
107
108
120extern status_t
122 val_value_t *newval);
123
124
128#ifdef __cplusplus
129} /* end extern 'C' */
130#endif
131
132#endif // _H_agt_templates
133#endif // WITH_TEMPLATES
status_t agt_templates_validate_parm(ses_cb_t *scb, rpc_msg_t *msg, xml_node_t *methnode)
Check for with-template parameter.
Definition: agt_templates.c:392
void agt_templates_clear(const xmlChar *name)
Clear a config template if found.
Definition: agt_templates.c:366
status_t agt_templates_apply_parm(rpc_msg_t *msg, val_value_t *newval)
Apply a template to a subtree.
Definition: agt_templates.c:459
void agt_templates_cleanup(void)
Cleanup the yumaworks-templates.
Definition: agt_templates.c:311
status_t agt_templates_init(void)
initialize the yumaworks-templates
Definition: agt_templates.c:292
status_t agt_templates_set(const xmlChar *name, const xmlChar *targstr, obj_template_t *targobj, val_value_t *targval)
Set a config template (new or replace)
Definition: agt_templates.c:329
status_t
global error return code
Definition: status_enum.h:210
Data Object Support.
NETCONF protocol remote procedure call common definitions.
NETCONF Session Common definitions module.
global error status code enumerations
One YANG data-def-stmt.
Definition: obj.h:1229
NETCONF Server and Client RPC Request/Reply Message Header.
Definition: rpc.h:185
Session Control Block.
Definition: ses.h:573
one value to match one type
Definition: val.h:912
gather node data into a simple struct.
Definition: xml_util.h:207
Value Node Basic Support.
XML Utilities.