Back to index

php5  5.3.10
php_snmp.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.01 of the PHP license,      |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_01.txt                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Authors: Rasmus Lerdorf <rasmus@php.net>                             |
00016   |          Mike Jackson <mhjack@tscnet.com>                            |
00017   |          Steven Lawrance <slawrance@technologist.com>                |
00018   |          Harrie Hazewinkel <harrie@lisanza.net>                      |
00019   |          Johann Hanne <jonny@nurfuerspam.de>                         |
00020   +----------------------------------------------------------------------+
00021 */
00022 
00023 /* $Id: php_snmp.h 321634 2012-01-01 13:15:04Z felipe $ */
00024 
00025 #ifndef PHP_SNMP_H
00026 #define PHP_SNMP_H
00027 
00028 #if HAVE_SNMP
00029 
00030 #ifndef DLEXPORT
00031 #define DLEXPORT
00032 #endif
00033 
00034 extern zend_module_entry snmp_module_entry;
00035 #define snmp_module_ptr &snmp_module_entry
00036 
00037 #ifdef ZTS
00038 #include "TSRM.h"
00039 #endif
00040 
00041 PHP_MINIT_FUNCTION(snmp);
00042 PHP_MSHUTDOWN_FUNCTION(snmp);
00043 PHP_MINFO_FUNCTION(snmp);
00044 
00045 PHP_FUNCTION(snmpget);
00046 PHP_FUNCTION(snmpgetnext);
00047 PHP_FUNCTION(snmpwalk);
00048 PHP_FUNCTION(snmprealwalk);
00049 PHP_FUNCTION(snmp_get_quick_print);
00050 PHP_FUNCTION(snmp_set_quick_print);
00051 PHP_FUNCTION(snmp_set_enum_print);
00052 PHP_FUNCTION(snmp_set_oid_output_format);
00053 PHP_FUNCTION(snmpset);
00054 
00055 PHP_FUNCTION(snmp2_get);
00056 PHP_FUNCTION(snmp2_getnext);
00057 PHP_FUNCTION(snmp2_walk);
00058 PHP_FUNCTION(snmp2_real_walk);
00059 PHP_FUNCTION(snmp2_set);
00060 
00061 PHP_FUNCTION(snmp3_get);
00062 PHP_FUNCTION(snmp3_getnext);
00063 PHP_FUNCTION(snmp3_walk);
00064 PHP_FUNCTION(snmp3_real_walk);
00065 PHP_FUNCTION(snmp3_set);
00066 
00067 PHP_FUNCTION(snmp_set_valueretrieval);
00068 PHP_FUNCTION(snmp_get_valueretrieval);
00069 
00070 PHP_FUNCTION(snmp_read_mib);
00071 
00072 
00073 ZEND_BEGIN_MODULE_GLOBALS(snmp)
00074       int valueretrieval;
00075 ZEND_END_MODULE_GLOBALS(snmp)
00076 
00077 #ifdef ZTS
00078 #define SNMP_G(v) TSRMG(snmp_globals_id, zend_snmp_globals *, v)
00079 #else
00080 #define SNMP_G(v) (snmp_globals.v)
00081 #endif
00082 
00083 #else
00084 
00085 #define snmp_module_ptr NULL
00086 
00087 #endif /* HAVE_SNMP */
00088 
00089 #define phpext_snmp_ptr snmp_module_ptr
00090 
00091 #endif  /* PHP_SNMP_H */