/usr/share/snmp/mib2c-data/parent-dependencies.m2i is in libsnmp-base 5.4.3~dfsg-2.8+deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | ############################################################# -*- c -*-
## generic include for XXX. Do not use directly.
##
## $Id: parent-dependencies.m2i 11989 2005-03-04 20:02:42Z rstory $
########################################################################
@if $m2c_mark_boundary == 1@
/** START code generated by $RCSfile$ $Revision: 11989 $ */
@end@ # ;
########################################################################
##
/**
* check dependencies
*
* This is useful for for tables which have dependencies between columns
* (or rows, or tables). For example, two columns allocating a percentage
* of something add up 100%.
*
* Should you need different behavior depending on which columns were
* set, rowreq_ctx->column_set_flags will indicate which writeable columns were
* set. The definitions for the COLUMN_*_FLAG bits can be found in
@if $m2c_create_fewer_files != 1@
* ${context}_oids.h.
@else@
* ${context}.h.
@end@
* A new row will have the MFD_ROW_CREATED bit set in rowreq_flags.
*
* @retval MFD_SUCCESS all the changes to the row are legal
* @retval MFD_ERROR one or more changes are not legal
*
* (see README-table-${table} if you don't have dependencies)
*/
int
${context}_check_dependencies(${context}_rowreq_ctx *rowreq_ctx)
{
int rc = MFD_SUCCESS;
DEBUGMSGTL(("internal:${context}:${context}_check_dependencies","called\n"));
netsnmp_assert(NULL != rowreq_ctx);
/*
* TODO:470:o: Check $context row dependencies.
* check that all new value are legal and consistent with each other
*/
## }
@foreach $node nonindex@
@ ifconf syntax-$node.syntax-dependencies.m2i@
@ include syntax-$node.syntax-dependencies.m2i@
if ( MFD_SUCCESS != rc )
return rc;
@ end@
@end@ # for each
## {
return rc;
} /* ${context}_check_dependencies */
##
########################################################################
@if $m2c_mark_boundary == 1@
/** END code generated by $RCSfile$ $Revision: 11989 $ */
@end@
|