summaryrefslogtreecommitdiff
path: root/ext/sysvmsg/sysvmsg.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-06-30 14:53:17 +0000
committerFelipe Pena <felipe@php.net>2008-06-30 14:53:17 +0000
commite7fc9029e63edd6e7b8c81bbea5285c2b1d12bfb (patch)
treebbc95ec73d55717c24c6de72b57d6473ef780f45 /ext/sysvmsg/sysvmsg.c
parent44e0c9e4f602118d75f153e6fb1b29b7b601ad6a (diff)
downloadphp-git-e7fc9029e63edd6e7b8c81bbea5285c2b1d12bfb.tar.gz
- Added arginfo
Diffstat (limited to 'ext/sysvmsg/sysvmsg.c')
-rw-r--r--ext/sysvmsg/sysvmsg.c79
1 files changed, 54 insertions, 25 deletions
diff --git a/ext/sysvmsg/sysvmsg.c b/ext/sysvmsg/sysvmsg.c
index 114c5c640a..ebd68679bb 100644
--- a/ext/sysvmsg/sysvmsg.c
+++ b/ext/sysvmsg/sysvmsg.c
@@ -39,40 +39,69 @@
/* True global resources - no need for thread safety here */
static int le_sysvmsg;
+/* {{{ arginfo */
static
- ZEND_BEGIN_ARG_INFO(sixth_arg_force_ref, 0)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(1)
- ZEND_END_ARG_INFO();
+ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_get_queue, 0, 0, 1)
+ ZEND_ARG_INFO(0, key)
+ ZEND_ARG_INFO(0, perms)
+ZEND_END_ARG_INFO()
static
- ZEND_BEGIN_ARG_INFO(msg_receive_args_force_ref, 0)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(1)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(1)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(0)
- ZEND_ARG_PASS_INFO(1)
- ZEND_END_ARG_INFO();
+ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_send, 0, 0, 3)
+ ZEND_ARG_INFO(0, queue)
+ ZEND_ARG_INFO(0, msgtype)
+ ZEND_ARG_INFO(0, message)
+ ZEND_ARG_INFO(0, serialize)
+ ZEND_ARG_INFO(0, blocking)
+ ZEND_ARG_INFO(1, errorcode)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_receive, 0, 0, 5)
+ ZEND_ARG_INFO(0, queue)
+ ZEND_ARG_INFO(0, desiredmsgtype)
+ ZEND_ARG_INFO(1, msgtype)
+ ZEND_ARG_INFO(0, maxsize)
+ ZEND_ARG_INFO(1, message)
+ ZEND_ARG_INFO(0, unserialize)
+ ZEND_ARG_INFO(0, flags)
+ ZEND_ARG_INFO(1, errorcode)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_remove_queue, 0, 0, 1)
+ ZEND_ARG_INFO(0, queue)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_stat_queue, 0, 0, 1)
+ ZEND_ARG_INFO(0, queue)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_set_queue, 0, 0, 2)
+ ZEND_ARG_INFO(0, queue)
+ ZEND_ARG_INFO(0, data)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_msg_queue_exists, 0, 0, 1)
+ ZEND_ARG_INFO(0, key)
+ZEND_END_ARG_INFO()
+/* }}} */
/* {{{ sysvmsg_functions[]
*
* Every user visible function must have an entry in sysvmsg_functions[].
*/
const zend_function_entry sysvmsg_functions[] = {
- PHP_FE(msg_get_queue, NULL)
- PHP_FE(msg_send, sixth_arg_force_ref)
- PHP_FE(msg_receive, msg_receive_args_force_ref)
- PHP_FE(msg_remove_queue, NULL)
- PHP_FE(msg_stat_queue, NULL)
- PHP_FE(msg_set_queue, NULL)
- PHP_FE(msg_queue_exists, NULL)
+ PHP_FE(msg_get_queue, arginfo_msg_get_queue)
+ PHP_FE(msg_send, arginfo_msg_send)
+ PHP_FE(msg_receive, arginfo_msg_receive)
+ PHP_FE(msg_remove_queue, arginfo_msg_remove_queue)
+ PHP_FE(msg_stat_queue, arginfo_msg_stat_queue)
+ PHP_FE(msg_set_queue, arginfo_msg_set_queue)
+ PHP_FE(msg_queue_exists, arginfo_msg_queue_exists)
{NULL, NULL, NULL} /* Must be the last line in sysvmsg_functions[] */
};
/* }}} */