pecl-ev / fe.c

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
/*
   +----------------------------------------------------------------------+
   | PHP Version 5                                                        |
   +----------------------------------------------------------------------+
   | Copyright (c) 1997-2013 The PHP Group                                |
   +----------------------------------------------------------------------+
   | This source file is subject to version 3.01 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available through the world-wide-web at the following url:           |
   | http://www.php.net/license/3_01.txt                                  |
   | If you did not receive a copy of the PHP license and are unable to   |
   | obtain it through the world-wide-web, please send a note to          |
   | license@php.net so we can mail you a copy immediately.               |
   +----------------------------------------------------------------------+
   | Author: Ruslan Osmanov <osmanov@php.net>                             |
   +----------------------------------------------------------------------+
*/

#include "fe.h"

/* {{{ ARGINFO */

/* TODO: Refactor: some arginfoes can be identical,
 * e.g. EvLoop::io() and EvIo::__construct() */

ZEND_BEGIN_ARG_INFO(arginfo_ev__void, 0)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_feed_signal_event, 0, 0, 1)
	ZEND_ARG_INFO(0, signum)
ZEND_END_ARG_INFO();

/* {{{ EvLoop */

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_default_loop, 0, 0, 0)
	ZEND_ARG_INFO(0, flags)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, io_interval)
	ZEND_ARG_INFO(0, timeout_interval)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_sleep, 0, 0, 1)
	ZEND_ARG_INFO(0, seconds)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_run, 0, 0, 0)
	ZEND_ARG_INFO(0, flags)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_stop, 0, 0, 0)
	ZEND_ARG_INFO(0, how)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_feed_signal, 0, 0, 1)
	ZEND_ARG_INFO(0, signum)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_loop_io, 0, 0, 3)
	ZEND_ARG_INFO(0, fd)
	ZEND_ARG_INFO(0, events)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_loop_timer, 0, 0, 3)
	ZEND_ARG_INFO(0, after)
	ZEND_ARG_INFO(0, repeat)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();

#if EV_PERIODIC_ENABLE
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_loop_periodic, 0, 0, 3)
	ZEND_ARG_INFO(0, offset)
	ZEND_ARG_INFO(0, interval)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
#endif
#if EV_SIGNAL_ENABLE
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_loop_signal, 0, 0, 2)
	ZEND_ARG_INFO(0, signum)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
#endif
#if EV_CHILD_ENABLE
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_loop_child, 0, 0, 3)
	ZEND_ARG_INFO(0, pid)
	ZEND_ARG_INFO(0, trace)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
#endif
#if EV_STAT_ENABLE
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_loop_stat, 0, 0, 3)
	ZEND_ARG_INFO(0, path)
	ZEND_ARG_INFO(0, interval)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
#endif
#if EV_IDLE_ENABLE
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_loop_idle, 0, 0, 1)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
#endif
#if EV_CHECK_ENABLE
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_loop_check, 0, 0, 1)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
#endif
#if EV_PREPARE_ENABLE
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_loop_prepare, 0, 0, 1)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
#endif
#if EV_EMBED_ENABLE
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_loop_embed, 0, 0, 1)
	ZEND_ARG_INFO(0, other)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
#endif
#if EV_FORK_ENABLE
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_loop_fork, 0, 0, 1)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
#endif

/* EvLoop }}} */

/* {{{ EvWatcher */


ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_watcher_invoke, 0, 0, 1)
	ZEND_ARG_INFO(0, revents)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_watcher_feed, 0, 0, 1)
	ZEND_ARG_INFO(0, revents)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_watcher_keepalive, 0, 0, 0)
	ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_watcher_set_callback, 0, 0, 1)
	ZEND_ARG_INFO(0, callback)
ZEND_END_ARG_INFO();

/* EvWatcher }}} */

/* {{{ EvIo */
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_io, 0, 0, 3)
	ZEND_ARG_INFO(0, fd)
	ZEND_ARG_INFO(0, events)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_io_set, 0, 0, 2)
	ZEND_ARG_INFO(0, fd)
	ZEND_ARG_INFO(0, events)
ZEND_END_ARG_INFO();
/* EvIo }}} */

