… | |
… | |
58 | |
58 | |
59 | # ... set up %args ... |
59 | # ... set up %args ... |
60 | |
60 | |
61 | WriteMakefile (ev_args (%args)); |
61 | WriteMakefile (ev_args (%args)); |
62 | |
62 | |
63 | =head2 XS |
63 | =head2 extension.pm |
|
|
64 | |
|
|
65 | use EV (); # imports optional |
|
|
66 | |
|
|
67 | =head2 extension.xs |
64 | |
68 | |
65 | #include "EVAPI.h" |
69 | #include "EVAPI.h" |
|
|
70 | |
|
|
71 | [...] |
66 | |
72 | |
67 | BOOT: |
73 | BOOT: |
68 | I_EV_API ("YourModule"); |
74 | I_EV_API ("YourModule"); |
69 | |
75 | |
70 | =head1 API |
76 | =head1 API |
71 | |
77 | |
72 | See the L<EVAPI.h|http://cvs.schmorp.de/EV/EV/EVAPI.h> header, which you should include instead |
78 | See the L<EVAPI.h|http://cvs.schmorp.de/EV/EV/EVAPI.h> header, which you |
73 | of F<ev.h>. |
79 | should include instead of F<ev.h>. |
74 | |
80 | |
75 | In short, all the functions and macros from F<ev.h> should work, except |
81 | In short, all the functions and macros from F<ev.h> should work, except |
76 | that the trailing underscore macros (C<EV_A_>, C<EV_DEFAULT_>) are not |
82 | that the trailing underscore macros (C<EV_A_>, C<EV_DEFAULT_>) are not |
77 | available (except C<EV_P_> :). |
83 | available (except C<EV_P_> :). |
78 | |
84 | |