[PHP4BETA] CVS update: php4/ext/snmp
| From: | sas | Date: | Fri, 21 May 1999 10:06:18 +0000 |
| Subject: | [PHP4BETA] CVS update: php4/ext/snmp | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-958@lists.php.net to get a copy of this message | ||
Date: Friday May 21, 1999 @ 6:06
Author: sas
Update of /repository/php4/ext/snmp
In directory php:/tmp/cvs-serv14196/ext/snmp
Modified Files:
php3_snmp.h snmp.c
Log Message:
- run ext sources through conv_proto
- add necessary phpext_*_ptr
Index: php4/ext/snmp/php3_snmp.h
diff -u php4/ext/snmp/php3_snmp.h:1.2 php4/ext/snmp/php3_snmp.h:1.3
--- php4/ext/snmp/php3_snmp.h:1.2 Sun May 9 04:48:00 1999
+++ php4/ext/snmp/php3_snmp.h Fri May 21 06:06:18 1999
@@ -26,7 +26,7 @@
| Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
-/* $Id: php3_snmp.h,v 1.2 1999/05/09 08:48:00 zeev Exp $ */
+/* $Id: php3_snmp.h,v 1.3 1999/05/21 10:06:18 sas Exp $ */
#ifndef _PHP3_SNMP_H
#define _PHP3_SNMP_H
@@ -43,14 +43,16 @@
#define snmp_module_ptr &snmp_module_entry
extern int php3i_snmp_init(INIT_FUNC_ARGS);
-extern PHP_FUNCTION(snmpget);
-extern PHP_FUNCTION(snmpwalk);
-extern PHP_FUNCTION(snmprealwalk);
-extern void php3_info_snmp(ZEND_MODULE_INFO_FUNC_ARGS);
+PHP_FUNCTION(snmpget);
+PHP_FUNCTION(snmpwalk);
+PHP_FUNCTION(snmprealwalk);
+void php3_info_snmp(ZEND_MODULE_INFO_FUNC_ARGS);
#else
#define snmp_module_ptr NULL
#endif /* HAVE_SNMP */
+
+#define phpext_snmp_ptr snmp_module_ptr
#endif /* _PHP3_SNMP_H */
Index: php4/ext/snmp/snmp.c
diff -u php4/ext/snmp/snmp.c:1.2 php4/ext/snmp/snmp.c:1.3
--- php4/ext/snmp/snmp.c:1.2 Sun May 9 04:48:01 1999
+++ php4/ext/snmp/snmp.c Fri May 21 06:06:18 1999
@@ -26,7 +26,7 @@
| Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
-/* $Id: snmp.c,v 1.2 1999/05/09 08:48:01 zeev Exp $ */
+/* $Id: snmp.c,v 1.3 1999/05/21 10:06:18 sas Exp $ */
#include "php.h"
#if defined(COMPILE_DL)
@@ -268,14 +268,14 @@
/* {{{ proto string snmpget(string host, string community, string object_id [, int timeout [, int
retries]])
Fetch an SNMP object */
-void php3_snmpget(INTERNAL_FUNCTION_PARAMETERS) {
+PHP_FUNCTION(snmpget) {
_php3_snmp(INTERNAL_FUNCTION_PARAM_PASSTHRU,1);
}
/* }}} */
/* {{{ proto string snmpwalk(string host, string community, string object_id [, int timeout [, int
retries]])
Return all objects under the specified object id */
-void php3_snmpwalk(INTERNAL_FUNCTION_PARAMETERS) {
+PHP_FUNCTION(snmpwalk) {
return _php3_snmp(INTERNAL_FUNCTION_PARAM_PASSTHRU,2);
}
/* }}} */
--
PHP 4 Beta