Skip to content

Commit

Permalink
added arginfo
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb committed Oct 24, 2008
1 parent e072b5b commit 687e6ba
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions inotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,47 @@
#include "ext/standard/info.h"
#include "php_inotify.h"

/* {{{ arginfo */
static
ZEND_BEGIN_ARG_INFO_EX(arginfo_inotify_init, 0, ZEND_RETURN_VALUE, 0)
ZEND_END_ARG_INFO()

static
ZEND_BEGIN_ARG_INFO_EX(arginfo_inotify_add_watch, 0, ZEND_RETURN_VALUE, 3)
ZEND_ARG_INFO(0, inotify_instance)
ZEND_ARG_INFO(0, pathname)
ZEND_ARG_INFO(0, mask)
ZEND_END_ARG_INFO()

static
ZEND_BEGIN_ARG_INFO_EX(arginfo_inotify_rm_watch, 0, ZEND_RETURN_VALUE, 2)
ZEND_ARG_INFO(0, inotify_instance)
ZEND_ARG_INFO(0, mask)
ZEND_END_ARG_INFO()

static
ZEND_BEGIN_ARG_INFO_EX(arginfo_inotify_queue_len, 0, ZEND_RETURN_VALUE, 1)
ZEND_ARG_INFO(0, inotify_instance)
ZEND_END_ARG_INFO()

static
ZEND_BEGIN_ARG_INFO_EX(arginfo_inotify_read, 0, ZEND_RETURN_VALUE, 1)
ZEND_ARG_INFO(0, inotify_instance)
ZEND_END_ARG_INFO()
/* }}} */

/* {{{ inotify_functions[]
*/
#if ZEND_MODULE_API_NO >= 20071006
const
#endif
zend_function_entry inotify_functions[] = {

PHP_FE(inotify_init, NULL)
PHP_FE(inotify_add_watch, NULL)
PHP_FE(inotify_rm_watch, NULL)
PHP_FE(inotify_queue_len, NULL)
PHP_FE(inotify_read, NULL)
PHP_FE(inotify_init, arginfo_inotify_init)
PHP_FE(inotify_add_watch, arginfo_inotify_add_watch)
PHP_FE(inotify_rm_watch, arginfo_inotify_rm_watch)
PHP_FE(inotify_queue_len, arginfo_inotify_queue_len)
PHP_FE(inotify_read, arginfo_inotify_read)
{NULL, NULL, NULL} /* Must be the last line in inotify_functions[] */
};
/* }}} */
Expand Down

0 comments on commit 687e6ba

Please sign in to comment.