cvs: php4 /ext/cyrus cyrus.c

From: Date: Wed, 05 Dec 2001 22:38:50 +0000
Subject: cvs: php4 /ext/cyrus cyrus.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8438@lists.php.net to get a copy of this message
hholzgra Wed Dec 5 17:38:50 2001 EDT Modified files: /php4/ext/cyrus cyrus.c Log: proto fixes Index: php4/ext/cyrus/cyrus.c diff -u php4/ext/cyrus/cyrus.c:1.4 php4/ext/cyrus/cyrus.c:1.5 --- php4/ext/cyrus/cyrus.c:1.4 Thu Oct 11 19:32:39 2001 +++ php4/ext/cyrus/cyrus.c Wed Dec 5 17:38:49 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: cyrus.c,v 1.4 2001/10/11 23:32:39 ssb Exp $ */ +/* $Id: cyrus.c,v 1.5 2001/12/05 22:38:49 hholzgra Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -111,6 +111,8 @@ php_error(E_ERROR, s); } +/* {{{ proto resource cyrus_connect([ string host [, string port [, int flags]]]) + Connect to a Cyrus IMAP server */ PHP_FUNCTION(cyrus_connect) { zval **z_host; @@ -176,6 +178,8 @@ ZEND_REGISTER_RESOURCE(return_value, conn, le_cyrus); conn->id = Z_LVAL_P(return_value); } +/* }}} */ + static void cyrus_capable_callback(struct imclient *client, void *rock, struct imclient_reply *reply) @@ -197,6 +201,9 @@ } } + +/* {{{ proto bool cyrus_authenticate( resource connection [, string mechlist [, string service [, string user [, int minssf [, int maxssf]]]]]) + Authenticate agaings a Cyrus IMAP server */ PHP_FUNCTION(cyrus_authenticate) { zval **z_conn; @@ -314,6 +321,8 @@ efree(service); efree(user); } +/* }}} */ + static void cyrus_generic_callback(struct imclient *client, void *rock, @@ -366,7 +375,8 @@ } - +/* {{{ proto bool cyrus_bind( resource connection, array callbacks) + Bind callbacks to a Cyrus IMAP connection */ PHP_FUNCTION(cyrus_bind) { zval **z_conn; @@ -431,7 +441,10 @@ RETURN_TRUE; } +/* }}} */ +/* proto bool cyrus_unbind( resource connection, string trigger_name) + Unbind ... */ PHP_FUNCTION(cyrus_unbind) { zval **z_conn; @@ -450,7 +463,10 @@ RETURN_TRUE; } +/* }}} */ +/* {{{ proto bool cyrus_qzuery( resource connection, string query) + Send a query to a Cyrus IMAP server */ PHP_FUNCTION(cyrus_query) { zval **z_conn; @@ -468,8 +484,10 @@ RETURN_TRUE; } +/* }}} */ - +/* {{{ proto bool cyrus_close( resource connection) + Close connection to a cyrus server */ PHP_FUNCTION(cyrus_close) { zval **z_conn; @@ -485,7 +503,7 @@ RETURN_TRUE; } - +/* }}} */ #endif

« previous php.cvs (#8438) next »