~ubuntu-branches/ubuntu/precise/net-snmp/precise

« back to all changes in this revision

Viewing changes to snmplib/data_list.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-11-26 01:27:00 UTC
  • mfrom: (1.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091126012700-pox7w0a5j2x305h9
Tags: 5.4.2.1~dfsg-3ubuntu1
* Merge from debian testing.  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/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.
    (LP: #426813).
 * Dropped patches:
   - debian/patches/101-fix-ipalias.patch: Applied upstream.
   - debian/patches/99-fix-net-snmp-syslog.patch: Applied upstream.
   - debian/patches/99-fix-perl-counter-in-subagent.patch: Applied upstream.
   - ebian/patches/103-fix-ubuntu-lmsensors.patch: No longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * netsnmp_data_list.c
3
3
 *
4
 
 * $Id: data_list.c 16612 2007-07-16 23:59:44Z hardaker $
 
4
 * $Id: data_list.c 16758 2007-12-19 22:39:31Z magfr $
5
5
 */
6
6
#include <net-snmp/net-snmp-config.h>
7
7
#include <net-snmp/net-snmp-includes.h>
320
320
    return SNMP_ERR_NOERROR;
321
321
}
322
322
 
323
 
/** @todo make netsnmp_read_data_callback deal with a free routine */
324
323
/** intended to be registerd as a .conf parser
325
324
 * It should be registered using:
326
325
 *
327
326
 * register_app_config_handler("token", netsnmp_read_data_callback, XXX)
328
327
 *
329
 
 * where INFO_POINTER is a pointer to a netsnmp_data_list_saveinfo object containing apporpriate registration information
 
328
 * where INFO_POINTER is a pointer to a netsnmp_data_list_saveinfo object
 
329
 * containing apporpriate registration information
 
330
 * @todo make netsnmp_read_data_callback deal with a free routine
330
331
 */
331
332
void
332
333
netsnmp_read_data_callback(const char *token, char *line) {