PHP libinotifytools wrapper freewizard Du Song freewizard@gmail.com developer 0.1 2007-11-29 stable The sample extension is not threadsafe. 0.1 2007-11-29 alpha First alpha version
*/ ]]> bool inotifytools_initialize() RETURN_BOOL(inotifytools_initialize()); echo "OK"; int inotifytools_error() RETURN_LONG(inotifytools_error()); echo "OK"; string inotifytools_event_to_str(int event) RETURN_STRING(inotifytools_event_to_str(event), 1); echo "OK"; int inotifytools_watch_recursively(string path, int event) RETURN_LONG(inotifytools_watch_recursively(path, event)); echo "OK"; mixed inotifytools_next_event(int timeout) struct inotify_event *ev; ev = inotifytools_next_event(timeout); if (!ev) RETURN_NULL(); array_init(return_value); add_assoc_long(return_value, "wd", ev->wd); add_assoc_long(return_value, "mask", ev->mask); add_assoc_long(return_value, "cookie", ev->cookie); add_assoc_stringl(return_value, "name", ev->name, ev->len, 1); add_assoc_long(return_value, "wd", ev->wd); echo "OK";