… | |
… | |
44 | This allows you to access some libevent functionality from other perl |
44 | This allows you to access some libevent functionality from other perl |
45 | modules. |
45 | modules. |
46 | |
46 | |
47 | =head1 DESCRIPTION |
47 | =head1 DESCRIPTION |
48 | |
48 | |
49 | For optimal performance, hook into EV at the C-level. You'll need |
49 | For optimal performance, hook into EV at the C-level. You'll need to make |
50 | to make changes to your C<Makefile.PL> and add code to your C<xs> / |
50 | changes to your C<Makefile.PL>, load C<EV> in your C<pm> file and add |
51 | C<c> file(s). |
51 | code to your C<xs> / C<c> file(s). |
52 | |
52 | |
53 | =head1 HOW TO |
53 | =head1 HOW TO |
54 | |
54 | |
55 | =head2 Makefile.PL |
55 | =head2 Makefile.PL |
56 | |
56 | |
… | |
… | |
69 | #include "EVAPI.h" |
69 | #include "EVAPI.h" |
70 | |
70 | |
71 | [...] |
71 | [...] |
72 | |
72 | |
73 | BOOT: |
73 | BOOT: |
74 | I_EV_API ("YourModule"); |
74 | I_EV_API (HvNAME (GvSTASH (CvGV (cv)))); |
75 | |
75 | |
76 | =head1 API |
76 | =head1 API |
77 | |
77 | |
78 | See the L<EVAPI.h|http://cvs.schmorp.de/EV/EV/EVAPI.h> header, which you |
78 | See the L<EVAPI.h|http://cvs.schmorp.de/EV/EV/EVAPI.h> header, which you |
79 | should include instead of F<ev.h>. |
79 | should include instead of F<ev.h>. |