~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to include/net-snmp/net-snmp-includes.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 NET_SNMP_INCLUDES_H
 
2
#define NET_SNMP_INCLUDES_H
 
3
 
 
4
    /**
 
5
     *  Convenience header file to pull in the full
 
6
     *     Net-SNMP library API in one go, together with
 
7
     *     certain commonly-required system header files.
 
8
     */
 
9
 
 
10
 
 
11
    /*
 
12
     *  Common system header requirements
 
13
     */
 
14
#include <stdio.h>
 
15
#include <sys/types.h>
 
16
 
 
17
#ifndef NET_SNMP_CONFIG_H
 
18
#error "Please include <net-snmp/net-snmp-config.h> before this file"
 
19
#endif
 
20
 
 
21
#if HAVE_STRING_H
 
22
#include <string.h>
 
23
#else
 
24
#include <strings.h>
 
25
#endif
 
26
 
 
27
#if HAVE_STDLIB_H
 
28
#include <stdlib.h>
 
29
#endif
 
30
#if HAVE_NETINET_IN_H
 
31
#include <netinet/in.h>
 
32
#endif
 
33
 
 
34
#if TIME_WITH_SYS_TIME
 
35
# ifdef WIN32
 
36
#  include <sys/timeb.h>
 
37
# else
 
38
#  include <sys/time.h>
 
39
# endif
 
40
# include <time.h>
 
41
#else
 
42
# if HAVE_SYS_TIME_H
 
43
#  include <sys/time.h>
 
44
# else
 
45
#  include <time.h>
 
46
# endif
 
47
#endif
 
48
 
 
49
/*
 
50
 * Must be right after system headers, but before library code for best usage 
 
51
 */
 
52
#if HAVE_DMALLOC_H
 
53
#include <dmalloc.h>
 
54
#endif
 
55
 
 
56
  /*
 
57
   * The check for missing 'in_addr_t' is handled
 
58
   * within the main net-snmp-config.h file 
 
59
   */
 
60
 
 
61
 
 
62
    /*
 
63
     *  The full Net-SNMP API
 
64
     */
 
65
#include <net-snmp/definitions.h>
 
66
#include <net-snmp/types.h>
 
67
 
 
68
#include <net-snmp/utilities.h>
 
69
#include <net-snmp/session_api.h>
 
70
#include <net-snmp/pdu_api.h>
 
71
#include <net-snmp/mib_api.h>
 
72
#include <net-snmp/varbind_api.h>
 
73
#include <net-snmp/config_api.h>
 
74
#include <net-snmp/output_api.h>
 
75
#include <net-snmp/snmpv3_api.h>
 
76
 
 
77
#ifdef CMU_COMPATIBLE
 
78
#include <net-snmp/library/cmu_compat.h>
 
79
#endif
 
80
 
 
81
#endif                          /* NET_SNMP_INCLUDES_H */