Lines Matching refs:ev
9 #include <ev.h>
14 #include <ev.h>
75 time: L<http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod>.
3909 #include "../libev/ev.h"
3913 #include "../libev/ev.c"
3915 And then use F<my_ev.h> when you would normally use F<ev.h>, and compile
3917 can even use F<ev.h> as header file name directly.
3959 The normal C API should work fine when used from C++: both ev.h and the
3996 #include <ev++.h>
3998 This automatically includes F<ev.h> and puts all of its definitions (many
4000 put into the C<ev> namespace. It should support all the same embedding
4001 options as F<ev.h>, most notably C<EV_MULTIPLICITY>.
4018 Here is a list of things available in the C<ev> namespace:
4022 =item C<ev::READ>, C<ev::WRITE> etc.
4025 macros from F<ev.h>.
4027 =item C<ev::tstamp>, C<ev::now>
4031 =item C<ev::io>, C<ev::timer>, C<ev::periodic>, C<ev::idle>, C<ev::sig> etc.
4033 For each C<ev_TYPE> watcher in F<ev.h> there is a corresponding class of
4034 the same name in the C<ev> namespace, with the exception of C<ev_signal>
4035 which is called C<ev::sig> to avoid clashes with the C<signal> macro
4042 =item ev::TYPE::TYPE ()
4044 =item ev::TYPE::TYPE (loop)
4046 =item ev::TYPE::~TYPE
4079 void io_cb (ev::io &w, int revents) { }
4083 ev::io iow;
4103 void operator() (ev::io &w, int revents)
4111 ev::io w;
4120 The prototype of the C<function> must be C<void (*)(ev::TYPE &w, int)>.
4126 static void io_cb (ev::io &w, int revents) { }
4136 Basically the same as C<ev_TYPE_set> (except for C<ev::embed> watchers>),
4142 For C<ev::embed> watchers this method is called C<set_embed>, to avoid
4160 =item w->again () (C<ev::timer>, C<ev::periodic> only)
4162 For C<ev::timer> and C<ev::periodic>, this invokes the corresponding
4165 =item w->sweep () (C<ev::embed> only)
4169 =item w->update () (C<ev::stat> only)
4182 ev::io io ; void io_cb (ev::io &w, int revents);
4183 ev::io io2 ; void io2_cb (ev::io &w, int revents);
4184 ev::idle idle; void idle_cb (ev::idle &w, int revents);
4192 io.set (fd, ev::WRITE); // configure the watcher
4195 io2.start (fd, ev::READ); // set + start in one call
4243 Leandro Lucarella has written a D language binding (F<ev.d>) for libev, to
4244 be found at L<http://www.llucax.com.ar/proj/ev.d/index.html>.
4249 L<http://modeemi.cs.tut.fi/~flux/software/ocaml-ev/>.
4255 L<http://github.com/brimworks/lua-ev>.
4281 This provides the loop I<argument> for functions, if one is required ("ev
4294 This provides the loop I<parameter> for functions, if one is required ("ev
4310 loop, if multiple loops are supported ("ev loop default"). The default loop
4366 #include "ev.c"
4368 This will automatically include F<ev.h>, too, and should be done in a
4370 it, do the same for F<ev.h> in all files wishing to use this API (best
4371 done by writing a wrapper around F<ev.h> that you can include instead and
4375 #include "ev.h"
4384 ev.h
4385 ev.c
4397 F<ev.c> includes the backend files directly when enabled, so you only need
4406 in the file including F<ev.c>, and:
4410 in the files that want to use the libevent API. This also includes F<ev.h>.
4421 F<configure.ac> and leave C<EV_STANDALONE> undefined. F<ev.c> will then
4435 values when compiling libev vs. including F<ev.h>, so it is permissible
4436 to redefine them before including F<ev.h> without breaking compatibility
4652 The name of the F<ev.h> header file used to include it. The default if
4653 undefined is C<"ev.h"> in F<event.h>, F<ev.c> and F<ev++.h>. This can be
4654 used to virtually rename the F<ev.h> header file in case of conflicts.
4659 F<ev.c>'s idea of where to find the F<config.h> file, similarly to
4669 If defined to be C<0>, then F<ev.h> will not define any function
4766 This enables a lot of the "lesser used" API functions. See C<ev.h> for
4807 To use this, define C<EV_API_STATIC> and include F<ev.c> in the file that
4900 =item ev_set_cb (ev, cb)
4904 definition and a statement, respectively. See the F<ev.h> header file for
4917 Symbols.ev for libev proper
4925 include before including F<ev.h>:
4927 <Symbols.ev sed -e "s/.*/#define & myprefix_&/" >wrap.h
4958 #include "ev++.h"
4963 #include "ev.c"
5232 of F<ev.h>:
5234 #define EV_STANDALONE /* keeps ev from requiring config.h */
5237 #include "ev.h"
5240 you do I<not> compile the F<ev.c> or any other embedded source files!):
5243 #include "ev.c"
5432 At the moment, the C<ev.h> header file provides compatibility definitions