/* {{{ EvTimer */
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_timer, 0, 0, 3)
	ZEND_ARG_INFO(0, after)
	ZEND_ARG_INFO(0, repeat)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_timer_set, 0, 0, 2)
	ZEND_ARG_INFO(0, after)
	ZEND_ARG_INFO(0, repeat)
ZEND_END_ARG_INFO();
/* }}} */

#if EV_PERIODIC_ENABLE
/* {{{ EvPeriodic */
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_periodic, 0, 0, 4)
	ZEND_ARG_INFO(0, offset)
	ZEND_ARG_INFO(0, interval)
	ZEND_ARG_INFO(0, reschedule_cb)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_periodic_set, 0, 0, 2)
	ZEND_ARG_INFO(0, offset)
	ZEND_ARG_INFO(0, interval)
ZEND_END_ARG_INFO();
/* }}} */
#endif

#if EV_SIGNAL_ENABLE
/* {{{ EvSignal*/
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_signal, 0, 0, 2)
	ZEND_ARG_INFO(0, signum)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_signal_set, 0, 0, 1)
	ZEND_ARG_INFO(0, signum)
ZEND_END_ARG_INFO();
/* }}} */
#endif

#if EV_CHILD_ENABLE
/* {{{ EvChild*/
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_child, 0, 0, 3)
	ZEND_ARG_INFO(0, pid)
	ZEND_ARG_INFO(0, trace)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_child_set, 0, 0, 2)
	ZEND_ARG_INFO(0, pid)
	ZEND_ARG_INFO(0, trace)
ZEND_END_ARG_INFO();
/* }}} */
#endif

#if EV_STAT_ENABLE
/* {{{ EvStat */
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_stat, 0, 0, 3)
	ZEND_ARG_INFO(0, path)
	ZEND_ARG_INFO(0, interval)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_stat_set, 0, 0, 2)
	ZEND_ARG_INFO(0, path)
	ZEND_ARG_INFO(0, interval)
ZEND_END_ARG_INFO();
/* }}} */
#endif

#if EV_IDLE_ENABLE
/* {{{ EvIdle */
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_idle, 0, 0, 1)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
/* }}} */
#endif

#if EV_CHECK_ENABLE
/* {{{ EvCheck */
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_check, 0, 0, 1)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
/* }}} */
#endif

#if EV_PREPARE_ENABLE
/* {{{ EvPrepare */
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_prepare, 0, 0, 1)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
/* }}} */
#endif

#if EV_EMBED_ENABLE
/* {{{ EvEmbed */
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_embed, 0, 0, 1)
	ZEND_ARG_INFO(0, other)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();

ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_embed_set, 0, 0, 1)
	ZEND_ARG_INFO(0, other)
ZEND_END_ARG_INFO();
/* }}} */
#endif

#if EV_FORK_ENABLE
/* {{{ EvFork */
ZEND_BEGIN_ARG_INFO_EX(arginfo_ev_fork, 0, 0, 1)
	ZEND_ARG_INFO(0, callback)
	ZEND_ARG_INFO(0, data)
	ZEND_ARG_INFO(0, priority)
ZEND_END_ARG_INFO();
/* }}} */
#endif

/* ARGINFO }}} */

