ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV.xs
(Generate patch)

Comparing EV/EV.xs (file contents):
Revision 1.35 by root, Thu Nov 1 13:33:12 2007 UTC vs.
Revision 1.70 by root, Fri Nov 16 10:37:28 2007 UTC

2#include "perl.h" 2#include "perl.h"
3#include "XSUB.h" 3#include "XSUB.h"
4 4
5/*#include <netinet/in.h>*/ 5/*#include <netinet/in.h>*/
6 6
7#define TIMEOUT_NONE HUGE_VAL
8
9#define EV_PROTOTYPES 1 7#define EV_PROTOTYPES 1
10#include "EV/EVAPI.h" 8#include "EV/EVAPI.h"
11 9
10/* fix perl api breakage */
11#undef signal
12#undef sigaction
13
14#define EV_USE_MONOTONIC 1
15#define EV_USE_REALTIME 1
16#define EV_SELECT_IS_WINSOCKET 0
17#ifdef _WIN32
18# define EV_SELECT_USE_FD_SET 0
19# define NFDBITS PERL_NFDBITS
20# define fd_mask Perl_fd_mask
21#endif
22/* due to bugs in OS X we have to use libev/ explicitly here */
12#include "libev/ev.c" 23#include "libev/ev.c"
24#include "event.c"
25
26#ifndef _WIN32
27#define DNS_USE_GETTIMEOFDAY_FOR_ID 1
28#if !defined (WIN32) && !defined(__CYGWIN__)
29# define HAVE_STRUCT_IN6_ADDR 1
30#endif
31#undef HAVE_STRTOK_R
32#undef strtok_r
33#define strtok_r fake_strtok_r
34#include "evdns.h"
35#include "evdns.c"
36#endif
37
38#ifndef _WIN32
39# include <pthread.h>
40#endif
13 41
14typedef int Signal; 42typedef int Signal;
15 43
16static struct EVAPI evapi; 44static struct EVAPI evapi;
17 45
24 *stash_idle, 52 *stash_idle,
25 *stash_prepare, 53 *stash_prepare,
26 *stash_check, 54 *stash_check,
27 *stash_child; 55 *stash_child;
28 56
57#ifndef SIG_SIZE
58/* kudos to Slaven Rezic for the idea */
59static char sig_size [] = { SIG_NUM };
60# define SIG_SIZE (sizeof (sig_size) + 1)
61#endif
62
29static int 63static int
30sv_signum (SV *sig) 64sv_signum (SV *sig)
31{ 65{
32 int signum; 66 int signum;
33 67
73 SvPOK_only (self); 107 SvPOK_only (self);
74 SvCUR_set (self, size); 108 SvCUR_set (self, size);
75 109
76 w = (struct ev_watcher *)SvPVX (self); 110 w = (struct ev_watcher *)SvPVX (self);
77 111
78 ev_watcher_init (w, e_cb); 112 ev_init (w, e_cb);
79 113
114 w->data = 0;
80 w->fh = 0; 115 w->fh = 0;
81 w->cb_sv = newSVsv (cb_sv); 116 w->cb_sv = newSVsv (cb_sv);
82 w->self = self; 117 w->self = self;
83 118
84 return (void *)w; 119 return (void *)w;
85} 120}
86 121
87static void * 122static void
88e_destroy (void *w_) 123e_destroy (void *w_)
89{ 124{
90 struct ev_watcher *w = w_; 125 struct ev_watcher *w = (struct ev_watcher *)w_;
91 126
92 SvREFCNT_dec (w->fh ); w->fh = 0; 127 SvREFCNT_dec (w->fh ); w->fh = 0;
93 SvREFCNT_dec (w->cb_sv); w->cb_sv = 0; 128 SvREFCNT_dec (w->cb_sv); w->cb_sv = 0;
129 SvREFCNT_dec (w->data ); w->data = 0;
94} 130}
95 131
96static SV * 132static SV *
97e_bless (struct ev_watcher *w, HV *stash) 133e_bless (struct ev_watcher *w, HV *stash)
98{ 134{
131 PUSHMARK (SP); 167 PUSHMARK (SP);
132 EXTEND (SP, 2); 168 EXTEND (SP, 2);
133 PUSHs (sv_self); 169 PUSHs (sv_self);
134 PUSHs (sv_events); 170 PUSHs (sv_events);
135 171
136 if (revents & EV_CHILD)
137 XPUSHs (sv_status = newSViv (((struct ev_child *)w)->status));
138
139 PUTBACK; 172 PUTBACK;
140 call_sv (w->cb_sv, G_DISCARD | G_VOID | G_EVAL); 173 call_sv (w->cb_sv, G_DISCARD | G_VOID | G_EVAL);
141 SP = PL_stack_base + mark; PUTBACK;
142 174
143 SvREFCNT_dec (sv_self); 175 SvREFCNT_dec (sv_self);
144 SvREFCNT_dec (sv_status); 176 SvREFCNT_dec (sv_status);
145 177
146 if (sv_events_cache) 178 if (sv_events_cache)
151 if (SvTRUE (ERRSV)) 183 if (SvTRUE (ERRSV))
152 { 184 {
153 PUSHMARK (SP); 185 PUSHMARK (SP);
154 PUTBACK; 186 PUTBACK;
155 call_sv (get_sv ("EV::DIED", 1), G_DISCARD | G_VOID | G_EVAL | G_KEEPERR); 187 call_sv (get_sv ("EV::DIED", 1), G_DISCARD | G_VOID | G_EVAL | G_KEEPERR);
156 SP = PL_stack_base + mark; PUTBACK;
157 } 188 }
158}
159 189
160#if 0 190 SP = PL_stack_base + mark;
191 PUTBACK;
192}
193
194static ev_tstamp
195e_periodic_cb (struct ev_periodic *w, ev_tstamp now)
196{
197 ev_tstamp retval;
198 int count;
199 dSP;
200
201 ENTER;
202 SAVETMPS;
203
204 PUSHMARK (SP);
205 EXTEND (SP, 2);
206 PUSHs (newRV_inc (w->self)); /* w->self MUST be blessed by now */
207 PUSHs (newSVnv (now));
208
209 PUTBACK;
210 count = call_sv (w->fh, G_SCALAR | G_EVAL);
211 SPAGAIN;
212
213 if (SvTRUE (ERRSV))
214 {
215 PUSHMARK (SP);
216 PUTBACK;
217 call_sv (get_sv ("EV::DIED", 1), G_DISCARD | G_VOID | G_EVAL | G_KEEPERR);
218 SPAGAIN;
219 }
220
221 if (count > 0)
222 {
223 retval = SvNV (TOPs);
224
225 if (retval < now)
226 retval = now;
227 }
228 else
229 retval = now;
230
231 FREETMPS;
232 LEAVE;
233
234 return retval;
235}
236
161///////////////////////////////////////////////////////////////////////////// 237/////////////////////////////////////////////////////////////////////////////
162// DNS 238// DNS
163 239
240#ifndef _WIN32
164static void 241static void
165dns_cb (int result, char type, int count, int ttl, void *addresses, void *arg) 242dns_cb (int result, char type, int count, int ttl, void *addresses, void *arg)
166{ 243{
167 dSP; 244 dSP;
168 SV *cb = (SV *)arg; 245 SV *cb = (SV *)arg;
224 301
225PROTOTYPES: ENABLE 302PROTOTYPES: ENABLE
226 303
227BOOT: 304BOOT:
228{ 305{
229 int i;
230 HV *stash = gv_stashpv ("EV", 1); 306 HV *stash = gv_stashpv ("EV", 1);
231 307
232 static const struct { 308 static const struct {
233 const char *name; 309 const char *name;
234 IV iv; 310 IV iv;
235 } *civ, const_iv[] = { 311 } *civ, const_iv[] = {
236# define const_iv(pfx, name) { # name, (IV) pfx ## name }, 312# define const_iv(pfx, name) { # name, (IV) pfx ## name },
313 const_iv (EV_, MINPRI)
314 const_iv (EV_, MAXPRI)
315
237 const_iv (EV_, UNDEF) 316 const_iv (EV_, UNDEF)
238 const_iv (EV_, NONE) 317 const_iv (EV_, NONE)
239 const_iv (EV_, TIMEOUT) 318 const_iv (EV_, TIMEOUT)
240 const_iv (EV_, READ) 319 const_iv (EV_, READ)
241 const_iv (EV_, WRITE) 320 const_iv (EV_, WRITE)
244 const_iv (EV_, CHECK) 323 const_iv (EV_, CHECK)
245 const_iv (EV_, ERROR) 324 const_iv (EV_, ERROR)
246 325
247 const_iv (EV, LOOP_ONESHOT) 326 const_iv (EV, LOOP_ONESHOT)
248 const_iv (EV, LOOP_NONBLOCK) 327 const_iv (EV, LOOP_NONBLOCK)
249
250 const_iv (EV, METHOD_NONE) 328 const_iv (EV, UNLOOP_ONE)
329 const_iv (EV, UNLOOP_ALL)
330
251 const_iv (EV, METHOD_SELECT) 331 const_iv (EV, METHOD_SELECT)
332 const_iv (EV, METHOD_POLL)
252 const_iv (EV, METHOD_EPOLL) 333 const_iv (EV, METHOD_EPOLL)
334 const_iv (EV, METHOD_KQUEUE)
335 const_iv (EV, METHOD_DEVPOLL)
336 const_iv (EV, METHOD_PORT)
337 const_iv (EV, FLAG_AUTO)
338 const_iv (EV, FLAG_NOENV)
253 }; 339 };
254 340
255 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) 341 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; )
256 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); 342 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv));
257 343
272 /* the poor man's shared library emulator */ 358 /* the poor man's shared library emulator */
273 evapi.ver = EV_API_VERSION; 359 evapi.ver = EV_API_VERSION;
274 evapi.rev = EV_API_REVISION; 360 evapi.rev = EV_API_REVISION;
275 evapi.sv_fileno = sv_fileno; 361 evapi.sv_fileno = sv_fileno;
276 evapi.sv_signum = sv_signum; 362 evapi.sv_signum = sv_signum;
277 evapi.now = &ev_now; 363 evapi.now = ev_now;
278 evapi.method = &ev_method; 364 evapi.method = ev_method;
279 evapi.loop_done = &ev_loop_done; 365 evapi.unloop = ev_unloop;
280 evapi.time = ev_time; 366 evapi.time = ev_time;
281 evapi.loop = ev_loop; 367 evapi.loop = ev_loop;
282 evapi.once = ev_once; 368 evapi.once = ev_once;
283 evapi.io_start = ev_io_start; 369 evapi.io_start = ev_io_start;
284 evapi.io_stop = ev_io_stop; 370 evapi.io_stop = ev_io_stop;
299 evapi.child_stop = ev_child_stop; 385 evapi.child_stop = ev_child_stop;
300 386
301 sv_setiv (sv, (IV)&evapi); 387 sv_setiv (sv, (IV)&evapi);
302 SvREADONLY_on (sv); 388 SvREADONLY_on (sv);
303 } 389 }
304 390#ifndef _WIN32
305 pthread_atfork (ev_fork_prepare, ev_fork_parent, ev_fork_child); 391 pthread_atfork (0, 0, ev_default_fork);
392#endif
306} 393}
307 394
308NV ev_now () 395NV ev_now ()
309 CODE:
310 RETVAL = ev_now;
311 OUTPUT:
312 RETVAL
313 396
314int ev_method () 397int ev_method ()
315 CODE:
316 RETVAL = ev_method;
317 OUTPUT:
318 RETVAL
319 398
320NV ev_time () 399NV ev_time ()
321 400
322void ev_init (int flags = 0) 401int ev_default_loop (int methods = EVFLAG_AUTO)
323 402
324void ev_loop (int flags = 0) 403void ev_loop (int flags = 0)
325 404
326void ev_loop_done (int value = 1) 405void ev_unloop (int how = 1)
327 CODE:
328 ev_loop_done = value;
329 406
330struct ev_io *io (SV *fh, int events, SV *cb) 407struct ev_io *io (SV *fh, int events, SV *cb)
331 ALIAS: 408 ALIAS:
332 io_ns = 1 409 io_ns = 1
333 CODE: 410 CODE:
353 ev_timer_set (RETVAL, after, repeat); 430 ev_timer_set (RETVAL, after, repeat);
354 if (!ix) ev_timer_start (RETVAL); 431 if (!ix) ev_timer_start (RETVAL);
355 OUTPUT: 432 OUTPUT:
356 RETVAL 433 RETVAL
357 434
358struct ev_periodic *periodic (NV at, NV interval, SV *cb) 435SV *periodic (NV at, NV interval, SV *reschedule_cb, SV *cb)
359 ALIAS: 436 ALIAS:
360 periodic_ns = 1 437 periodic_ns = 1
361 INIT: 438 INIT:
362 CHECK_REPEAT (interval); 439 CHECK_REPEAT (interval);
363 CODE: 440 CODE:
441{
442 struct ev_periodic *w;
364 RETVAL = e_new (sizeof (struct ev_periodic), cb); 443 w = e_new (sizeof (struct ev_periodic), cb);
365 ev_periodic_set (RETVAL, at, interval); 444 w->fh = SvTRUE (reschedule_cb) ? newSVsv (reschedule_cb) : 0;
445 ev_periodic_set (w, at, interval, w->fh ? e_periodic_cb : 0);
446 RETVAL = e_bless ((struct ev_watcher *)w, stash_periodic);
366 if (!ix) ev_periodic_start (RETVAL); 447 if (!ix) ev_periodic_start (w);
448}
367 OUTPUT: 449 OUTPUT:
368 RETVAL 450 RETVAL
369 451
370struct ev_signal *signal (Signal signum, SV *cb) 452struct ev_signal *signal (Signal signum, SV *cb)
371 ALIAS: 453 ALIAS:
407 OUTPUT: 489 OUTPUT:
408 RETVAL 490 RETVAL
409 491
410struct ev_child *child (int pid, SV *cb) 492struct ev_child *child (int pid, SV *cb)
411 ALIAS: 493 ALIAS:
412 check_ns = 1 494 child_ns = 1
413 CODE: 495 CODE:
414 RETVAL = e_new (sizeof (struct ev_check), cb); 496 RETVAL = e_new (sizeof (struct ev_child), cb);
415 ev_child_set (RETVAL, pid); 497 ev_child_set (RETVAL, pid);
416 if (!ix) ev_child_start (RETVAL); 498 if (!ix) ev_child_start (RETVAL);
417 OUTPUT: 499 OUTPUT:
418 RETVAL 500 RETVAL
419 501
433 sv_setsv (w->cb_sv, new_cb); 515 sv_setsv (w->cb_sv, new_cb);
434} 516}
435 OUTPUT: 517 OUTPUT:
436 RETVAL 518 RETVAL
437 519
520SV *data (struct ev_watcher *w, SV *new_data = 0)
521 CODE:
522{
523 RETVAL = w->data ? newSVsv (w->data) : &PL_sv_undef;
524}
525 OUTPUT:
526 RETVAL
527
438void trigger (struct ev_watcher *w, int revents = EV_NONE) 528void trigger (struct ev_watcher *w, int revents = EV_NONE)
439 CODE: 529 CODE:
440 w->cb (w, revents); 530 w->cb (w, revents);
531
532int priority (struct ev_watcher *w, int new_priority = 0)
533 CODE:
534{
535 RETVAL = w->priority;
536
537 if (items > 1)
538 {
539 int active = ev_is_active (w);
540
541 if (new_priority < EV_MINPRI || new_priority > EV_MAXPRI)
542 croak ("watcher priority out of range, value must be between %d and %d, inclusive", EV_MINPRI, EV_MAXPRI);
543
544 if (active)
545 {
546 /* grrr. */
547 PUSHMARK (SP);
548 XPUSHs (ST (0));
549 call_method ("stop", G_DISCARD | G_VOID);
550 }
551
552 ev_set_priority (w, new_priority);
553
554 if (active)
555 {
556 PUSHMARK (SP);
557 XPUSHs (ST (0));
558 call_method ("start", G_DISCARD | G_VOID);
559 }
560 }
561}
562 OUTPUT:
563 RETVAL
441 564
442MODULE = EV PACKAGE = EV::Io PREFIX = ev_io_ 565MODULE = EV PACKAGE = EV::Io PREFIX = ev_io_
443 566
444void ev_io_start (struct ev_io *w) 567void ev_io_start (struct ev_io *w)
445 568
451 e_destroy (w); 574 e_destroy (w);
452 575
453void set (struct ev_io *w, SV *fh, int events) 576void set (struct ev_io *w, SV *fh, int events)
454 CODE: 577 CODE:
455{ 578{
456 int active = w->active; 579 int active = ev_is_active (w);
457 int fd = sv_fileno (fh); 580 int fd = sv_fileno (fh);
458 CHECK_FD (fh, fd); 581 CHECK_FD (fh, fd);
459 582
460 if (active) ev_io_stop (w); 583 if (active) ev_io_stop (w);
461 584
470{ 593{
471 RETVAL = newSVsv (w->fh); 594 RETVAL = newSVsv (w->fh);
472 595
473 if (items > 1) 596 if (items > 1)
474 { 597 {
475 int active = w->active; 598 int active = ev_is_active (w);
476 if (active) ev_io_stop (w); 599 if (active) ev_io_stop (w);
477 600
478 sv_setsv (w->fh, new_fh); 601 sv_setsv (w->fh, new_fh);
479 ev_io_set (w, sv_fileno (w->fh), w->events); 602 ev_io_set (w, sv_fileno (w->fh), w->events);
480 603
482 } 605 }
483} 606}
484 OUTPUT: 607 OUTPUT:
485 RETVAL 608 RETVAL
486 609
487short events (struct ev_io *w, short new_events = EV_UNDEF) 610int events (struct ev_io *w, int new_events = EV_UNDEF)
488 CODE: 611 CODE:
489{ 612{
490 RETVAL = w->events; 613 RETVAL = w->events;
491 614
492 if (items > 1) 615 if (items > 1)
493 { 616 {
494 int active = w->active; 617 int active = ev_is_active (w);
495 if (active) ev_io_stop (w); 618 if (active) ev_io_stop (w);
496 619
497 ev_io_set (w, w->fd, new_events); 620 ev_io_set (w, w->fd, new_events);
498 621
499 if (active) ev_io_start (w); 622 if (active) ev_io_start (w);
511void DESTROY (struct ev_signal *w) 634void DESTROY (struct ev_signal *w)
512 CODE: 635 CODE:
513 ev_signal_stop (w); 636 ev_signal_stop (w);
514 e_destroy (w); 637 e_destroy (w);
515 638
516void set (struct ev_signal *w, SV *signal = 0) 639void set (struct ev_signal *w, SV *signal)
517 CODE: 640 CODE:
518{ 641{
519 Signal signum = sv_signum (signal); /* may croak here */ 642 Signal signum = sv_signum (signal); /* may croak here */
520 int active = w->active; 643 int active = ev_is_active (w);
521 644
522 if (active) ev_signal_stop (w); 645 if (active) ev_signal_stop (w);
646
523 ev_signal_set (w, signum); 647 ev_signal_set (w, signum);
648
524 if (active) ev_signal_start (w); 649 if (active) ev_signal_start (w);
525} 650}
526 651
527MODULE = EV PACKAGE = EV::Time 652int signal (struct ev_signal *w, SV *new_signal = 0)
653 CODE:
654{
655 RETVAL = w->signum;
656
657 if (items > 1)
658 {
659 Signal signum = sv_signum (new_signal); /* may croak here */
660 int active = ev_is_active (w);
661 if (active) ev_signal_stop (w);
662
663 ev_signal_set (w, signum);
664
665 if (active) ev_signal_start (w);
666 }
667}
668 OUTPUT:
669 RETVAL
528 670
529MODULE = EV PACKAGE = EV::Timer PREFIX = ev_timer_ 671MODULE = EV PACKAGE = EV::Timer PREFIX = ev_timer_
530 672
531void ev_timer_start (struct ev_timer *w) 673void ev_timer_start (struct ev_timer *w)
532 INIT: 674 INIT:
546void set (struct ev_timer *w, NV after, NV repeat = 0.) 688void set (struct ev_timer *w, NV after, NV repeat = 0.)
547 INIT: 689 INIT:
548 CHECK_REPEAT (repeat); 690 CHECK_REPEAT (repeat);
549 CODE: 691 CODE:
550{ 692{
551 int active = w->active; 693 int active = ev_is_active (w);
552 if (active) ev_timer_stop (w); 694 if (active) ev_timer_stop (w);
553 ev_timer_set (w, after, repeat); 695 ev_timer_set (w, after, repeat);
554 if (active) ev_timer_start (w); 696 if (active) ev_timer_start (w);
555} 697}
556 698
560 INIT: 702 INIT:
561 CHECK_REPEAT (w->interval); 703 CHECK_REPEAT (w->interval);
562 704
563void ev_periodic_stop (struct ev_periodic *w) 705void ev_periodic_stop (struct ev_periodic *w)
564 706
707void ev_periodic_again (struct ev_periodic *w)
708
565void DESTROY (struct ev_periodic *w) 709void DESTROY (struct ev_periodic *w)
566 CODE: 710 CODE:
567 ev_periodic_stop (w); 711 ev_periodic_stop (w);
568 e_destroy (w); 712 e_destroy (w);
569 713
570void set (struct ev_periodic *w, NV at, NV interval = 0.) 714void set (struct ev_periodic *w, NV at, NV interval = 0., SV *reschedule_cb = &PL_sv_undef)
571 INIT: 715 INIT:
572 CHECK_REPEAT (interval); 716 CHECK_REPEAT (interval);
573 CODE: 717 CODE:
574{ 718{
575 int active = w->active; 719 int active = ev_is_active (w);
576 if (active) ev_periodic_stop (w); 720 if (active) ev_periodic_stop (w);
721
722 SvREFCNT_dec (w->fh);
723 w->fh = SvTRUE (reschedule_cb) ? newSVsv (reschedule_cb) : 0;
577 ev_periodic_set (w, at, interval); 724 ev_periodic_set (w, at, interval, w->fh ? e_periodic_cb : 0);
725
578 if (active) ev_periodic_start (w); 726 if (active) ev_periodic_start (w);
579} 727}
580 728
581MODULE = EV PACKAGE = EV::Idle PREFIX = ev_idle_ 729MODULE = EV PACKAGE = EV::Idle PREFIX = ev_idle_
582 730
623 e_destroy (w); 771 e_destroy (w);
624 772
625void set (struct ev_child *w, int pid) 773void set (struct ev_child *w, int pid)
626 CODE: 774 CODE:
627{ 775{
628 int active = w->active; 776 int active = ev_is_active (w);
629 if (active) ev_child_stop (w); 777 if (active) ev_child_stop (w);
778
630 ev_child_set (w, pid); 779 ev_child_set (w, pid);
780
631 if (active) ev_child_start (w); 781 if (active) ev_child_start (w);
632} 782}
633 783
784int pid (struct ev_child *w, int new_pid = 0)
785 CODE:
786{
787 RETVAL = w->pid;
788
789 if (items > 1)
790 {
791 int active = ev_is_active (w);
792 if (active) ev_child_stop (w);
793
794 ev_child_set (w, new_pid);
795
796 if (active) ev_child_start (w);
797 }
798}
799 OUTPUT:
800 RETVAL
801
802
634int status (struct ev_child *w) 803int rstatus (struct ev_child *w)
804 ALIAS:
805 rpid = 1
635 CODE: 806 CODE:
636 RETVAL = w->status; 807 RETVAL = ix ? w->rpid : w->rstatus;
637 OUTPUT: 808 OUTPUT:
638 RETVAL 809 RETVAL
639 810
640#if 0 811#ifndef _WIN32
641 812
642MODULE = EV PACKAGE = EV::DNS PREFIX = evdns_ 813MODULE = EV PACKAGE = EV::DNS PREFIX = evdns_
643 814
644BOOT: 815BOOT:
645{ 816{
716 887
717int evdns_set_option (char *option, char *val, int flags) 888int evdns_set_option (char *option, char *val, int flags)
718 889
719int evdns_resolv_conf_parse (int flags, const char *filename) 890int evdns_resolv_conf_parse (int flags, const char *filename)
720 891
721#ifdef MS_WINDOWS 892#ifdef _WIN32
722 893
723int evdns_config_windows_nameservers () 894int evdns_config_windows_nameservers ()
724 895
725#endif 896#endif
726 897
728 899
729void evdns_search_add (char *domain) 900void evdns_search_add (char *domain)
730 901
731void evdns_search_ndots_set (int ndots) 902void evdns_search_ndots_set (int ndots)
732 903
904#if 0
733 905
734MODULE = EV PACKAGE = EV::HTTP PREFIX = evhttp_ 906MODULE = EV PACKAGE = EV::HTTP PREFIX = evhttp_
735 907
736BOOT: 908BOOT:
737{ 909{
769 941
770#void DESTROY (struct evhttp_request *req); 942#void DESTROY (struct evhttp_request *req);
771 943
772#endif 944#endif
773 945
946#endif
774 947
775 948
776 949
777 950
778 951

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines