summaryrefslogtreecommitdiff
path: root/local/mib2c-conf.d/syntax-RowStatus-get.m2i
diff options
context:
space:
mode:
Diffstat (limited to 'local/mib2c-conf.d/syntax-RowStatus-get.m2i')
-rw-r--r--local/mib2c-conf.d/syntax-RowStatus-get.m2i65
1 files changed, 65 insertions, 0 deletions
diff --git a/local/mib2c-conf.d/syntax-RowStatus-get.m2i b/local/mib2c-conf.d/syntax-RowStatus-get.m2i
new file mode 100644
index 0000000..1a418de
--- /dev/null
+++ b/local/mib2c-conf.d/syntax-RowStatus-get.m2i
@@ -0,0 +1,65 @@
+############################################################# -*- c -*-
+## generic include for XXX. Do not use directly.
+##
+## $Id: syntax-RowStatus-get.m2i 12090 2005-04-18 22:04:52Z rstory $
+########################################################################
+@if $m2c_mark_boundary == 1@
+/** START code generated by $RCSfile$ $Revision: 12090 $ */
+@end@
+########################################################################
+##
+@include generic-get-decl.m2i@
+@include generic-ctx-get.m2i@
+@if $m2c_node_skip_mapping != 1@
+ /*
+ * TODO:245:o: |-> Implement $context RowStatus mapping
+@if $mfd_code_verbose == 1@
+ *
+ * If the values for your data type don't exactly match the
+ * possible values defined by the mib, you should map them here.
+@end@
+ */
+ /*
+ * update INTERNAL_* macros defined in the header, if neccessary
+ */
+ switch ($m2c_node_lh) {
+
+ /* `active', which indicates that the conceptual row is
+ available for use by the managed device */
+ case INTERNAL_$context.uc_$node.uc_ACTIVE:
+ $m2c_node_lh = ROWSTATUS_ACTIVE;
+ break;
+
+ /* `notInService', which indicates that the conceptual
+ row exists in the agent, but is unavailable for use by
+ the managed device (see NOTE below); 'notInService' has
+ no implication regarding the internal consistency of
+ the row, availability of resources, or consistency with
+ the current state of the managed device */
+ case INTERNAL_$context.uc_$node.uc_NOTINSERVICE:
+ $m2c_node_lh = ROWSTATUS_NOTINSERVICE;
+ break;
+
+ /* `notReady', which indicates that the conceptual row
+ exists in the agent, but is missing information
+ necessary in order to be available for use by the
+ managed device (i.e., one or more required columns in
+ the conceptual row have not been instanciated) */
+ case INTERNAL_$context.uc_$node.uc_NOTREADY:
+ $m2c_node_lh = ROWSTATUS_NOTREADY;
+ break;
+
+ default:
+ snmp_log(LOG_ERR,
+ "couldn't map value %ld for $node RowStatus\n",
+ $m2c_node_lh);
+ return SNMP_ERR_GENERR;
+ }
+
+@end@
+@include generic-get-decl-bot.m2i@
+##
+########################################################################
+@if $m2c_mark_boundary == 1@
+/** END code generated by $RCSfile$ $Revision: 12090 $ */
+@end@