ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev++.h
(Generate patch)

Comparing libev/ev++.h (file contents):
Revision 1.25 by llucax, Fri Jan 18 18:13:40 2008 UTC vs.
Revision 1.26 by llucax, Fri Jan 18 18:13:57 2008 UTC

186 { 186 {
187 return ev_is_pending (static_cast<const ev_watcher *>(this)); 187 return ev_is_pending (static_cast<const ev_watcher *>(this));
188 } 188 }
189 }; 189 };
190 190
191 inline void delay (tstamp interval)
192 {
193 ev_sleep (interval);
194 }
195
196 inline int version_major ()
197 {
198 return ev_version_major ();
199 }
200
201 inline int version_minor ()
202 {
203 return ev_version_minor ();
204 }
205
206 inline unsigned int supported_backends ()
207 {
208 return ev_supported_backends ();
209 }
210
211 inline unsigned int recommended_backends ()
212 {
213 return ev_recommended_backends ();
214 }
215
216 inline unsigned int embeddable_backends ()
217 {
218 return ev_embeddable_backends ();
219 }
220
221 inline void set_allocator (void *(*cb)(void *ptr, long size))
222 {
223 ev_set_allocator (cb);
224 }
225
226 inline void set_syserr_cb (void (*cb)(const char *msg))
227 {
228 ev_set_syserr_cb (cb);
229 }
230
191 231
192 inline ev_tstamp now (EV_P) 232 inline ev_tstamp now (EV_P)
193 { 233 {
194 return ev_now (EV_A); 234 return ev_now (EV_A);
195 } 235 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines