1999-04-22 02:48:28 +00:00
|
|
|
/*
|
2003-02-21 10:43:32 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| PHP Version 5 |
|
2003-02-21 10:43:32 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| Copyright (c) 1997-2004 The PHP Group |
|
2003-02-21 10:43:32 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2003-06-10 20:04:29 +00:00
|
|
|
| This source file is subject to version 3.0 of the PHP license, |
|
2003-02-21 10:43:32 +00:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
| available through the world-wide-web at the following url: |
|
|
|
|
| http://www.php.net/license/3_0.txt. |
|
2003-02-21 10:43:32 +00:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Rasmus Lerdorf <rasmus@php.net> |
|
|
|
|
| Mike Jackson <mhjack@tscnet.com> |
|
|
|
|
| Steven Lawrance <slawrance@technologist.com> |
|
|
|
|
| Harrie Hazewinkel <harrie@lisanza.net> |
|
2003-07-14 17:11:04 +00:00
|
|
|
| Johann Hanne <jonny@nurfuerspam.de> |
|
2003-02-21 10:43:32 +00:00
|
|
|
+----------------------------------------------------------------------+
|
1999-08-04 20:56:33 +00:00
|
|
|
*/
|
|
|
|
|
1999-04-22 02:48:28 +00:00
|
|
|
/* $Id$ */
|
2003-02-21 10:43:32 +00:00
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#ifndef PHP_SNMP_H
|
|
|
|
#define PHP_SNMP_H
|
1999-04-22 02:48:28 +00:00
|
|
|
|
|
|
|
#if HAVE_SNMP
|
2003-02-21 10:43:32 +00:00
|
|
|
|
1999-04-22 02:48:28 +00:00
|
|
|
#ifndef DLEXPORT
|
|
|
|
#define DLEXPORT
|
|
|
|
#endif
|
|
|
|
|
1999-12-17 20:55:31 +00:00
|
|
|
extern zend_module_entry snmp_module_entry;
|
1999-04-22 02:48:28 +00:00
|
|
|
#define snmp_module_ptr &snmp_module_entry
|
|
|
|
|
2003-07-14 17:11:04 +00:00
|
|
|
#ifdef ZTS
|
|
|
|
#include "TSRM.h"
|
|
|
|
#endif
|
|
|
|
|
1999-12-18 04:08:03 +00:00
|
|
|
PHP_MINIT_FUNCTION(snmp);
|
2003-02-21 10:43:32 +00:00
|
|
|
PHP_MINFO_FUNCTION(snmp);
|
|
|
|
|
1999-05-21 10:06:25 +00:00
|
|
|
PHP_FUNCTION(snmpget);
|
2003-07-14 18:10:22 +00:00
|
|
|
PHP_FUNCTION(snmpgetnext);
|
1999-05-21 10:06:25 +00:00
|
|
|
PHP_FUNCTION(snmpwalk);
|
|
|
|
PHP_FUNCTION(snmprealwalk);
|
1999-08-04 20:56:33 +00:00
|
|
|
PHP_FUNCTION(snmp_get_quick_print);
|
|
|
|
PHP_FUNCTION(snmp_set_quick_print);
|
2002-11-11 21:37:19 +00:00
|
|
|
PHP_FUNCTION(snmp_set_enum_print);
|
|
|
|
PHP_FUNCTION(snmp_set_oid_numeric_print);
|
1999-08-04 20:56:33 +00:00
|
|
|
PHP_FUNCTION(snmpset);
|
2002-12-05 19:33:03 +00:00
|
|
|
|
|
|
|
PHP_FUNCTION(snmp3_get);
|
2003-07-14 18:10:22 +00:00
|
|
|
PHP_FUNCTION(snmp3_getnext);
|
2002-12-05 19:33:03 +00:00
|
|
|
PHP_FUNCTION(snmp3_walk);
|
|
|
|
PHP_FUNCTION(snmp3_real_walk);
|
|
|
|
PHP_FUNCTION(snmp3_set);
|
2003-02-21 10:43:32 +00:00
|
|
|
|
2003-07-14 17:11:04 +00:00
|
|
|
PHP_FUNCTION(snmp_set_valueretrieval);
|
|
|
|
PHP_FUNCTION(snmp_get_valueretrieval);
|
|
|
|
|
2003-07-16 09:28:47 +00:00
|
|
|
PHP_FUNCTION(snmp_read_mib);
|
|
|
|
|
|
|
|
|
2003-07-14 17:11:04 +00:00
|
|
|
ZEND_BEGIN_MODULE_GLOBALS(snmp)
|
|
|
|
int valueretrieval;
|
|
|
|
ZEND_END_MODULE_GLOBALS(snmp)
|
|
|
|
|
|
|
|
#ifdef ZTS
|
|
|
|
#define SNMP_G(v) TSRMG(snmp_globals_id, zend_snmp_globals *, v)
|
|
|
|
#else
|
|
|
|
#define SNMP_G(v) (snmp_globals.v)
|
|
|
|
#endif
|
|
|
|
|
1999-04-22 02:48:28 +00:00
|
|
|
#else
|
|
|
|
|
|
|
|
#define snmp_module_ptr NULL
|
|
|
|
|
|
|
|
#endif /* HAVE_SNMP */
|
|
|
|
|
1999-05-21 10:06:25 +00:00
|
|
|
#define phpext_snmp_ptr snmp_module_ptr
|
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#endif /* PHP_SNMP_H */
|