yumapro  20.10-12
YumaPro SDK
y_yumaworks_templates.h
Go to the documentation of this file.
1 #ifdef WITH_TEMPLATES
2 #ifndef _H_y_yumaworks_templates
3 #define _H_y_yumaworks_templates
4 /*
5  * Copyright (c) 2008-2012, Andy Bierman, All Rights Reserved.
6  * Copyright (c) 2012 - 2017, YumaWorks, Inc., All Rights Reserved.
7  *
8  * Unless required by applicable law or agreed to in writing,
9  * software distributed under the License is distributed on an
10  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
11  * KIND, either express or implied. See the License for the
12  * specific language governing permissions and limitations
13  * under the License.
14  *
15 
16 *** Generated by yangdump-sdk puma-integ-2017-02-20.15.24
17 
18  YumaPro SIL header
19  module yumaworks-templates
20  revision 2017-02-20
21  namespace http://yumaworks.com/ns/yumaworks-templates
22  organization YumaWorks, Inc.
23  Created: 2017-02-20T23:28:50Z
24  CLI parameters:
25  format yh
26  indent 4
27  module yumaworks-templates
28  output y_yumaworks-templates.h
29  sil-edit2
30  unified true
31 
32  */
33 
34 
35 
42 #include <xmlstring.h>
43 
44 #include "dlq.h"
45 #include "ncxtypes.h"
46 #include "op.h"
47 #include "status.h"
48 #include "val.h"
49 
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 
54 #define y_yumaworks_templates_M_yumaworks_templates (const xmlChar *)"yumaworks-templates"
55 
56 #define y_yumaworks_templates_R_yumaworks_templates (const xmlChar *)"2017-02-20"
57 
58 #define y_yumaworks_templates_N_data (const xmlChar *)"data"
59 #define y_yumaworks_templates_N_data_target (const xmlChar *)"data-target"
60 #define y_yumaworks_templates_N_name (const xmlChar *)"name"
61 #define y_yumaworks_templates_N_template (const xmlChar *)"template"
62 #define y_yumaworks_templates_N_templates (const xmlChar *)"templates"
63 
77 extern status_t y_yumaworks_templates_init (
78  const xmlChar *modname,
79  const xmlChar *revision);
80 
81 
89 extern status_t y_yumaworks_templates_init2 (void);
90 
91 
92 
98 extern void y_yumaworks_templates_cleanup (void);
99 
100 
104 #ifdef __cplusplus
105 } /* end extern 'C' */
106 #endif
107 
108 #endif // _H_y_yumaworks_templates
109 #endif // WITH_TEMPLATES
ses.h
NETCONF Session Common definitions module.
ncx_feature.h
NCX Module Library YANG Feature Utility Functions.
u_yumaworks_templates_init2
status_t u_yumaworks_templates_init2(void)
SIL init phase 2: non-config data structures.
Definition: u_yumaworks_templates.c:564
agt_util.h
Utility Functions for NCX Server method routines.
VAL_STRING
#define VAL_STRING(V)
Access the value as a string ONLY if typ_is_string(typdef) is true.
Definition: val.h:414
ERR_NCX_DEF_NOT_FOUND
@ ERR_NCX_DEF_NOT_FOUND
250
Definition: status_enum.h:289
val.h
Value Node Basic Support.
xml_util.h
XML Utilities.
agt_rpc.h
NETCONF protocol remote procedure call server-side definitions.
agt_action.h
NETCONF Server YANG action handler.
agt_cb_unregister_callbacks
void agt_cb_unregister_callbacks(const xmlChar *modname, const xmlChar *defpath)
Unregister all EDIT callback functions for a specific object.
Definition: agt_cb.c:1965
ERR_NCX_WRONG_VERSION
@ ERR_NCX_WRONG_VERSION
314
Definition: status_enum.h:357
u_yumaworks_templates_templates_edit
status_t u_yumaworks_templates_templates_edit(ses_cb_t *scb, rpc_msg_t *msg, agt_cbtyp_t cbtyp, op_editop_t editop, val_value_t *newval, val_value_t *curval)
Edit database object callback.
Definition: u_yumaworks_templates.c:434
op.h
NETCONF protocol operations.
ncxmod.h
NCX Module Load Manager.
agt_cb.h
NETCONF Server Data Model callback handler.
agt_record_error
void agt_record_error(ses_cb_t *scb, xml_msg_hdr_t *msghdr, ncx_layer_t layer, status_t res, const xml_node_t *xmlnode, ncx_node_t parmtyp, const void *error_info, ncx_node_t nodetyp, void *error_path)
Generate an rpc_err_rec_t and save it in the msg.
Definition: agt_util.c:1942
agt_cbtype_name
const xmlChar * agt_cbtype_name(agt_cbtyp_t cbtyp)
Get the string for the server callback phase.
Definition: agt.c:4247
u_yumaworks_templates_templates_template_edit
status_t u_yumaworks_templates_templates_template_edit(ses_cb_t *scb, rpc_msg_t *msg, agt_cbtyp_t cbtyp, op_editop_t editop, val_value_t *newval, val_value_t *curval, val_value_t **child_errorval, const xmlChar *k_templates_template_name)
Edit database object callback.
Definition: u_yumaworks_templates.c:286
y_yumaworks_templates_cleanup
void y_yumaworks_templates_cleanup(void)
cleanup the server instrumentation library
Definition: y_yumaworks_templates.c:307
u_yumaworks_templates.h
User SIL callbacks for yumaworks-templates module.
NO_ERR
@ NO_ERR
000
Definition: status_enum.h:188
agt_init_cache
val_value_t * agt_init_cache(const xmlChar *modname, const xmlChar *objname, status_t *res)
init a cache pointer during the init2 callback
Definition: agt_util.c:4060
agt_get_key_value
val_value_t * agt_get_key_value(val_value_t *startval, val_value_t **lastkey)
Get the next expected key value in the ancestor chain.
Definition: agt_util.c:4762
ncx_find_object
obj_template_t * ncx_find_object(ncx_module_t *mod, const xmlChar *objname)
Find a top level module object.
Definition: ncx.c:4345
ERR_INTERNAL_VAL
@ ERR_INTERNAL_VAL
004
Definition: status_enum.h:194
y_yumaworks_templates_init2
status_t y_yumaworks_templates_init2(void)
SIL init phase 2: non-config data structures.
Definition: y_yumaworks_templates.c:262
val_util.h
Value Node Utilities.
agt_get_savedevQ
dlq_hdr_t * agt_get_savedevQ(void)
Get the agt_savedevQ pointer.
Definition: agt.c:4747
agt_sil_lib.h
Server Instrumentation Library Support.
rpc.h
NETCONF protocol remote procedure call common definitions.
u_yumaworks_templates_init
status_t u_yumaworks_templates_init(const xmlChar *modname, const xmlChar *revision)
initialize the yumaworks-templates server instrumentation library
Definition: u_yumaworks_templates.c:533
ERR_INTERNAL_INIT_SEQ
@ ERR_INTERNAL_INIT_SEQ
007
Definition: status_enum.h:197
log_debug
void void void void void void void log_debug(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG log entry.
y_yumaworks_templates.h
System SIL callbacks for yumaworks-templates module.
agt.h
Multi-Protocol Network Management Server.
u_yumaworks_templates_cleanup
void u_yumaworks_templates_cleanup(void)
cleanup the server instrumentation library
Definition: u_yumaworks_templates.c:579
xml_strcmp
int xml_strcmp(const xmlChar *s1, const xmlChar *s2)
String compare for xmlChar.
Definition: xml_util.c:1746
ncxmod_load_module
status_t ncxmod_load_module(const xmlChar *modname, const xmlChar *revision, dlq_hdr_t *savedevQ, ncx_module_t **retmod)
Determine the location of the specified module and then load it into the system, if not already loade...
Definition: ncxmod.c:4342
ncxtypes.h
YANG module data structures Many internal representations of YANG module constructs.
ERR_NCX_UNKNOWN_MODULE
@ ERR_NCX_UNKNOWN_MODULE
356
Definition: status_enum.h:399
LOGDEBUG
#define LOGDEBUG
Check if at least log-level=debug.
Definition: log.h:287
NCX_NT_VAL
@ NCX_NT_VAL
val_value_t
Definition: ncxtypes.h:276
agt_cb_register_edit2_callback
status_t agt_cb_register_edit2_callback(const xmlChar *modname, const xmlChar *defpath, const xmlChar *version, agt_cb_fn_t cbfn)
Register an object specific edit2 callback function.
Definition: agt_cb.c:1224
agt_cfg.h
Manage Server configuration edit transactions.
NCX_NT_NONE
@ NCX_NT_NONE
not set
Definition: ncxtypes.h:273
NCX_LAYER_CONTENT
@ NCX_LAYER_CONTENT
application layer
Definition: ncxtypes.h:347
ncx.h
YANG module utility functions.
AGT_CB_COMMIT
@ AGT_CB_COMMIT
P3-pos: write operation commit.
Definition: agt.h:622
obj.h
Data Object Support.
y_yumaworks_templates_init
status_t y_yumaworks_templates_init(const xmlChar *modname, const xmlChar *revision)
initialize the yumaworks-templates server instrumentation library
Definition: y_yumaworks_templates.c:207
agt_timer.h
Handle timer services for the server.
agt_check_cache
status_t agt_check_cache(val_value_t **cacheptr, val_value_t *newval, val_value_t *curval, op_editop_t editop)
check if a cache pointer needs to be changed or NULLed out
Definition: agt_util.c:4108
status.h
Global error messages for status code enumerations.
dlq.h
dlq provides general double-linked list and queue support: