]> granicus.if.org Git - php/commitdiff
more syncing with libmcve-3.0
authorBrad House <bradmssw@php.net>
Wed, 7 Aug 2002 14:29:16 +0000 (14:29 +0000)
committerBrad House <bradmssw@php.net>
Wed, 7 Aug 2002 14:29:16 +0000 (14:29 +0000)
ext/mcve/mcve.c
ext/mcve/php_mcve.h

index 0c243a48a03801b062d9aaeba1d398ab36f8908e..f586490baa6dc414d3384aacde0bd0da95c7228d 100644 (file)
@@ -48,6 +48,7 @@ function_entry php_mcve_functions[] = {
        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 @@ function_entry php_mcve_functions[] = {
        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)
@@ -2077,6 +2082,91 @@ PHP_FUNCTION(mcve_edituser)
 }
 /* }}} */
 
+
+/* {{{ 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);
+       }
+}
+/* }}} */
+
 /* END OF MCVE PHP EXTENSION */
 
 /*
index 6847538c36cca2c3b25667a3aacd17da590db8ef..59bff8ef3b1be17e36d157db2723b1f58765abe3 100644 (file)
@@ -31,6 +31,7 @@ PHP_FUNCTION(mcve_destroyconn);
 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_ub);
 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);