cvs: php4 /ext/mcve mcve.c php_mcve.h

From: Date: Wed, 07 Aug 2002 14:29:15 +0000
Subject: cvs: php4 /ext/mcve mcve.c php_mcve.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13186@lists.php.net to get a copy of this message
bradmssw Wed Aug 7 10:29:15 2002 EDT Modified files: /php4/ext/mcve mcve.c php_mcve.h Log: more syncing with libmcve-3.0 Index: php4/ext/mcve/mcve.c diff -u php4/ext/mcve/mcve.c:1.8 php4/ext/mcve/mcve.c:1.9 --- php4/ext/mcve/mcve.c:1.8 Tue Aug 6 12:36:03 2002 +++ php4/ext/mcve/mcve.c Wed Aug 7 10:29:15 2002 @@ -48,6 +48,7 @@ PHP_FE(mcve_setip, NULL) PHP_FE(mcve_setssl, NULL) PHP_FE(mcve_settimeout, NULL) + PHP_FE(mcve_setblocking, NULL) PHP_FE(mcve_verifyconnection, NULL) PHP_FE(mcve_verifysslcert, NULL) PHP_FE(mcve_maxconntimeout, NULL) @@ -97,6 +98,10 @@ PHP_FE(mcve_ub, NULL) PHP_FE(mcve_chkpwd, NULL) PHP_FE(mcve_bt, NULL) + PHP_FE(mcve_uwait, NULL) + PHP_FE(mcve_text_code, NULL) + PHP_FE(mcve_text_avs, NULL) + PHP_FE(mcve_text_cv, NULL) /* Administrator Functions */ PHP_FE(mcve_chngpwd, NULL) PHP_FE(mcve_listusers, NULL) @@ -2074,6 +2079,91 @@ retval = MCVE_EditUser(conn, Z_STRVAL_PP(arg2), usersetup); RETURN_LONG(retval); +} +/* }}} */ + + +/* {{{ proto int mcve_uwait(long microsecs) + Wait x microsecs */ +PHP_FUNCTION(mcve_uwait) +{ + long retval; + zval **arg; + + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) + WRONG_PARAM_COUNT; + + convert_to_long_ex(arg); + + retval = MCVE_uwait(Z_LVAL_PP(arg)); + + RETURN_LONG(retval); +} +/* }}} */ + +/* {{{ proto string mcve_text_code(string code) + Get a textual representation of the return_code */ +PHP_FUNCTION(mcve_text_code) +{ + char *retval; + zval **arg; + + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) + WRONG_PARAM_COUNT; + + convert_to_long_ex(arg); + + retval = MCVE_TEXT_AVS(Z_LVAL_PP(arg)); + + if (retval == NULL) { + RETVAL_STRING("",1); + } else { + RETVAL_STRING(retval, 1); + } +} +/* }}} */ + +/* {{{ proto string mcve_text_avs(string code) + Get a textual representation of the return_avs */ +PHP_FUNCTION(mcve_text_avs) +{ + char *retval; + zval **arg; + + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) + WRONG_PARAM_COUNT; + + convert_to_long_ex(arg); + + retval = MCVE_TEXT_AVS(Z_LVAL_PP(arg)); + + if (retval == NULL) { + RETVAL_STRING("",1); + } else { + RETVAL_STRING(retval, 1); + } +} +/* }}} */ + +/* {{{ proto string mcve_text_cv(int code) + Get a textual representation of the return_cv */ +PHP_FUNCTION(mcve_text_cv) +{ + char *retval; + zval **arg; + + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) + WRONG_PARAM_COUNT; + + convert_to_long_ex(arg); + + retval = MCVE_TEXT_CV(Z_LVAL_PP(arg)); + + if (retval == NULL) { + RETVAL_STRING("",1); + } else { + RETVAL_STRING(retval, 1); + } } /* }}} */ Index: php4/ext/mcve/php_mcve.h diff -u php4/ext/mcve/php_mcve.h:1.3 php4/ext/mcve/php_mcve.h:1.4 --- php4/ext/mcve/php_mcve.h:1.3 Tue Aug 6 12:36:03 2002 +++ php4/ext/mcve/php_mcve.h Wed Aug 7 10:29:15 2002 @@ -31,6 +31,7 @@ PHP_FUNCTION(mcve_setdropfile); PHP_FUNCTION(mcve_setip); PHP_FUNCTION(mcve_setssl); +PHP_FUNCTION(mcve_setblocking); PHP_FUNCTION(mcve_settimeout); PHP_FUNCTION(mcve_verifyconnection); PHP_FUNCTION(mcve_verifysslcert); @@ -81,7 +82,10 @@ PHP_FUNCTION(mcve_gl); PHP_FUNCTION(mcve_chkpwd); PHP_FUNCTION(mcve_bt); - +PHP_FUNCTION(mcve_uwait); +PHP_FUNCTION(mcve_text_code); +PHP_FUNCTION(mcve_text_avs); +PHP_FUNCTION(mcve_text_cv); PHP_FUNCTION(mcve_chngpwd); PHP_FUNCTION(mcve_listusers); PHP_FUNCTION(mcve_adduser);

« previous php.cvs (#13186) next »