summaryrefslogtreecommitdiff
path: root/include/net-snmp/agent/auto_nlist.h
blob: 21b6b8c4537bf18a50db49ae563e2e3bd2ca0e08 (plain)
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
/*
 * auto_nlist.h
 */
#ifndef AUTO_NLIST_H
#define AUTO_NLIST_H
#ifdef __cplusplus
extern          "C" {
#endif

#if defined(irix6) && defined(IRIX64)
#define nlist nlist64
#endif

#ifdef NETSNMP_CAN_USE_NLIST
int             auto_nlist(const char *, char *, size_t);
long            auto_nlist_value(const char *);
int             KNLookup(struct nlist *, int, char *, size_t);
#else
int             auto_nlist_noop(void);
#	define auto_nlist(x,y,z) auto_nlist_noop()
#	define auto_nlist_value(z) auto_nlist_noop()
#	define KNLookup(w,x,y,z) auto_nlist_noop()
#endif

#ifdef __cplusplus
}
#endif
#endif