summaryrefslogtreecommitdiff
path: root/ext/vpopmail/php_vpopmail.h
diff options
context:
space:
mode:
authorBoian Bonev <bbonev@php.net>2001-01-23 21:46:04 +0000
committerBoian Bonev <bbonev@php.net>2001-01-23 21:46:04 +0000
commite7da11fd9393e3c6b4951adca11e627b98a49376 (patch)
tree1cf0bc041d0d5a80a40c839f84a0386deb1bc174 /ext/vpopmail/php_vpopmail.h
parent35a1731c85aecdee18f5312456d75e48da321f5d (diff)
downloadphp-git-e7da11fd9393e3c6b4951adca11e627b98a49376.tar.gz
changed function names to be like vpopmail_add_user instead vpopmail_adduser
added vpopmail_error to report error string (vpopmail_errno global var) put exec functions back in with _ex (vpopmail_add_domain_ex) rewritten README to help users keep secure fixed protos to state bool instead void return type
Diffstat (limited to 'ext/vpopmail/php_vpopmail.h')
-rw-r--r--ext/vpopmail/php_vpopmail.h26
1 files changed, 19 insertions, 7 deletions
diff --git a/ext/vpopmail/php_vpopmail.h b/ext/vpopmail/php_vpopmail.h
index de6aaa6034..b14be7f8cd 100644
--- a/ext/vpopmail/php_vpopmail.h
+++ b/ext/vpopmail/php_vpopmail.h
@@ -39,19 +39,31 @@ PHP_RINIT_FUNCTION(vpopmail);
PHP_RSHUTDOWN_FUNCTION(vpopmail);
PHP_MINFO_FUNCTION(vpopmail);
-/* domain management */
-PHP_FUNCTION(vpopmail_adddomain);
-PHP_FUNCTION(vpopmail_deldomain);
-PHP_FUNCTION(vpopmail_addaliasdomain);
+/* domain management - lib call */
+PHP_FUNCTION(vpopmail_add_domain);
+PHP_FUNCTION(vpopmail_del_domain);
+PHP_FUNCTION(vpopmail_add_alias_domain);
+/* domain management - exec */
+PHP_FUNCTION(vpopmail_add_domain_ex);
+PHP_FUNCTION(vpopmail_del_domain_ex);
+PHP_FUNCTION(vpopmail_add_alias_domain_ex);
/* user management */
-PHP_FUNCTION(vpopmail_adduser);
-PHP_FUNCTION(vpopmail_deluser);
+PHP_FUNCTION(vpopmail_add_user);
+PHP_FUNCTION(vpopmail_del_user);
PHP_FUNCTION(vpopmail_passwd);
-PHP_FUNCTION(vpopmail_setuserquota);
+PHP_FUNCTION(vpopmail_set_user_quota);
PHP_FUNCTION(vpopmail_auth_user);
+/* error handling */
+PHP_FUNCTION(vpopmail_error);
+
+/* defines for vpopmail command line tool names */
+#define VPOPMAIL_ADDD "/vadddomain "
+#define VPOPMAIL_DELD "/vdeldomain "
+#define VPOPMAIL_ADAD "/vaddaliasdomain "
ZEND_BEGIN_MODULE_GLOBALS(vpopmail)
int vpopmail_open;
+ int vpopmail_errno;
ZEND_END_MODULE_GLOBALS(vpopmail)
#ifdef ZTS