/* {{{ ev_class_entry_functions */
const zend_function_entry ev_class_entry_functions[] = {
	PHP_ME(Ev, supportedBackends,   arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, recommendedBackends, arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, embeddableBackends,  arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, sleep,               arginfo_ev_sleep,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, time,                arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, feedSignal,          arginfo_ev_feed_signal,       ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, feedSignalEvent,     arginfo_ev_feed_signal_event, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, run,                 arginfo_ev_run,               ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, now,                 arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, stop,                arginfo_ev_stop,              ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, iteration,           arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, depth,               arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, verify,              arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, backend,             arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, nowUpdate,           arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, suspend,             arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	PHP_ME(Ev, resume,              arginfo_ev__void,             ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)

	{ NULL, NULL, NULL }
};
/* }}} */

/* {{{ ev_loop_class_entry_functions */
const zend_function_entry ev_loop_class_entry_functions[] = {
	PHP_ME(EvLoop, __construct,   arginfo_ev_default_loop, ZEND_ACC_PUBLIC  | ZEND_ACC_CTOR)
	PHP_ME(EvLoop, defaultLoop,   arginfo_ev_default_loop, ZEND_ACC_PUBLIC  | ZEND_ACC_STATIC)
	PHP_ME(EvLoop, loopFork,      arginfo_ev__void,        ZEND_ACC_PUBLIC)
	PHP_ME(EvLoop, verify,        arginfo_ev__void,        ZEND_ACC_PUBLIC)
	PHP_ME(EvLoop, invokePending, arginfo_ev__void,        ZEND_ACC_PUBLIC)
	PHP_ME(EvLoop, nowUpdate,     arginfo_ev__void,        ZEND_ACC_PUBLIC)
	PHP_ME(EvLoop, suspend,       arginfo_ev__void,        ZEND_ACC_PUBLIC)
	PHP_ME(EvLoop, resume,        arginfo_ev__void,        ZEND_ACC_PUBLIC)
	PHP_ME(EvLoop, backend,       arginfo_ev__void,        ZEND_ACC_PUBLIC)
	PHP_ME(EvLoop, now,           arginfo_ev__void,        ZEND_ACC_PUBLIC)
	PHP_ME(EvLoop, run,           arginfo_ev_run,          ZEND_ACC_PUBLIC)
	PHP_ME(EvLoop, stop,          arginfo_ev_stop,         ZEND_ACC_PUBLIC)
	PHP_ME(EvLoop, io,            arginfo_ev_loop_io,      ZEND_ACC_PUBLIC | ZEND_ACC_FINAL)
	PHP_ME(EvLoop, timer,         arginfo_ev_loop_timer,   ZEND_ACC_PUBLIC | ZEND_ACC_FINAL)
#if EV_PERIODIC_ENABLE
	PHP_ME(EvLoop, periodic,      arginfo_ev_loop_periodic,     ZEND_ACC_PUBLIC | ZEND_ACC_FINAL)
#endif
#if EV_SIGNAL_ENABLE
	PHP_ME(EvLoop, signal,        arginfo_ev_loop_signal,       ZEND_ACC_PUBLIC | ZEND_ACC_FINAL)
#endif
#if EV_CHILD_ENABLE
	PHP_ME(EvLoop, child,         arginfo_ev_loop_child,        ZEND_ACC_PUBLIC | ZEND_ACC_FINAL)
#endif
#if EV_STAT_ENABLE
	PHP_ME(EvLoop, stat,          arginfo_ev_loop_stat,         ZEND_ACC_PUBLIC | ZEND_ACC_FINAL)
#endif
#if EV_IDLE_ENABLE
	PHP_ME(EvLoop, idle,          arginfo_ev_loop_idle,         ZEND_ACC_PUBLIC | ZEND_ACC_FINAL)
#endif
#if EV_CHECK_ENABLE
	PHP_ME(EvLoop, check,         arginfo_ev_loop_check,        ZEND_ACC_PUBLIC | ZEND_ACC_FINAL)
#endif
#if EV_PREPARE_ENABLE
	PHP_ME(EvLoop, prepare,       arginfo_ev_loop_prepare,      ZEND_ACC_PUBLIC | ZEND_ACC_FINAL)
#endif
#if EV_EMBED_ENABLE
	PHP_ME(EvLoop, embed,         arginfo_ev_loop_embed,        ZEND_ACC_PUBLIC | ZEND_ACC_FINAL)
#endif
#if EV_FORK_ENABLE
	PHP_ME(EvLoop, fork,          arginfo_ev_loop_fork,         ZEND_ACC_PUBLIC | ZEND_ACC_FINAL)
#endif

	{ NULL, NULL, NULL }
};
/* }}} */

/* {{{ ev_watcher_class_entry_functions */
const zend_function_entry ev_watcher_class_entry_functions[] = {
	PHP_ABSTRACT_ME(EvWatcher, __construct, NULL)

	PHP_ME(EvWatcher, start,       arginfo_ev__void,                ZEND_ACC_PUBLIC)
	PHP_ME(EvWatcher, stop,        arginfo_ev__void,                ZEND_ACC_PUBLIC)
	PHP_ME(EvWatcher, clear,       arginfo_ev__void,                ZEND_ACC_PUBLIC)
	PHP_ME(EvWatcher, invoke,      arginfo_ev_watcher_invoke,       ZEND_ACC_PUBLIC)
	PHP_ME(EvWatcher, feed,        arginfo_ev_watcher_feed,         ZEND_ACC_PUBLIC)
	PHP_ME(EvWatcher, getLoop,     arginfo_ev__void,                ZEND_ACC_PUBLIC)
	PHP_ME(EvWatcher, keepalive,   arginfo_ev_watcher_keepalive,    ZEND_ACC_PUBLIC)
	PHP_ME(EvWatcher, setCallback, arginfo_ev_watcher_set_callback, ZEND_ACC_PUBLIC)

	{ NULL, NULL, NULL }
};
/* }}} */

/* {{{ ev_io_class_entry_functions */
const zend_function_entry ev_io_class_entry_functions[] = {
	PHP_ME(EvIo, __construct,   arginfo_ev_io,     ZEND_ACC_PUBLIC  | ZEND_ACC_CTOR)
	PHP_ME(EvIo, set,           arginfo_ev_io_set, ZEND_ACC_PUBLIC)
	PHP_ME(EvIo, createStopped, arginfo_ev_io,     ZEND_ACC_PUBLIC  | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	{ NULL, NULL, NULL }
};
/* }}} */

/* {{{ ev_timer_class_entry_functions */
const zend_function_entry ev_timer_class_entry_functions[] = {
	PHP_ME(EvTimer, __construct,   arginfo_ev_timer,     ZEND_ACC_PUBLIC  | ZEND_ACC_CTOR)
	PHP_ME(EvTimer, set,           arginfo_ev_timer_set, ZEND_ACC_PUBLIC)
	PHP_ME(EvTimer, again,         arginfo_ev__void,     ZEND_ACC_PUBLIC)
	PHP_ME(EvTimer, createStopped, arginfo_ev_timer,     ZEND_ACC_PUBLIC  | ZEND_ACC_STATIC | ZEND_ACC_FINAL)

	{ NULL, NULL, NULL }
};
/* }}} */

#if EV_PERIODIC_ENABLE
/* {{{ ev_periodic_class_entry_functions */
const zend_function_entry ev_periodic_class_entry_functions[] = {
	PHP_ME(EvPeriodic, __construct,   arginfo_ev_periodic,     ZEND_ACC_PUBLIC  | ZEND_ACC_CTOR)
	PHP_ME(EvPeriodic, set,           arginfo_ev_periodic_set, ZEND_ACC_PUBLIC)
	PHP_ME(EvPeriodic, again,         arginfo_ev__void,        ZEND_ACC_PUBLIC)
	PHP_ME(EvPeriodic, at,            arginfo_ev__void,        ZEND_ACC_PUBLIC)
	PHP_ME(EvPeriodic, createStopped, arginfo_ev_periodic,     ZEND_ACC_PUBLIC  | ZEND_ACC_STATIC | ZEND_ACC_FINAL)

	{ NULL, NULL, NULL }
};
/* }}} */
#endif

#if EV_SIGNAL_ENABLE
/* {{{ ev_signal_class_entry_functions */
const zend_function_entry ev_signal_class_entry_functions[] = {
	PHP_ME(EvSignal, __construct,   arginfo_ev_signal,     ZEND_ACC_PUBLIC  | ZEND_ACC_CTOR)
	PHP_ME(EvSignal, set,           arginfo_ev_signal_set, ZEND_ACC_PUBLIC)
	PHP_ME(EvSignal, createStopped, arginfo_ev_signal,     ZEND_ACC_PUBLIC  | ZEND_ACC_STATIC | ZEND_ACC_FINAL)

	{ NULL, NULL, NULL }
};
/* }}} */
#endif

#if EV_CHILD_ENABLE
/* {{{ ev_child_class_entry_functions */
const zend_function_entry ev_child_class_entry_functions[] = {
	PHP_ME(EvChild, __construct,   arginfo_ev_child,     ZEND_ACC_PUBLIC  | ZEND_ACC_CTOR)
	PHP_ME(EvChild, set,           arginfo_ev_child_set, ZEND_ACC_PUBLIC)
	PHP_ME(EvChild, createStopped, arginfo_ev_child,     ZEND_ACC_PUBLIC  | ZEND_ACC_STATIC | ZEND_ACC_FINAL)

	{ NULL, NULL, NULL }
};
/* }}} */
#endif

#if EV_STAT_ENABLE
/* {{{ ev_stat_class_entry_functions */
const zend_function_entry ev_stat_class_entry_functions[] = {
	PHP_ME(EvStat, __construct,   arginfo_ev_stat,     ZEND_ACC_PUBLIC  | ZEND_ACC_CTOR)
	PHP_ME(EvStat, set,           arginfo_ev_stat_set, ZEND_ACC_PUBLIC)
	PHP_ME(EvStat, attr,          arginfo_ev__void,    ZEND_ACC_PUBLIC)
	PHP_ME(EvStat, prev,          arginfo_ev__void,    ZEND_ACC_PUBLIC)
	PHP_ME(EvStat, stat,          arginfo_ev__void,    ZEND_ACC_PUBLIC)
	PHP_ME(EvStat, createStopped, arginfo_ev_stat,     ZEND_ACC_PUBLIC  | ZEND_ACC_STATIC | ZEND_ACC_FINAL)

	{ NULL, NULL, NULL }
};
/* }}} */
#endif

#if EV_IDLE_ENABLE
/* {{{ ev_idle_class_entry_functions */
const zend_function_entry ev_idle_class_entry_functions[] = {
	PHP_ME(EvIdle, __construct,   arginfo_ev_idle, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
	PHP_ME(EvIdle, createStopped, arginfo_ev_idle, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	{ NULL, NULL, NULL }
};
/* }}} */
#endif

#if EV_CHECK_ENABLE
/* {{{ ev_check_class_entry_functions */
const zend_function_entry ev_check_class_entry_functions[] = {
	PHP_ME(EvCheck, __construct,   arginfo_ev_check, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
	PHP_ME(EvCheck, createStopped, arginfo_ev_check, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	{ NULL, NULL, NULL }
};
/* }}} */
#endif

#if EV_PREPARE_ENABLE
/* {{{ ev_prepare_class_entry_functions */
const zend_function_entry ev_prepare_class_entry_functions[] = {
	PHP_ME(EvPrepare, __construct,   arginfo_ev_prepare, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
	PHP_ME(EvPrepare, createStopped, arginfo_ev_prepare, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	{ NULL, NULL, NULL }
};
/* }}} */
#endif

#if EV_EMBED_ENABLE
/* {{{ ev_embed_class_entry_functions */
const zend_function_entry ev_embed_class_entry_functions[] = {
	PHP_ME(EvEmbed, __construct,   arginfo_ev_embed,     ZEND_ACC_PUBLIC  | ZEND_ACC_CTOR)
	PHP_ME(EvEmbed, set,           arginfo_ev_embed_set, ZEND_ACC_PUBLIC)
	PHP_ME(EvEmbed, sweep,         arginfo_ev__void,     ZEND_ACC_PUBLIC)
	PHP_ME(EvEmbed, createStopped, arginfo_ev_embed,     ZEND_ACC_PUBLIC  | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	{ NULL, NULL, NULL }
};
/* }}} */
#endif

#if EV_FORK_ENABLE
/* {{{ ev_fork_class_entry_functions */
const zend_function_entry ev_fork_class_entry_functions[] = {
	PHP_ME(EvFork, __construct,   arginfo_ev_fork, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
	PHP_ME(EvFork, createStopped, arginfo_ev_fork, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC | ZEND_ACC_FINAL)
	{ NULL, NULL, NULL }
};
/* }}} */
#endif
/*
 * Local variables:
 * tab-width: 4
 * c-basic-offset: 4
 * End:
 * vim600: fdm=marker
 * vim: noet sts=4 sw=4 ts=4
 */
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.