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;
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)
}
}
+
+/* {{{ 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;
efree(service);
efree(user);
}
+/* }}} */
+
static void cyrus_generic_callback(struct imclient *client,
void *rock,
}
-
+/* {{{ proto bool cyrus_bind( resource connection, array callbacks)
+ Bind callbacks to a Cyrus IMAP connection */
PHP_FUNCTION(cyrus_bind)
{
zval **z_conn;
RETURN_TRUE;
}
+/* }}} */
+/* proto bool cyrus_unbind( resource connection, string trigger_name)
+ Unbind ... */
PHP_FUNCTION(cyrus_unbind)
{
zval **z_conn;
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;
RETURN_TRUE;
}
+/* }}} */
-
+/* {{{ proto bool cyrus_close( resource connection)
+ Close connection to a cyrus server */
PHP_FUNCTION(cyrus_close)
{
zval **z_conn;
RETURN_TRUE;
}
-
+/* }}} */
#endif