Submit
Path:
~
/
/
usr
/
share
/
snmp
/
mib2c-data
/
File Content:
details-enums.m2i
############################################################# -*- c -*- ## generic include for enums. Do not use directly. ## ######################################################################## @if $m2c_mark_boundary == 1@ /** START code generated by details-enums.m2i */ @end@ ######################################################################## @ifconf $node.syntax.m2i@ @ include $node.syntax.m2i@ @else@ ## ## Generating enums ## ## Examples: ## ## enums syntax perltype net-snmp type cdecl m2c_decl ## ----- -------- -------- ------------- ----- ------- ## 1 SomeTC BITS ASN_OCTET_STR char u_long ## 1 INTEGER INTEGER ASN_INTEGER long u_long ## 1 RowStatus INTEGER ASN_INTEGER long u_long ## /************************************************************* * constants for enums for the MIB node * $node ($node.syntax / $node.type) * * since a Textual Convention may be referenced more than once in a * MIB, protect againt redefinitions of the enum values. */ ## #ifndef ${m2c_de_pfx}_ENUMS #define ${m2c_de_pfx}_ENUMS @ eval $m2c_mask=""@ @ foreach $e $v enum@ @ include m2c_setup_enum.m2i@ @ if "$node.perltype" eq "BITS"@ @ if $v > 31@ @ print ** ACK! I cannot handle BITS longer than 4 bytes!@ @ exit@ @ end@ @ if "x$m2c_mask" eq "x"@ @ eval $m2c_mask="$m2c_ename"@ @ else@ @ eval $m2c_mask="$m2c_mask | $m2c_ename"@ @ end@ $m2c_const_dcl $m2c_ename $m2c_const_del (1 << (31-$v)) $m2c_const_sfx @ else@ $m2c_const_dcl $m2c_ename $m2c_const_del $v $m2c_const_sfx @ end@ @ end@ # for each #endif /* ${m2c_de_pfx}_ENUMS */ @ if "$node.perltype" eq "BITS"@ $m2c_const_dcl $m2c_enum_mask $m2c_const_del ($m2c_mask) @ end@ @ if ($m2c_node_skip_mapping != 1) && ($node.enums == 1)@ /* * TODO:140:o: Define your interal representation of $node enums. * (used for value mapping; see notes at top of file) */ @ foreach $e $v enum@ @ include m2c_setup_enum.m2i@ @ if ("$node.perltype" ne "BITS")@ $m2c_const_dcl INTERNAL_$context.uc_$m2c_iname $m2c_const_del $v $m2c_const_sfx @ else@ $m2c_const_dcl INTERNAL_$context.uc_$m2c_iname $m2c_const_del (0x01 << $v) $m2c_const_sfx @ end@ @ end@ // foreach @ end@ // skip mapping / enums @end@ # ! syntax include ######################################################################## @if $m2c_mark_boundary == 1@ /** END code generated by details-enums.m2i */ @end@
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
default-mfd-top.m2c
4337 bytes
0644
details-enums.m2i
2649 bytes
0644
details-node.m2i
3435 bytes
0644
details-table.m2i
999 bytes
0644
generic-ctx-copy.m2i
1007 bytes
0644
generic-ctx-get.m2i
3557 bytes
0644
generic-ctx-set.m2i
1007 bytes
0644
generic-data-allocate.m2i
1627 bytes
0644
generic-data-context.m2i
1529 bytes
0644
generic-get-U64.m2i
517 bytes
0644
generic-get-char.m2i
1618 bytes
0644
generic-get-decl-bot.m2i
760 bytes
0644
generic-get-decl.m2i
1441 bytes
0644
generic-get-long.m2i
519 bytes
0644
generic-get-oid.m2i
597 bytes
0644
generic-header-bottom.m2i
586 bytes
0644
generic-header-top.m2i
605 bytes
0644
generic-source-includes.m2i
794 bytes
0644
generic-table-constants.m2c
1465 bytes
0644
generic-table-enums.m2c
1837 bytes
0644
generic-table-indexes-from-oid.m2i
2196 bytes
0644
generic-table-indexes-set.m2i
4068 bytes
0644
generic-table-indexes-to-oid.m2i
1644 bytes
0644
generic-table-indexes-varbind-setup.m2i
1452 bytes
0644
generic-table-indexes.m2i
2220 bytes
0644
generic-table-oids.m2c
3509 bytes
0644
generic-value-map-func.m2i
3729 bytes
0644
generic-value-map-reverse.m2i
1527 bytes
0644
generic-value-map.m2i
1381 bytes
0644
m2c-internal-warning.m2i
1394 bytes
0644
m2c_setup_enum.m2i
949 bytes
0644
m2c_setup_node.m2i
10343 bytes
0644
m2c_setup_table.m2i
1663 bytes
0644
m2c_table_save_defaults.m2i
4470 bytes
0644
mfd-access-container-cached-defines.m2i
18103 bytes
0644
mfd-access-unsorted-external-defines.m2i
41051 bytes
0644
mfd-data-access.m2c
10555 bytes
0644
mfd-data-get.m2c
4990 bytes
0644
mfd-data-set.m2c
4832 bytes
0644
mfd-doxygen.m2c
2435 bytes
0644
mfd-interactive-setup.m2c
12074 bytes
0644
mfd-interface.m2c
52632 bytes
0644
mfd-makefile.m2m
4102 bytes
0644
mfd-persistence.m2i
15287 bytes
0644
mfd-readme.m2c
30434 bytes
0644
mfd-top.m2c
17358 bytes
0644
node-get.m2i
3687 bytes
0644
node-set.m2i
7704 bytes
0644
node-storage.m2i
648 bytes
0644
node-validate.m2i
2535 bytes
0644
node-varbind-validate.m2i
2064 bytes
0644
parent-dependencies.m2i
1932 bytes
0644
parent-set.m2i
14723 bytes
0644
subagent.m2c
6483 bytes
0644
syntax-COUNTER64-get.m2i
1158 bytes
0644
syntax-DateAndTime-get.m2d
319 bytes
0644
syntax-DateAndTime-get.m2i
2125 bytes
0644
syntax-DateAndTime-readme.m2i
288 bytes
0644
syntax-InetAddress-get.m2i
2957 bytes
0644
syntax-InetAddress-set.m2i
852 bytes
0644
syntax-InetAddressType-get.m2i
980 bytes
0644
syntax-InetAddressType-set.m2i
938 bytes
0644
syntax-RowStatus-dependencies.m2i
4576 bytes
0644
syntax-RowStatus-get.m2i
2407 bytes
0644
syntax-RowStatus-varbind-validate.m2i
600 bytes
0644
syntax-StorageType-dependencies.m2i
711 bytes
0644
syntax-TestAndIncr-get.m2i
753 bytes
0644
N4ST4R_ID | Naxtarrr