summaryrefslogtreecommitdiff
path: root/ext/vpopmail/php_vpopmail.h
diff options
context:
space:
mode:
authorDavid Croft <david@php.net>2001-01-15 02:14:13 +0000
committerDavid Croft <david@php.net>2001-01-15 02:14:13 +0000
commit5951b8063a494208034d26819eb71e2171112ffe (patch)
treecc0727be65ef5ef448345d9a0e055b519c116a0c /ext/vpopmail/php_vpopmail.h
parentc6ffb5389e75659134a9cd7588b7002ec26b9c5e (diff)
downloadphp-git-5951b8063a494208034d26819eb71e2171112ffe.tar.gz
restored vadddomain/vdeldomain to use library functions rather than invoking
vpopmail executables implemented vaddaliasdomain natively global variable to store whether vpopmail was used and only vclose() if necessary return the functions to returning true/false for success/failure rather than some arbitrary vpopmail return value return the functions to not doing everything at once as you then lose fine-grain control over its operation change C++ comments to C
Diffstat (limited to 'ext/vpopmail/php_vpopmail.h')
-rw-r--r--ext/vpopmail/php_vpopmail.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/ext/vpopmail/php_vpopmail.h b/ext/vpopmail/php_vpopmail.h
index d10786bfab..de6aaa6034 100644
--- a/ext/vpopmail/php_vpopmail.h
+++ b/ext/vpopmail/php_vpopmail.h
@@ -33,30 +33,26 @@ extern zend_module_entry vpopmail_module_entry;
#define PHP_VPOPMAIL_API
#endif
+PHP_MINIT_FUNCTION(vpopmail);
+PHP_MSHUTDOWN_FUNCTION(vpopmail);
+PHP_RINIT_FUNCTION(vpopmail);
PHP_RSHUTDOWN_FUNCTION(vpopmail);
PHP_MINFO_FUNCTION(vpopmail);
-// domain management
+/* domain management */
PHP_FUNCTION(vpopmail_adddomain);
PHP_FUNCTION(vpopmail_deldomain);
PHP_FUNCTION(vpopmail_addaliasdomain);
-// user management
+/* user management */
PHP_FUNCTION(vpopmail_adduser);
PHP_FUNCTION(vpopmail_deluser);
PHP_FUNCTION(vpopmail_passwd);
PHP_FUNCTION(vpopmail_setuserquota);
PHP_FUNCTION(vpopmail_auth_user);
-// defines for proper operation
-#define VPOPMAIL_ADDD "/vadddomain "
-#define VPOPMAIL_DELD "/vdeldomain "
-#define VPOPMAIL_ADAD "/vaddaliasdomain "
-
-/* removed by intent - will add upon need
ZEND_BEGIN_MODULE_GLOBALS(vpopmail)
- int global_variable;
+ int vpopmail_open;
ZEND_END_MODULE_GLOBALS(vpopmail)
-*/
#ifdef ZTS
#define VPOPMAILG(v) (vpopmail_globals->v)