… | |
… | |
65 | #include "EVAPI.h" |
65 | #include "EVAPI.h" |
66 | |
66 | |
67 | BOOT: |
67 | BOOT: |
68 | I_EV_API ("YourModule"); |
68 | I_EV_API ("YourModule"); |
69 | |
69 | |
70 | =head2 API |
70 | =head1 API |
71 | |
71 | |
72 | See the EVAPI.h header. |
72 | See the EVAPI.h header. |
73 | |
73 | |
74 | In short, all the functions and macros from F<ev.h> should work, except |
74 | In short, all the functions and macros from F<ev.h> should work, except |
75 | that the trailing underscore macros (C<EV_A_>, C<EV_DEFAULT_>) are not |
75 | that the trailing underscore macros (C<EV_A_>, C<EV_DEFAULT_>) are not |
… | |
… | |
78 | Multiplicity is enabled. |
78 | Multiplicity is enabled. |
79 | |
79 | |
80 | The C<data> member in each watcher is of type C<SV *> and not C<void *> |
80 | The C<data> member in each watcher is of type C<SV *> and not C<void *> |
81 | (this might change at some point). |
81 | (this might change at some point). |
82 | |
82 | |
83 | =head2 EXAMPLE |
83 | =head1 EXAMPLE |
84 | |
84 | |
85 | The L<EV::Glib>, L<EV::ADNS> and L<Glib::EV> all give nice examples on how |
85 | The L<EV::Glib>, L<EV::ADNS> and L<Glib::EV> all give nice examples on how |
86 | to use this module. |
86 | to use this module. |
87 | |
87 | |
88 | Here are some F<.xs> fragments taken from EV::ADNS that should get you |
88 | Here are some F<.xs> fragments taken from EV::ADNS that should get you |