| 1 |
/* |
| 2 |
* swrun data access header |
| 3 |
* |
| 4 |
* $Id: swrun.h 15346 2006-09-26 23:34:50Z rstory $ |
| 5 |
*/ |
| 6 |
/* |
| 7 |
* Copyright (C) 2007 Apple, Inc. All rights reserved. |
| 8 |
* Use is subject to license terms specified in the COPYING file |
| 9 |
* distributed with the Net-SNMP package. |
| 10 |
*/ |
| 11 |
#ifndef NETSNMP_ACCESS_SWRUN_CONFIG_H |
| 12 |
#define NETSNMP_ACCESS_SWRUN_CONFIG_H |
| 13 |
|
| 14 |
/* |
| 15 |
* all platforms use this generic code |
| 16 |
*/ |
| 17 |
config_require(host/data_access/swrun); |
| 18 |
config_exclude(host/hr_swrun); |
| 19 |
|
| 20 |
/* |
| 21 |
* select the appropriate architecture-specific interface code |
| 22 |
*/ |
| 23 |
#if defined( darwin ) |
| 24 |
config_require(host/data_access/swrun_darwin); |
| 25 |
#elif defined( HAVE_SYS_PSTAT_H ) |
| 26 |
config_require(host/data_access/swrun_pstat); |
| 27 |
#elif defined( dynix ) |
| 28 |
config_require(host/data_access/swrun_prpsinfo); |
| 29 |
#elif defined( solaris2 ) |
| 30 |
# if _SLASH_PROC_METHOD_ |
| 31 |
config_require(host/data_access/swrun_procfs_psinfo); |
| 32 |
# else |
| 33 |
config_require(host/data_access/swrun_kvm_proc); |
| 34 |
# endif |
| 35 |
#elif defined( aix4 ) || defined( aix5 ) || defined( aix6 ) || defined( aix7 ) |
| 36 |
config_require(host/data_access/swrun_procinfo); |
| 37 |
#elif defined(HAVE_KVM_GETPROCS) |
| 38 |
config_require(host/data_access/swrun_kinfo); |
| 39 |
#elif defined( linux ) |
| 40 |
config_require(host/data_access/swrun_procfs_status); |
| 41 |
#elif defined( cygwin ) |
| 42 |
config_require(host/data_access/swrun_cygwin); |
| 43 |
#else |
| 44 |
config_warning(This platform does not yet support hrSWRunTable rewrites); |
| 45 |
config_require(host/data_access/swrun_null); |
| 46 |
#endif |
| 47 |
|
| 48 |
void init_swrun(void); |
| 49 |
void shutdown_swrun(void); |
| 50 |
|
| 51 |
netsnmp_cache *netsnmp_swrun_cache(void); |
| 52 |
netsnmp_container *netsnmp_swrun_container(void); |
| 53 |
|
| 54 |
#endif /* NETSNMP_ACCESS_SWRUN_CONFIG_H */ |