Debian Codegraph @

agent/mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable.h

raw
1 /*
2 * Note: this file originally auto-generated by mib2c using
3 * version : 1.48 $ of : mfd-top.m2c,v $
4 *
5 * Portions of this file are copyrighted by:
6 * Copyright (c) 2016 VMware, Inc. All rights reserved.
7 * Use is subject to license terms specified in the COPYING file
8 * distributed with the Net-SNMP package.
9 */
10 #ifndef SNMPNOTIFYFILTERTABLE_H
11 #define SNMPNOTIFYFILTERTABLE_H
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17
18 /** @addtogroup misc misc: Miscellaneous routines
19 *
20 * @{
21 */
22 #include <net-snmp/library/asn1.h>
23 #include "snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_data_storage.h"
24
25 /*
26 * other required module components
27 */
28 /* *INDENT-OFF* */
29 config_require(snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_interface);
30 config_require(snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_data_access);
31 /* *INDENT-ON* */
32
33 /*
34 * OID, column number and enum definions for snmpNotifyFilterTable
35 */
36 #include "snmpNotifyFilterTable_constants.h"
37
38 /*
39 *********************************************************************
40 * function declarations
41 */
42 void init_snmpNotifyFilterTable(void);
43 void shutdown_snmpNotifyFilterTable(void);
44
45 /*
46 *********************************************************************
47 * Table declarations
48 */
49 /**********************************************************************
50 **********************************************************************
51 ***
52 *** Table snmpNotifyFilterTable
53 ***
54 **********************************************************************
55 **********************************************************************/
56 /*
57 * SNMP-NOTIFICATION-MIB::snmpNotifyFilterTable is subid 3 of snmpNotifyObjects.
58 * Its status is Current.
59 * OID: .1.3.6.1.6.3.13.1.3, length: 9
60 */
61 /*
62 *********************************************************************
63 * When you register your mib, you get to provide a generic
64 * pointer that will be passed back to you for most of the
65 * functions calls.
66 *
67 * TODO:100:r: Review all context structures
68 */
69 /*
70 * TODO:101:o: |-> Review snmpNotifyFilterTable registration context.
71 */
72 typedef netsnmp_data_list snmpNotifyFilterTable_registration;
73
74 /**********************************************************************/
75 /*
76 * TODO:110:r: |-> Review snmpNotifyFilterTable data context structure.
77 * This structure is used to represent the data for snmpNotifyFilterTable.
78 */
79 /*
80 * This structure contains storage for all the columns defined in the
81 * snmpNotifyFilterTable.
82 */
83 typedef struct snmpNotifyFilterTable_data_s {
84
85 /*
86 * snmpNotifyFilterMask(2)/OCTETSTR/ASN_OCTET_STR/char(char)//L/A/W/e/R/D/h
87 */
88 char snmpNotifyFilterMask[16];
89 size_t snmpNotifyFilterMask_len; /* # of char elements, not bytes */
90
91 /*
92 * snmpNotifyFilterType(3)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/D/h
93 */
94 u_long snmpNotifyFilterType;
95
96 /*
97 * snmpNotifyFilterStorageType(4)/StorageType/ASN_INTEGER/long(u_long)//l/A/W/E/r/D/h
98 */
99 u_long snmpNotifyFilterStorageType;
100
101 /*
102 * snmpNotifyFilterRowStatus(5)/RowStatus/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h
103 */
104 u_long snmpNotifyFilterRowStatus;
105
106 } snmpNotifyFilterTable_data;
107
108
109 /*
110 *********************************************************************
111 * TODO:115:o: |-> Review snmpNotifyFilterTable undo context.
112 * We're just going to use the same data structure for our
113 * undo_context. If you want to do something more efficent,
114 * define your typedef here.
115 */
116 typedef snmpNotifyFilterTable_data snmpNotifyFilterTable_undo_data;
117
118 /*
119 * TODO:120:r: |-> Review snmpNotifyFilterTable mib index.
120 * This structure is used to represent the index for snmpNotifyFilterTable.
121 */
122 typedef struct snmpNotifyFilterTable_mib_index_s {
123
124 /*
125 * snmpNotifyFilterProfileName(1)/SnmpAdminString/ASN_OCTET_STR/char(char)//L/A/W/e/R/d/H
126 */
127 char snmpNotifyFilterProfileName[32];
128 size_t snmpNotifyFilterProfileName_len;
129
130 /*
131 * snmpNotifyFilterSubtree(1)/OBJECTID/ASN_OBJECT_ID/oid(oid)//L/a/w/e/r/d/h
132 */
133 /** 128 - 1(other indexes) - oid length(11) = 115 */
134 oid snmpNotifyFilterSubtree[115];
135 size_t snmpNotifyFilterSubtree_len;
136
137
138 } snmpNotifyFilterTable_mib_index;
139
140
141
142 /*
143 *********************************************************************
144 * TODO:130:o: |-> Review snmpNotifyFilterTable Row request (rowreq) context.
145 * When your functions are called, you will be passed a
146 * snmpNotifyFilterTable_rowreq_ctx pointer.
147 */
148 typedef struct snmpNotifyFilterTable_rowreq_ctx_s {
149
150 /** this must be first for container compare to work */
151 netsnmp_index oid_idx;
152 oid oid_tmp[MAX_snmpNotifyFilterTable_IDX_LEN];
153
154 snmpNotifyFilterTable_mib_index tbl_idx;
155
156 snmpNotifyFilterTable_data data;
157 snmpNotifyFilterTable_undo_data *undo;
158 unsigned int column_set_flags; /* flags for set columns */
159
160
161 /*
162 * flags per row. Currently, the first (lower) 8 bits are reserved
163 * for the user. See mfd.h for other flags.
164 */
165 u_int rowreq_flags;
166
167 /*
168 * TODO:131:o: | |-> Add useful data to snmpNotifyFilterTable rowreq context.
169 */
170
171 /*
172 * storage for future expansion
173 */
174 netsnmp_data_list *snmpNotifyFilterTable_data_list;
175
176 } snmpNotifyFilterTable_rowreq_ctx;
177
178 typedef struct snmpNotifyFilterTable_ref_rowreq_ctx_s {
179 snmpNotifyFilterTable_rowreq_ctx *rowreq_ctx;
180 } snmpNotifyFilterTable_ref_rowreq_ctx;
181
182 /*
183 *********************************************************************
184 * function prototypes
185 */
186 int
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202 snmpNotifyFilterTable_pre_request
203 (snmpNotifyFilterTable_registration * user_context);
204 int
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220 snmpNotifyFilterTable_post_request
221 (snmpNotifyFilterTable_registration * user_context, int rc);
222
223 int
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239 snmpNotifyFilterTable_rowreq_ctx_init
240 (snmpNotifyFilterTable_rowreq_ctx * rowreq_ctx,
241 void *user_init_ctx);
242 void
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258 snmpNotifyFilterTable_rowreq_ctx_cleanup
259 (snmpNotifyFilterTable_rowreq_ctx * rowreq_ctx);
260
261 snmpNotifyFilterTable_rowreq_ctx
262 * snmpNotifyFilterTable_row_find_by_mib_index
263 (snmpNotifyFilterTable_mib_index * mib_idx);
264
265 extern const oid snmpNotifyFilterTable_oid[];
266 extern const int snmpNotifyFilterTable_oid_size;
267
268
269 #include "snmpNotifyFilterTable_interface.h"
270 #include "snmpNotifyFilterTable_data_access.h"
271 /*
272 *********************************************************************
273 * GET function declarations
274 */
275
276 /*
277 *********************************************************************
278 * GET Table declarations
279 */
280 /**********************************************************************
281 **********************************************************************
282 ***
283 *** Table snmpNotifyFilterTable
284 ***
285 **********************************************************************
286 **********************************************************************/
287 /*
288 * SNMP-NOTIFICATION-MIB::snmpNotifyFilterTable is subid 3 of snmpNotifyObjects.
289 * Its status is Current.
290 * OID: .1.3.6.1.6.3.13.1.3, length: 9
291 */
292 /*
293 * indexes
294 */
295
296 int
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312 snmpNotifyFilterMask_get(snmpNotifyFilterTable_rowreq_ctx *
313 rowreq_ctx,
314 char **snmpNotifyFilterMask_val_ptr_ptr,
315 size_t
316 * snmpNotifyFilterMask_val_ptr_len_ptr);
317 int
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333 snmpNotifyFilterType_get(snmpNotifyFilterTable_rowreq_ctx *
334 rowreq_ctx,
335 u_long * snmpNotifyFilterType_val_ptr);
336 int
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352 snmpNotifyFilterStorageType_get(snmpNotifyFilterTable_rowreq_ctx *
353 rowreq_ctx,
354 u_long *
355 snmpNotifyFilterStorageType_val_ptr);
356 int
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372 snmpNotifyFilterRowStatus_get(snmpNotifyFilterTable_rowreq_ctx *
373 rowreq_ctx,
374 u_long *
375 snmpNotifyFilterRowStatus_val_ptr);
376
377
378 int
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394 snmpNotifyFilterTable_indexes_set_tbl_idx
395 (snmpNotifyFilterTable_mib_index * tbl_idx,
396 char *snmpNotifyFilterProfileName_val_ptr,
397 size_t snmpNotifyFilterProfileName_val_ptr_len,
398 oid * snmpNotifyFilterSubtree_val_ptr,
399 size_t snmpNotifyFilterSubtree_val_ptr_len);
400 int
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416 snmpNotifyFilterTable_indexes_set(snmpNotifyFilterTable_rowreq_ctx
417 * rowreq_ctx, char
418 *snmpNotifyFilterProfileName_val_ptr,
419 size_t
420 snmpNotifyFilterProfileName_val_ptr_len,
421 oid *
422 snmpNotifyFilterSubtree_val_ptr,
423 size_t
424 snmpNotifyFilterSubtree_val_ptr_len);
425
426
427
428 /*
429 *********************************************************************
430 * SET function declarations
431 */
432
433 /*
434 *********************************************************************
435 * SET Table declarations
436 */
437 /**********************************************************************
438 **********************************************************************
439 ***
440 *** Table snmpNotifyFilterTable
441 ***
442 **********************************************************************
443 **********************************************************************/
444 /*
445 * SNMP-NOTIFICATION-MIB::snmpNotifyFilterTable is subid 3 of snmpNotifyObjects.
446 * Its status is Current.
447 * OID: .1.3.6.1.6.3.13.1.3, length: 9
448 */
449
450
451 int
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467 snmpNotifyFilterTable_undo_setup(snmpNotifyFilterTable_rowreq_ctx *
468 rowreq_ctx);
469 int
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485 snmpNotifyFilterTable_undo_cleanup(snmpNotifyFilterTable_rowreq_ctx
486 * rowreq_ctx);
487 int
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503 snmpNotifyFilterTable_undo(snmpNotifyFilterTable_rowreq_ctx *
504 rowreq_ctx);
505 int
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521 snmpNotifyFilterTable_commit(snmpNotifyFilterTable_rowreq_ctx *
522 rowreq_ctx);
523 int
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539 snmpNotifyFilterTable_undo_commit(snmpNotifyFilterTable_rowreq_ctx
540 * rowreq_ctx);
541
542
543 int
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559 snmpNotifyFilterMask_check_value(snmpNotifyFilterTable_rowreq_ctx *
560 rowreq_ctx, char
561 *snmpNotifyFilterMask_val_ptr,
562 size_t
563 snmpNotifyFilterMask_val_ptr_len);
564 int
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580 snmpNotifyFilterMask_undo_setup(snmpNotifyFilterTable_rowreq_ctx *
581 rowreq_ctx);
582 int
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598 snmpNotifyFilterMask_set(snmpNotifyFilterTable_rowreq_ctx *
599 rowreq_ctx,
600 char *snmpNotifyFilterMask_val_ptr,
601 size_t snmpNotifyFilterMask_val_ptr_len);
602 int
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618 snmpNotifyFilterMask_undo(snmpNotifyFilterTable_rowreq_ctx *
619 rowreq_ctx);
620
621 int
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637 snmpNotifyFilterType_check_value(snmpNotifyFilterTable_rowreq_ctx *
638 rowreq_ctx,
639 u_long snmpNotifyFilterType_val);
640 int
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656 snmpNotifyFilterType_undo_setup(snmpNotifyFilterTable_rowreq_ctx *
657 rowreq_ctx);
658 int
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674 snmpNotifyFilterType_set(snmpNotifyFilterTable_rowreq_ctx *
675 rowreq_ctx,
676 u_long snmpNotifyFilterType_val);
677 int
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693 snmpNotifyFilterType_undo(snmpNotifyFilterTable_rowreq_ctx *
694 rowreq_ctx);
695
696 int
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712 snmpNotifyFilterStorageType_check_value
713 (snmpNotifyFilterTable_rowreq_ctx * rowreq_ctx,
714 u_long snmpNotifyFilterStorageType_val);
715 int
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731 snmpNotifyFilterStorageType_undo_setup
732 (snmpNotifyFilterTable_rowreq_ctx * rowreq_ctx);
733 int
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749 snmpNotifyFilterStorageType_set(snmpNotifyFilterTable_rowreq_ctx *
750 rowreq_ctx,
751 u_long
752 snmpNotifyFilterStorageType_val);
753 int
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769 snmpNotifyFilterStorageType_undo(snmpNotifyFilterTable_rowreq_ctx *
770 rowreq_ctx);
771
772 int
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788 snmpNotifyFilterRowStatus_check_value
789 (snmpNotifyFilterTable_rowreq_ctx * rowreq_ctx,
790 u_long snmpNotifyFilterRowStatus_val);
791 int
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807 snmpNotifyFilterRowStatus_undo_setup
808 (snmpNotifyFilterTable_rowreq_ctx * rowreq_ctx);
809 int
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825 snmpNotifyFilterRowStatus_set(snmpNotifyFilterTable_rowreq_ctx *
826 rowreq_ctx,
827 u_long
828 snmpNotifyFilterRowStatus_val);
829 int
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845 snmpNotifyFilterRowStatus_undo(snmpNotifyFilterTable_rowreq_ctx *
846 rowreq_ctx);
847
848
849 int
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865 snmpNotifyFilterTable_check_dependencies
866 (snmpNotifyFilterTable_rowreq_ctx * ctx);
867
868
869 /*
870 * DUMMY markers, ignore
871 *
872 * TODO:099:x: *************************************************************
873 * TODO:199:x: *************************************************************
874 * TODO:299:x: *************************************************************
875 * TODO:399:x: *************************************************************
876 * TODO:499:x: *************************************************************
877 */
878
879 #ifdef __cplusplus
880 }
881 #endif
882 #endif /* SNMPNOTIFYFILTERTABLE_H */
883 /** @} */
884