~ubuntu-branches/ubuntu/gutsy/net-snmp/gutsy-security

« back to all changes in this revision

Viewing changes to agent/mibgroup/ucd-snmp/diskio.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-g952ntonlleihcvm
Tags: upstream-5.1.1
ImportĀ upstreamĀ versionĀ 5.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _MIBGROUP_DISKIO_H
 
2
#define _MIBGROUP_DISKIO_H
 
3
 
 
4
config_require(util_funcs)
 
5
config_add_mib(UCD-DISKIO-MIB)
 
6
 
 
7
    /*
 
8
     * Define all our functions using prototyping for ANSI compilers 
 
9
     */
 
10
    /*
 
11
     * These functions are then defined in the example.c file 
 
12
     */
 
13
     void            init_diskio(void);
 
14
     FindVarMethod   var_diskio;
 
15
 
 
16
 
 
17
/*
 
18
 * Magic number definitions.  These numbers are the last oid index
 
19
 * numbers to the table that you are going to define.  For example,
 
20
 * lets say (since we are) creating a mib table at the location
 
21
 * .1.3.6.1.4.1.2021.254.  The following magic numbers would be the
 
22
 * next numbers on that oid for the var_example function to use, ie:
 
23
 * .1.3.6.1.4.1.2021.254.1 (and .2 and .3 ...) 
 
24
 */
 
25
 
 
26
#define DISKIO_INDEX            1
 
27
#define DISKIO_DEVICE           2
 
28
#define DISKIO_NREAD            3
 
29
#define DISKIO_NWRITTEN         4
 
30
#define DISKIO_READS            5
 
31
#define DISKIO_WRITES           6
 
32
 
 
33
#endif                          /* _MIBGROUP_DISKIO_H */