]> granicus.if.org Git - php/commitdiff
- MFB: Added arginfo
authorFelipe Pena <felipe@php.net>
Fri, 27 Jun 2008 15:35:49 +0000 (15:35 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 27 Jun 2008 15:35:49 +0000 (15:35 +0000)
ext/wddx/wddx.c

index 4273c3b907ab62051be1b552b3dac16528a35687..e5af84d9d2f0f3088e06056d04d1905796981fd8 100644 (file)
@@ -102,16 +102,52 @@ typedef struct {
 
 static void php_wddx_process_data(void *user_data, const XML_Char *s, int len);
 
+/* {{{ arginfo */
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_wddx_serialize_value, 0, 0, 1)
+       ZEND_ARG_INFO(0, var)
+       ZEND_ARG_INFO(0, comment)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_wddx_serialize_vars, 0, 0, 1)
+       ZEND_ARG_INFO(0, var_name)
+       ZEND_ARG_INFO(0, ...)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_wddx_serialize_start, 0, 0, 0)
+       ZEND_ARG_INFO(0, comment)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_wddx_packet_end, 0, 0, 1)
+       ZEND_ARG_INFO(0, packet_id)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_wddx_add_vars, 0, 0, 2)
+       ZEND_ARG_INFO(0, packet_id)
+       ZEND_ARG_INFO(0, var_name)
+       ZEND_ARG_INFO(0, ...)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_wddx_unserialize, 0, 0, 1)
+       ZEND_ARG_INFO(0, packet)
+ZEND_END_ARG_INFO()
+/* }}} */
+
 /* {{{ wddx_functions[]
  */
 const zend_function_entry wddx_functions[] = {
-       PHP_FE(wddx_serialize_value, NULL)
-       PHP_FE(wddx_serialize_vars, NULL)
-       PHP_FE(wddx_packet_start, NULL)
-       PHP_FE(wddx_packet_end, NULL)
-       PHP_FE(wddx_add_vars, NULL)
-       PHP_FE(wddx_unserialize, NULL)
-       PHP_FALIAS(wddx_deserialize, wddx_unserialize, NULL)
+       PHP_FE(wddx_serialize_value, arginfo_wddx_serialize_value)
+       PHP_FE(wddx_serialize_vars,     arginfo_wddx_serialize_vars)
+       PHP_FE(wddx_packet_start,       arginfo_wddx_serialize_start)
+       PHP_FE(wddx_packet_end,         arginfo_wddx_packet_end)
+       PHP_FE(wddx_add_vars,           arginfo_wddx_add_vars)
+       PHP_FE(wddx_unserialize,        arginfo_wddx_unserialize)
+       PHP_FALIAS(wddx_deserialize, wddx_unserialize, arginfo_wddx_unserialize)
        {NULL, NULL, NULL}
 };
 /* }}} */