Lines Matching defs:bufev

329 /** For internal use: temporarily stop all reads on bufev, until the conditions
332 void bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what);
333 /** For internal use: clear the conditions 'what' on bufev, and re-enable
336 void bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what);
338 /** For internal use: temporarily stop all writes on bufev, until the conditions
340 void bufferevent_suspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what);
341 /** For internal use: clear the conditions 'what' on bufev, and re-enable
343 void bufferevent_unsuspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what);
357 @param bufev the bufferevent to be disabled
363 int bufferevent_disable_hard_(struct bufferevent *bufev, short event);
368 int bufferevent_enable_locking_(struct bufferevent *bufev, void *lock);
370 * Increment the reference count on bufev. */
371 #define bufferevent_incref_(bufev) bufferevent_incref(bufev)
372 /** Internal: Lock bufev and increase its reference count.
375 void bufferevent_incref_and_lock_(struct bufferevent *bufev);
377 * Decrement the reference count on bufev. Returns 1 if it freed
379 #define bufferevent_decref_(bufev) bufferevent_decref(bufev)
381 /** Internal: Drop the reference count on bufev, freeing as necessary, and
384 int bufferevent_decref_and_unlock_(struct bufferevent *bufev);
389 void bufferevent_run_readcb_(struct bufferevent *bufev, int options);
393 void bufferevent_run_writecb_(struct bufferevent *bufev, int options);
398 void bufferevent_run_eventcb_(struct bufferevent *bufev, short what, int options);
402 * Must already hold the bufev lock. Honors watermarks unless
404 static inline void bufferevent_trigger_nolock_(struct bufferevent *bufev, short iotype, int options);
409 bufferevent_trigger_nolock_(struct bufferevent *bufev, short iotype, int options)
412 evbuffer_get_length(bufev->input) >= bufev->wm_read.low))
413 bufferevent_run_readcb_(bufev, options);
415 evbuffer_get_length(bufev->output) <= bufev->wm_write.low))
416 bufferevent_run_writecb_(bufev, options);