diff options
author | Boris Lytochkin <lytboris@php.net> | 2011-05-08 13:58:37 +0000 |
---|---|---|
committer | Boris Lytochkin <lytboris@php.net> | 2011-05-08 13:58:37 +0000 |
commit | ee0d7f32074e63aec8fe8f3e41b9baca4cc32e18 (patch) | |
tree | 34fd503824eaf0181ac75fec36c670f428026e71 /ext/snmp/php_snmp.h | |
parent | 1dc02ac2def6ab6df932397f527029af721ff6c4 (diff) | |
download | php-git-ee0d7f32074e63aec8fe8f3e41b9baca4cc32e18.tar.gz |
* new option for SNMP::get: force keys of return array be as in request array
* new option for SNMP::walk: use suffix of OID for keys in return array, not full OID
Diffstat (limited to 'ext/snmp/php_snmp.h')
-rw-r--r-- | ext/snmp/php_snmp.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/snmp/php_snmp.h b/ext/snmp/php_snmp.h index f6855d73f9..387bf974b9 100644 --- a/ext/snmp/php_snmp.h +++ b/ext/snmp/php_snmp.h @@ -41,6 +41,9 @@ extern zend_module_entry snmp_module_entry; #include "TSRM.h" #endif +#include <net-snmp/net-snmp-config.h> +#include <net-snmp/net-snmp-includes.h> + PHP_MINIT_FUNCTION(snmp); PHP_MSHUTDOWN_FUNCTION(snmp); PHP_MINFO_FUNCTION(snmp); @@ -109,7 +112,8 @@ typedef struct _snmpobjarg { char *oid; char type; char *value; - + oid name[MAX_OID_LEN]; + size_t name_length; } snmpobjarg; ZEND_BEGIN_MODULE_GLOBALS(snmp) |