diff options
Diffstat (limited to 'agent/mibgroup/host/data_access/swrun.h')
-rw-r--r-- | agent/mibgroup/host/data_access/swrun.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/agent/mibgroup/host/data_access/swrun.h b/agent/mibgroup/host/data_access/swrun.h new file mode 100644 index 0000000..2ae53f5 --- /dev/null +++ b/agent/mibgroup/host/data_access/swrun.h @@ -0,0 +1,54 @@ +/* + * swrun data access header + * + * $Id: swrun.h 15346 2006-09-26 23:34:50Z rstory $ + */ +/* + * Copyright (C) 2007 Apple, Inc. All rights reserved. + * Use is subject to license terms specified in the COPYING file + * distributed with the Net-SNMP package. + */ +#ifndef NETSNMP_ACCESS_SWRUN_CONFIG_H +#define NETSNMP_ACCESS_SWRUN_CONFIG_H + +/* + * all platforms use this generic code + */ +config_require(host/data_access/swrun) +config_exclude(host/hr_swrun) + +/* + * select the appropriate architecture-specific interface code + */ +#if defined( darwin ) + config_require(host/data_access/swrun_darwin) +#elif defined( HAVE_SYS_PSTAT_H ) + config_require(host/data_access/swrun_pstat) +#elif defined( dynix ) + config_require(host/data_access/swrun_prpsinfo) +#elif defined( solaris2 ) +# if _SLASH_PROC_METHOD_ + config_require(host/data_access/swrun_procfs_psinfo) +# else + config_require(host/data_access/swrun_kvm_proc) +# endif +#elif defined( aix4 ) || defined( aix5 ) || defined( aix6 ) || defined( aix7 ) + config_require(host/data_access/swrun_procinfo) +#elif HAVE_KVM_GETPROCS + config_require(host/data_access/swrun_kinfo) +#elif defined( linux ) + config_require(host/data_access/swrun_procfs_status) +#elif defined( cygwin ) + config_require(host/data_access/swrun_cygwin) +#else + config_warning(This platform does not yet support hrSWRunTable rewrites) + config_require(host/data_access/swrun_null) +#endif + +void init_swrun(void); +void shutdown_swrun(void); + +netsnmp_cache *netsnmp_swrun_cache(void); +netsnmp_container *netsnmp_swrun_container(void); + +#endif /* NETSNMP_ACCESS_SWRUN_CONFIG_H */ |