yumapro  20.10-12
YumaPro SDK
y_yumaworks_event_filter.h
Go to the documentation of this file.
1 
2 #ifndef _H_y_yumaworks_event_filter
3 #define _H_y_yumaworks_event_filter
4 /*
5  * Copyright (c) 2008-2012, Andy Bierman, All Rights Reserved.
6  * Copyright (c) 2012 - 2014, 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-pro cheetah-integ-2014-02-08.17.36-M
17 
18  YumaPro SIL header
19  module yumaworks-event-filter
20  revision 2014-02-09
21  namespace http://yumaworks.com/ns/yumaworks-event-filter
22  organization YumaWorks, Inc.
23 
24  */
25 
26 
33 #include <xmlstring.h>
34 
35 #include "dlq.h"
36 #include "ncxtypes.h"
37 #include "op.h"
38 #include "status.h"
39 #include "val.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 #define y_yumaworks_event_filter_M_yumaworks_event_filter (const xmlChar *)"yumaworks-event-filter"
46 
47 #define y_yumaworks_event_filter_R_yumaworks_event_filter (const xmlChar *)"2014-02-09"
48 
49 #define y_yumaworks_event_filter_N_enabled (const xmlChar *)"enabled"
50 #define y_yumaworks_event_filter_N_event (const xmlChar *)"event"
51 #define y_yumaworks_event_filter_N_event_filter (const xmlChar *)"event-filter"
52 #define y_yumaworks_event_filter_N_event_filters (const xmlChar *)"event-filters"
53 #define y_yumaworks_event_filter_N_log_drops (const xmlChar *)"log-drops"
54 #define y_yumaworks_event_filter_N_module (const xmlChar *)"module"
55 
56 
57 /* group defined in y_yumaworks_event_filter.h */
58 
59 
74 extern status_t y_yumaworks_event_filter_init (
75  const xmlChar *modname,
76  const xmlChar *revision);
77 
78 
86 extern status_t y_yumaworks_event_filter_init2 (void);
87 
88 
94 extern void y_yumaworks_event_filter_cleanup (void);
95 
96 
103 extern void y_yumaworks_event_filter_check_module (ncx_module_t *mod);
104 
105 
109 #ifdef __cplusplus
110 } /* end extern 'C' */
111 #endif
112 
113 #endif
ncx_feature.h
NCX Module Library YANG Feature Utility Functions.
agt_util.h
Utility Functions for NCX Server method routines.
val_find_child
val_value_t * val_find_child(const val_value_t *parent, const xmlChar *modname, const xmlChar *childname)
Find the first instance of the specified child node.
Definition: val.c:8560
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.
log_debug3
void void void void void void void void void void void log_debug3(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG3 log entry.
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
y_yumaworks_event_filter_cleanup
void y_yumaworks_event_filter_cleanup(void)
Cleanup the server instrumentation library.
Definition: y_yumaworks_event_filter.c:465
op.h
NETCONF protocol operations.
ncxmod.h
NCX Module Load Manager.
u_yumaworks_event_filter_init2
status_t u_yumaworks_event_filter_init2(void)
SIL init phase 2: non-config data structures.
Definition: u_yumaworks_event_filter.c:447
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
log_debug2
void void void void void void void void void log_debug2(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG2 log entry.
obj_is_notif
boolean obj_is_notif(const obj_template_t *obj)
Check if the object is a notification.
Definition: obj.c:14083
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
u_yumaworks_event_filter_init
status_t u_yumaworks_event_filter_init(const xmlChar *modname, const xmlChar *revision)
initialize the yumaworks-event-filter server instrumentation library
Definition: u_yumaworks_event_filter.c:428
y_yumaworks_event_filter.h
System SIL callbacks for yumaworks-event-filter module.
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
obj_get_name
const xmlChar * obj_get_name(const obj_template_t *obj)
Get the name field for this obj.
Definition: obj.c:10511
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
LOGDEBUG2
#define LOGDEBUG2
Check if at least log-level=debug2.
Definition: log.h:292
log_warn
void void void log_warn(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_WARN log entry.
ERR_INTERNAL_VAL
@ ERR_INTERNAL_VAL
004
Definition: status_enum.h:194
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.
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.
u_yumaworks_event_filter_event_filters_event_filter_edit
status_t u_yumaworks_event_filter_event_filters_event_filter_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, const xmlChar *k_event_filters_event_filter_module, const xmlChar *k_event_filters_event_filter_event)
Edit database object callback.
Definition: u_yumaworks_event_filter.c:279
agt.h
Multi-Protocol Network Management Server.
obj_set_notif_log_drops
void obj_set_notif_log_drops(const obj_template_t *obj, boolean enabled)
Set the event drops enabled flag for the notification object.
Definition: obj.c:17050
u_yumaworks_event_filter_event_filters_edit
status_t u_yumaworks_event_filter_event_filters_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_event_filter.c:362
y_yumaworks_event_filter_init
status_t y_yumaworks_event_filter_init(const xmlChar *modname, const xmlChar *revision)
initialize the yumaworks-event-filter server instrumentation library
Definition: y_yumaworks_event_filter.c:322
u_yumaworks_event_filter_event_filters_event_filter_enabled_edit
status_t u_yumaworks_event_filter_event_filters_event_filter_enabled_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, const xmlChar *k_event_filters_event_filter_module, const xmlChar *k_event_filters_event_filter_event)
Edit database object callback.
Definition: u_yumaworks_event_filter.c:100
xml_strcmp
int xml_strcmp(const xmlChar *s1, const xmlChar *s2)
String compare for xmlChar.
Definition: xml_util.c:1746
VAL_BOOL
#define VAL_BOOL(V)
Access the value as a boolean ONLY IF btyp == NCX_BT_BOOLEAN.
Definition: val.h:405
val_get_next_child
val_value_t * val_get_next_child(const val_value_t *curchild)
Get the next child node.
Definition: val.c:8496
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
obj_set_notif_enabled
void obj_set_notif_enabled(obj_template_t *obj, boolean enabled)
Set the notification object enabled flag.
Definition: obj.c:17027
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
val_get_first_child
val_value_t * val_get_first_child(const val_value_t *parent)
Get the first child node.
Definition: val.c:8477
u_yumaworks_event_filter_cleanup
void u_yumaworks_event_filter_cleanup(void)
cleanup the server instrumentation library
Definition: u_yumaworks_event_filter.c:462
NCX_NT_NONE
@ NCX_NT_NONE
not set
Definition: ncxtypes.h:273
y_yumaworks_event_filter_init2
status_t y_yumaworks_event_filter_init2(void)
SIL init phase 2: non-config data structures.
Definition: y_yumaworks_event_filter.c:425
agt_get_profile
agt_profile_t * agt_get_profile(void)
Get the server profile struct.
Definition: agt.c:4118
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
VAL_STR
#define VAL_STR(V)
Access the value as a string ONLY if typ_is_string() is true.
Definition: val.h:464
agt_timer.h
Handle timer services for the server.
agt_cb_register_callback
status_t agt_cb_register_callback(const xmlChar *modname, const xmlChar *defpath, const xmlChar *version, agt_cb_fn_t cbfn)
Register an object specific edit callback function use the same fn for all callback phases all phases...
Definition: agt_cb.c:1177
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
u_yumaworks_event_filter.h
User SIL callbacks for yumaworks-event-filter module.
status.h
Global error messages for status code enumerations.
dlq.h
dlq provides general double-linked list and queue support:
u_yumaworks_event_filter_event_filters_event_filter_log_drops_edit
status_t u_yumaworks_event_filter_event_filters_event_filter_log_drops_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, const xmlChar *k_event_filters_event_filter_module, const xmlChar *k_event_filters_event_filter_event)
Edit database object callback.
Definition: u_yumaworks_event_filter.c:188
y_yumaworks_event_filter_check_module
void y_yumaworks_event_filter_check_module(ncx_module_t *mod)
Check if the specified module that was just loaded has any notifications that are configured to be di...
Definition: y_yumaworks_event_filter.c:521
LOGDEBUG3
#define LOGDEBUG3
Check if at least log-level=debug3.
Definition: log.h:297