summaryrefslogtreecommitdiff
path: root/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocCNUGroup/eocCNUPort/eocCNUPortTable/eocCNUPortTable.h
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocCNUGroup/eocCNUPort/eocCNUPortTable/eocCNUPortTable.h')
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocCNUGroup/eocCNUPort/eocCNUPortTable/eocCNUPortTable.h210
1 files changed, 210 insertions, 0 deletions
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocCNUGroup/eocCNUPort/eocCNUPortTable/eocCNUPortTable.h b/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocCNUGroup/eocCNUPort/eocCNUPortTable/eocCNUPortTable.h
new file mode 100644
index 0000000000..894eea57b7
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/mstar-eoc-mib/eocCNUGroup/eocCNUPort/eocCNUPortTable/eocCNUPortTable.h
@@ -0,0 +1,210 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 14170 $ of $
+ *
+ * $Id:$
+ */
+#ifndef EOCCNUPORTTABLE_H
+#define EOCCNUPORTTABLE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/** @addtogroup misc misc: Miscellaneous routines
+ *
+ * @{
+ */
+#include <net-snmp/library/asn1.h>
+
+/* other required module components */
+
+
+/* OID and column number definitions for eocCNUPortTable */
+#include "eocCNUPortTable_oids.h"
+
+/* enum definions */
+#include "eocCNUPortTable_enums.h"
+
+/* include common header */
+#include "EoCCommon.h"
+
+/* *********************************************************************
+ * function declarations
+ */
+void init_eocCNUPortTable(void);
+void shutdown_eocCNUPortTable(void);
+
+/* *********************************************************************
+ * Table declarations
+ */
+/**********************************************************************
+ **********************************************************************
+ ***
+ *** Table eocCNUPortTable
+ ***
+ **********************************************************************
+ **********************************************************************/
+/*
+ * NSCRTV-EPONEOC-MOD-EOC-MIB::eocCNUPortTable is subid 3 of eocCNUPort.
+ * Its status is Current.
+ * OID: .1.3.6.1.4.1.17409.2.4.5.4.3, length: 12
+*/
+/* *********************************************************************
+ * When you register your mib, you get to provide a generic
+ * pointer that will be passed back to you for most of the
+ * functions calls.
+ *
+ * TODO:100:r: Review all context structures
+ */
+ /*
+ * TODO:101:o: |-> Review eocCNUPortTable registration context.
+ */
+typedef netsnmp_data_list eocCNUPortTable_registration;
+
+/**********************************************************************/
+/*
+ * TODO:110:r: |-> Review eocCNUPortTable data context structure.
+ * This structure is used to represent the data for eocCNUPortTable.
+ */
+/*
+ * This structure contains storage for all the columns defined in the
+ * eocCNUPortTable.
+ */
+typedef struct eocCNUPortTable_data_s {
+
+ char eocCNUPortMACAddress[LIBSPID_MAC_STR_LEN];
+ /*
+ * eocCNUPortEN(4)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h
+ */
+ u_long eocCNUPortEN;
+
+ /*
+ * eocCNUPortService(5)/INTEGER/ASN_INTEGER/long(long)//l/A/W/e/r/d/h
+ */
+ long eocCNUPortService;
+
+} eocCNUPortTable_data;
+
+
+/* *********************************************************************
+ * TODO:115:o: |-> Review eocCNUPortTable undo context.
+ * We're just going to use the same data structure for our
+ * undo_context. If you want to do something more efficent,
+ * define your typedef here.
+ */
+typedef eocCNUPortTable_data eocCNUPortTable_undo_data;
+
+/*
+ * TODO:120:r: |-> Review eocCNUPortTable mib index.
+ * This structure is used to represent the index for eocCNUPortTable.
+ */
+typedef struct eocCNUPortTable_mib_index_s {
+
+ /*
+ * eocCNUPortCBATCardIndex(1)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long eocCNUPortCBATCardIndex;
+
+ /*
+ * eocCNUPortCNUIndex(2)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long eocCNUPortCNUIndex;
+
+ /*
+ * eocCNUPortIndex(3)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h
+ */
+ long eocCNUPortIndex;
+
+
+} eocCNUPortTable_mib_index;
+
+ /*
+ * TODO:121:r: | |-> Review eocCNUPortTable max index length.
+ * If you KNOW that your indexes will never exceed a certain
+ * length, update this macro to that length.
+*/
+#define MAX_eocCNUPortTable_IDX_LEN 3
+
+
+/* *********************************************************************
+ * TODO:130:o: |-> Review eocCNUPortTable Row request (rowreq) context.
+ * When your functions are called, you will be passed a
+ * eocCNUPortTable_rowreq_ctx pointer.
+ */
+typedef struct eocCNUPortTable_rowreq_ctx_s {
+
+ /** this must be first for container compare to work */
+ netsnmp_index oid_idx;
+ oid oid_tmp[MAX_eocCNUPortTable_IDX_LEN];
+
+ eocCNUPortTable_mib_index tbl_idx;
+
+ eocCNUPortTable_data data;
+ eocCNUPortTable_undo_data * undo;
+ unsigned int column_set_flags; /* flags for set columns */
+
+
+ /*
+ * flags per row. Currently, the first (lower) 8 bits are reserved
+ * for the user. See mfd.h for other flags.
+ */
+ u_int rowreq_flags;
+
+ /*
+ * TODO:131:o: | |-> Add useful data to eocCNUPortTable rowreq context.
+ */
+
+ /*
+ * storage for future expansion
+ */
+ netsnmp_data_list *eocCNUPortTable_data_list;
+
+} eocCNUPortTable_rowreq_ctx;
+
+typedef struct eocCNUPortTable_ref_rowreq_ctx_s {
+ eocCNUPortTable_rowreq_ctx *rowreq_ctx;
+} eocCNUPortTable_ref_rowreq_ctx;
+
+/* *********************************************************************
+ * function prototypes
+ */
+ int eocCNUPortTable_pre_request(eocCNUPortTable_registration * user_context);
+ int eocCNUPortTable_post_request(eocCNUPortTable_registration * user_context,
+ int rc);
+
+ int eocCNUPortTable_rowreq_ctx_init(eocCNUPortTable_rowreq_ctx *rowreq_ctx,
+ void *user_init_ctx);
+ void eocCNUPortTable_rowreq_ctx_cleanup(eocCNUPortTable_rowreq_ctx *rowreq_ctx);
+
+ int eocCNUPortTable_commit(eocCNUPortTable_rowreq_ctx * rowreq_ctx);
+
+ eocCNUPortTable_rowreq_ctx *
+ eocCNUPortTable_row_find_by_mib_index(eocCNUPortTable_mib_index *mib_idx);
+
+extern oid eocCNUPortTable_oid[];
+extern int eocCNUPortTable_oid_size;
+
+
+#include "eocCNUPortTable_interface.h"
+#include "eocCNUPortTable_data_access.h"
+#include "eocCNUPortTable_data_get.h"
+#include "eocCNUPortTable_data_set.h"
+
+/*
+ * DUMMY markers, ignore
+ *
+ * TODO:099:x: *************************************************************
+ * TODO:199:x: *************************************************************
+ * TODO:299:x: *************************************************************
+ * TODO:399:x: *************************************************************
+ * TODO:499:x: *************************************************************
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* EOCCNUPORTTABLE_H */
+/** @} */