Couchbase C Client  2.10.0
Asynchronous C Client for Couchbase

Detailed Description

libev integration

lcb_create_libevent_io_opts() allows you to create an instance of the ioopts that will utilize libevent. You may either supply an event base (if you'd like to add your own events into the loop), or it will create its own.

Functions

lcb_error_t lcb_create_libevent_io_opts (int version, lcb_io_opt_t *io, void *base)
 Create an instance of an event handler that utilize libevent for event notification. More...
 

Function Documentation

◆ lcb_create_libevent_io_opts()

lcb_error_t lcb_create_libevent_io_opts ( int  version,
lcb_io_opt_t *  io,
void *  base 
)

Create an instance of an event handler that utilize libevent for event notification.

Parameters
versionthe API version to use
basethe event base (struct event_base *) to hook use (please note that you shouldn't reference the event base from multiple threads)
ioa pointer to a newly created and initialized event handler
Returns
status of the operation