~ubuntu-branches/ubuntu/wily/net-snmp/wily-proposed

« back to all changes in this revision

Viewing changes to local/mib2c-conf.d/mfd-access-unsorted-external-defines.m2i

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-28 14:59:36 UTC
  • mfrom: (1.2.3 upstream) (1.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100628145936-cbiallic69pn044g
Tags: 5.4.3~dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/snmpd.postinst: source debconf before doing work, LP: #589056
  - debian/snmp.preinst, debian/snmp.prerm: kill any/all processes owned by
    snmp user before install/uninstall, LP: #573391
  - Add apport hook (LP: #533603):
  - debian/{snmp,snmpd}.apport: Added.
  - debian/control: Build-depends on dh-apport.
  - debian/rules: 
    + Add --with apport.
    + override_dh_apport to install hook on snmpd package only.
 * Dropped patches:
   - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#############################################################  -*- c -*-
2
2
## generic include for XXX. Do not use directly.
3
3
##
4
 
## $Id: mfd-access-unsorted-external-defines.m2i 11972 2005-03-02 19:35:44Z rstory $
 
4
## $Id: mfd-access-unsorted-external-defines.m2i 17717 2009-08-04 21:59:16Z dts12 $
5
5
########################################################################
6
6
##
7
7
@eval $mfd_aue_wrap_param = "wrap_ctx"@
14
14
@eval $mfd_aue_param_cmt = "$mfd_aue_param Pointer to a $mfd_aue_param_type"
15
15
##
16
16
@if $m2c_mark_boundary == 1@
17
 
/** START code generated by $RCSfile$ $Revision: 11972 $ */
 
17
/** START code generated by $RCSfile$ $Revision: 17717 $ */
18
18
@end@
19
19
##//####################################################################
20
20
##//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
39
39
/**
40
40
 * loop context
41
41
 *
42
 
 * TODO:
 
42
 * ToDo:
43
43
 * define loop context structure
44
44
 *
45
45
 *  Since the actual loop is in the MFD handler, a loop contex parameter
358
358
    }
359
359
 
360
360
    /*
361
 
     * TODO:
 
361
     * ToDo:
362
362
     * set up loop context
363
363
     */
364
364
@if $m2c_include_examples == 1@
393
393
    rowreq_ctx_ref->rowreq_ctx = loop_ctx_ref->loop_ctx->rowreq_ctx;
394
394
 
395
395
    /*
396
 
     * TODO:
 
396
     * ToDo:
397
397
     * set local vars for index from loop_ctx_ref->loop_ctx
398
398
     *  this can be done in one of two ways:
399
399
     */
404
404
@   foreach $node index@
405
405
@      include m2c_setup_node.m2i@
406
406
        /*
407
 
         * TODO:
 
407
         * ToDo:
408
408
         * set rowreq_ctx_ref->rowreq_ctx->tbl_idx->$node
409
409
@      if $m2c_node_needlength == 1@
410
410
         *     and rowreq_ctx_ref->tbl_idx->${node}_len
503
503
        return MFD_END_OF_DATA;
504
504
 
505
505
    /*
506
 
     * TODO:
 
506
     * ToDo:
507
507
     * set local vars for index from loop_ctx_ref->loop_ctx
508
508
     *  this can be done in one of two ways:
509
509
     */
514
514
@   foreach $node index@
515
515
@      include m2c_setup_node.m2i@
516
516
        /*
517
 
         * TODO:
 
517
         * ToDo:
518
518
         * set rowreq_ctx_ref->rowreq_ctx->tbl_idx->$node
519
519
@      if $m2c_node_needlength == 1@
520
520
         *     and rowreq_ctx_ref->tbl_idx->${node}_len
604
604
    netsnmp_assert(loop_ctx_ref && save_loop_ctx_ref);
605
605
 
606
606
    /*
607
 
     * TODO:
 
607
     * ToDo:
608
608
     * 1) allocate new loop context, unless you can reuse a previous pointer.
609
609
     * 2) save information for the position of loop_ctx_ref in save_loop_ctx_ref.
610
610
     */
667
667
@    foreach $node nonindex@
668
668
@      include m2c_setup_node.m2i@
669
669
    /*
670
 
     * TODO:
 
670
     * ToDo:
671
671
     * set rowreq_ctx_ref->${m2c_data_item}$node
672
672
     *     from the loop context
673
673
     */
771
771
        ${context}_release_rowreq_ctx(loop_ctx_ref->loop_ctx->rowreq_ctx);
772
772
 
773
773
    /*
774
 
     * TODO:
 
774
     * ToDo:
775
775
     * release resources
776
776
     */
777
777
@if $m2c_include_examples == 1@
881
881
########################################################################
882
882
  Defining context for the loop
883
883
  -----------------------------
884
 
    TODO : typedef ${context}_loop_context
 
884
    ToDo : typedef ${context}_loop_context
885
885
    WHERE: ${table}_data_access.h
886
886
 
887
887
    @if $mfd_readme_verbose != 0@
931
931
########################################################################
932
932
  Initialization
933
933
  --------------
934
 
    TODO : Initialization
 
934
    ToDo : Initialization
935
935
    FUNC : ${context}_loop_init_data
936
936
    WHERE: ${table}_data_access.c
937
937
 
944
944
########################################################################
945
945
  Preparing for the loop
946
946
  ----------------------
947
 
    TODO : initialize loop context
 
947
    ToDo : initialize loop context
948
948
    FUNC : ${context}_loop_init_context
949
949
    WHERE: ${table}_data_access.c
950
950
 
991
991
########################################################################
992
992
  The Loop
993
993
  --------
994
 
    TODO : return raw data
 
994
    ToDo : return raw data
995
995
    FUNC : ${context}_loop_get_first
996
996
    WHERE: ${table}_data_access.c
997
997
 
1041
1041
 
1042
1042
    @end@
1043
1043
 
1044
 
    TODO : return raw data
 
1044
    ToDo : return raw data
1045
1045
    FUNC : ${context}_loop_get_next
1046
1046
    WHERE: ${table}_data_access.c
1047
1047
 
1085
1085
########################################################################
1086
1086
  Updating the Index
1087
1087
  ------------------
1088
 
    TODO : update index for the raw data
 
1088
    ToDo : update index for the raw data
1089
1089
    FUNC : ${context}_indexes_set
1090
1090
    WHERE: ${table}_data_access.c
1091
1091
 
1101
1101
########################################################################
1102
1102
  Saving a position in the loop
1103
1103
  -----------------------------
1104
 
    TODO : Saving a position in the loop
 
1104
    ToDo : Saving a position in the loop
1105
1105
    FUNC : ${context}_loop_save_position
1106
1106
    WHERE: ${table}_data_access.c
1107
1107
 
1135
1135
########################################################################
1136
1136
  Returning Data For an Index
1137
1137
  ---------------------------
1138
 
    TODO : copy transient raw data to generated structure
 
1138
    ToDo : copy transient raw data to generated structure
1139
1139
    FUNC : ${context}_loop_get_data
1140
1140
    WHERE: ${table}_data_access.c
1141
1141
 
1157
1157
########################################################################
1158
1158
  Cleaning up after the loop
1159
1159
  --------------------------
1160
 
    TODO : release any allocated memory
 
1160
    ToDo : release any allocated memory
1161
1161
    FUNC : ${context}_loop_cleanup_context
1162
1162
    WHERE: ${table}_data_access.c
1163
1163
 
1194
1194
@end@ // m2c_processing_type eq 'r
1195
1195
########################################################################
1196
1196
@if $m2c_mark_boundary == 1@
1197
 
/** END code generated by $RCSfile$ $Revision: 11972 $ */
 
1197
/** END code generated by $RCSfile$ $Revision: 17717 $ */
1198
1198
@end@