yumapro  20.10-12
YumaPro SDK
u_yumaworks_event_filter.h
Go to the documentation of this file.
1 
2 #ifndef _H_u_yumaworks_event_filter
3 #define _H_u_yumaworks_event_filter
4 /*
5  * Copyright (c) 2008-2012, Andy Bierman, All Rights Reserved.
6  * Copyright (c) 2012 - 2021 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  User 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 "agt.h"
36 #include "agt_cb.h"
37 #include "dlq.h"
38 #include "ncxtypes.h"
39 #include "op.h"
40 #include "rpc.h"
41 #include "ses.h"
42 #include "status.h"
43 #include "val.h"
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 
51 #if 0
52 
53 /* list /event-filters/event-filter */
54 typedef struct y_yumaworks_event_filter_T_event_filters_event_filter_ {
55  dlq_hdr_t qhdr;
56  xmlChar *module;
57  xmlChar *event;
58  boolean enabled;
59  boolean log_drops;
60 } y_yumaworks_event_filter_T_event_filters_event_filter;
61 
62 /* container /event-filters */
63 typedef struct y_yumaworks_event_filter_T_event_filters_ {
64  dlq_hdr_t event_filter;
65 } y_yumaworks_event_filter_T_event_filters;
66 
67 
68 #endif
69 
70 
106  ses_cb_t *scb,
107  rpc_msg_t *msg,
108  agt_cbtyp_t cbtyp,
109  op_editop_t editop,
110  val_value_t *newval,
111  val_value_t *curval,
112  const xmlChar *k_event_filters_event_filter_module,
113  const xmlChar *k_event_filters_event_filter_event);
114 
115 
139  ses_cb_t *scb,
140  rpc_msg_t *msg,
141  agt_cbtyp_t cbtyp,
142  op_editop_t editop,
143  val_value_t *newval,
144  val_value_t *curval,
145  const xmlChar *k_event_filters_event_filter_module,
146  const xmlChar *k_event_filters_event_filter_event);
147 
148 
172  ses_cb_t *scb,
173  rpc_msg_t *msg,
174  agt_cbtyp_t cbtyp,
175  op_editop_t editop,
176  val_value_t *newval,
177  val_value_t *curval,
178  const xmlChar *k_event_filters_event_filter_module,
179  const xmlChar *k_event_filters_event_filter_event);
180 
181 
205  ses_cb_t *scb,
206  rpc_msg_t *msg,
207  agt_cbtyp_t cbtyp,
208  op_editop_t editop,
209  val_value_t *newval,
210  val_value_t *curval,
211  const xmlChar *k_event_filters_event_filter_module,
212  const xmlChar *k_event_filters_event_filter_event);
213 
214 
238  ses_cb_t *scb,
239  rpc_msg_t *msg,
240  agt_cbtyp_t cbtyp,
241  op_editop_t editop,
242  val_value_t *newval,
243  val_value_t *curval,
244  const xmlChar *k_event_filters_event_filter_module,
245  const xmlChar *k_event_filters_event_filter_event);
246 
247 
269  ses_cb_t *scb,
270  rpc_msg_t *msg,
271  agt_cbtyp_t cbtyp,
272  op_editop_t editop,
273  val_value_t *newval,
274  val_value_t *curval);
275 
276 
284 extern status_t u_yumaworks_event_filter_init (
285  const xmlChar *modname,
286  const xmlChar *revision);
287 
288 
296 extern status_t u_yumaworks_event_filter_init2 (void);
297 
298 
304 extern void u_yumaworks_event_filter_cleanup (void);
305 
306 
310 #ifdef __cplusplus
311 } /* end extern 'C' */
312 #endif
313 
314 #endif
ses.h
NETCONF Session Common definitions module.
ncx_feature.h
NCX Module Library YANG Feature Utility Functions.
OP_EDITOP_CREATE
@ OP_EDITOP_CREATE
edit op is create
Definition: op.h:126
agt_util.h
Utility Functions for NCX Server method routines.
OP_EDITOP_REPLACE
@ OP_EDITOP_REPLACE
edit op is replace
Definition: op.h:125
val.h
Value Node Basic Support.
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.
OP_EDITOP_MERGE
@ OP_EDITOP_MERGE
edit op is merge
Definition: op.h:124
agt_cbtype_name
const xmlChar * agt_cbtype_name(agt_cbtyp_t cbtyp)
Get the string for the server callback phase.
Definition: agt.c:4247
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
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.
ERR_NCX_OPERATION_FAILED
@ ERR_NCX_OPERATION_FAILED
274
Definition: status_enum.h:315
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
OP_EDITOP_DELETE
@ OP_EDITOP_DELETE
edit op is delete
Definition: op.h:127
ERR_INTERNAL_VAL
@ ERR_INTERNAL_VAL
004
Definition: status_enum.h:194
ERR_NCX_WRONG_TYPE
@ ERR_NCX_WRONG_TYPE
231
Definition: status_enum.h:270
AGT_CB_VALIDATE
@ AGT_CB_VALIDATE
P1: write operation validate.
Definition: agt.h:620
rpc.h
NETCONF protocol remote procedure call common definitions.
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
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
VAL_BOOL
#define VAL_BOOL(V)
Access the value as a boolean ONLY IF btyp == NCX_BT_BOOLEAN.
Definition: val.h:405
OP_EDITOP_LOAD
@ OP_EDITOP_LOAD
load, internal enum
Definition: op.h:128
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.
LOGDEBUG
#define LOGDEBUG
Check if at least log-level=debug.
Definition: log.h:287
u_yumaworks_event_filter_cleanup
void u_yumaworks_event_filter_cleanup(void)
cleanup the server instrumentation library
Definition: u_yumaworks_event_filter.c:462
u_yumaworks_event_filter_event_filters_event_filter_module_edit
status_t u_yumaworks_event_filter_event_filters_event_filter_module_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.
AGT_CB_ROLLBACK
@ AGT_CB_ROLLBACK
P3-neg: write operation rollback.
Definition: agt.h:623
ncx.h
YANG module utility functions.
AGT_CB_COMMIT
@ AGT_CB_COMMIT
P3-pos: write operation commit.
Definition: agt.h:622
agt_timer.h
Handle timer services for the server.
ncx_find_module
ncx_module_t * ncx_find_module(const xmlChar *modname, const xmlChar *revision)
Find a ncx_module_t in the ncx_sesmodQ.
Definition: ncx.c:3227
SET_ERROR
#define SET_ERROR(E)
macro SET_ERROR
Definition: status_enum.h:103
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
u_yumaworks_event_filter_event_filters_event_filter_event_edit
status_t u_yumaworks_event_filter_event_filters_event_filter_event_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.
AGT_CB_APPLY
@ AGT_CB_APPLY
P2: write operation apply.
Definition: agt.h:621