summaryrefslogtreecommitdiff
path: root/ext/snmp
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-05-21 10:06:25 +0000
committerSascha Schumann <sas@php.net>1999-05-21 10:06:25 +0000
commitb57dc275950b228f2399990471c4f22b7d154c6c (patch)
treea89fe99e356b218591b0b0b392862e0b9ddd4e7e /ext/snmp
parent4fe8fe715e4347a4063a57e1a9fd6dc013ca9ee0 (diff)
downloadphp-git-b57dc275950b228f2399990471c4f22b7d154c6c.tar.gz
- run ext sources through conv_proto
- add necessary phpext_*_ptr
Diffstat (limited to 'ext/snmp')
-rw-r--r--ext/snmp/php3_snmp.h10
-rw-r--r--ext/snmp/snmp.c4
2 files changed, 8 insertions, 6 deletions
diff --git a/ext/snmp/php3_snmp.h b/ext/snmp/php3_snmp.h
index 520e9ee2fa..de68105ff7 100644
--- a/ext/snmp/php3_snmp.h
+++ b/ext/snmp/php3_snmp.h
@@ -43,14 +43,16 @@ extern php3_module_entry snmp_module_entry;
#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 */
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c
index 5943decc83..7f11bb8413 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -268,14 +268,14 @@ retry:
/* {{{ 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);
}
/* }}} */