HomePort
Data Structures | Macros | Typedefs | Functions | Variables
curl_ev_module.c File Reference
Include dependency graph for curl_ev_module.c:

Go to the source code of this file.

Data Structures

struct  curl_ev
 
struct  curl_ev_io
 

Macros

#define CURL_EV_INIT_CHECK(CONTEXT)
 

Typedefs

typedef struct curl_ev_io curl_ev_io_t
 

Functions

static hpd_error_t curl_ev_add_next ()
 
static CURLMcode curl_ev_get_stopped_watcher (curl_ev_io_t **w, curl_socket_t s, const hpd_module_t *context)
 
static hpd_error_t curl_ev_on_create (void **data, const hpd_module_t *context)
 
static hpd_error_t curl_ev_on_destroy (void *data)
 
static void curl_ev_on_io (hpd_ev_loop_t *loop, ev_io *w, int revents)
 
static hpd_error_t curl_ev_on_parse_opt (void *data, const char *name, const char *arg)
 
static hpd_error_t curl_ev_on_start (void *data, hpd_t *hpd)
 
static hpd_error_t curl_ev_on_stop (void *data, hpd_t *hpd)
 
static void curl_ev_on_timeout (hpd_ev_loop_t *loop, ev_timer *w, int revents)
 
static CURLMcode curl_ev_on_update_socket (CURL *easy, curl_socket_t s, int what, void *userp, void *socketp)
 
static CURLMcode curl_ev_on_update_timer (CURLM *multi, long timeout_ms, void *userp)
 
static CURLMcode curl_ev_socket_action (int sockfd)
 
static CURLMcode curl_ev_start_watcher (curl_ev_io_t *w, curl_socket_t s, int what, const hpd_module_t *context)
 
static void curl_ev_stop_watcher (curl_ev_io_t *w)
 
hpd_error_t hpd_curl_ev_add_handle (hpd_curl_ev_handle_t *handle)
 
hpd_error_t hpd_curl_ev_remove_handle (hpd_curl_ev_handle_t *handle)
 

Variables

static curl_ev_tcurl_ev = NULL
 
hpd_module_def_t hpd_curl_ev
 

Data Structure Documentation

struct curl_ev

Definition at line 41 of file curl_ev_module.c.

Collaboration diagram for curl_ev:
Data Fields
CURLM * mult_handle
ev_timer timer
struct curl_ev_io

Definition at line 36 of file curl_ev_module.c.

Collaboration diagram for curl_ev_io:

Macro Definition Documentation

#define CURL_EV_INIT_CHECK (   CONTEXT)
Value:
do { \
if (!curl_ev) { \
HPD_LOG_ERROR((CONTEXT), "Curl not initialised"); \
HPD_LOG_RETURN((CONTEXT), HPD_E_STATE, "Did you remember to add the curl module to hpd?"); \
} \
} while(0)
#define HPD_LOG_RETURN(CONTEXT, E, FMT,...)
#define HPD_LOG_ERROR(CONTEXT, FMT,...)

Definition at line 68 of file curl_ev_module.c.

Typedef Documentation

typedef struct curl_ev_io curl_ev_io_t

Definition at line 34 of file curl_ev_module.c.

Function Documentation

static hpd_error_t curl_ev_add_next ( )
static

Definition at line 184 of file curl_ev_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static CURLMcode curl_ev_get_stopped_watcher ( curl_ev_io_t **  w,
curl_socket_t  s,
const hpd_module_t context 
)
static

Definition at line 90 of file curl_ev_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t curl_ev_on_create ( void **  data,
const hpd_module_t context 
)
static

Definition at line 305 of file curl_ev_module.c.

Here is the call graph for this function:

static hpd_error_t curl_ev_on_destroy ( void *  data)
static

Definition at line 326 of file curl_ev_module.c.

Here is the call graph for this function:

static void curl_ev_on_io ( hpd_ev_loop_t loop,
ev_io *  w,
int  revents 
)
static

Definition at line 75 of file curl_ev_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static hpd_error_t curl_ev_on_parse_opt ( void *  data,
const char *  name,
const char *  arg 
)
static

Definition at line 415 of file curl_ev_module.c.

static hpd_error_t curl_ev_on_start ( void *  data,
hpd_t hpd 
)
static

Definition at line 348 of file curl_ev_module.c.

Here is the call graph for this function:

static hpd_error_t curl_ev_on_stop ( void *  data,
hpd_t hpd 
)
static

Definition at line 389 of file curl_ev_module.c.

Here is the call graph for this function:

static void curl_ev_on_timeout ( hpd_ev_loop_t loop,
ev_timer *  w,
int  revents 
)
static

Definition at line 82 of file curl_ev_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static CURLMcode curl_ev_on_update_socket ( CURL *  easy,
curl_socket_t  s,
int  what,
void *  userp,
void *  socketp 
)
static

Definition at line 140 of file curl_ev_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static CURLMcode curl_ev_on_update_timer ( CURLM *  multi,
long  timeout_ms,
void *  userp 
)
static

Definition at line 165 of file curl_ev_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static CURLMcode curl_ev_socket_action ( int  sockfd)
static

Definition at line 211 of file curl_ev_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static CURLMcode curl_ev_start_watcher ( curl_ev_io_t w,
curl_socket_t  s,
int  what,
const hpd_module_t context 
)
static

Definition at line 112 of file curl_ev_module.c.

Here is the caller graph for this function:

static void curl_ev_stop_watcher ( curl_ev_io_t w)
static

Definition at line 133 of file curl_ev_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

hpd_error_t hpd_curl_ev_add_handle ( hpd_curl_ev_handle_t handle)

Definition at line 260 of file curl_ev_module.c.

Here is the call graph for this function:

hpd_error_t hpd_curl_ev_remove_handle ( hpd_curl_ev_handle_t handle)

Definition at line 284 of file curl_ev_module.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

curl_ev_t* curl_ev = NULL
static

Definition at line 66 of file curl_ev_module.c.

hpd_module_def_t hpd_curl_ev
Initial value:
= {
}
static hpd_error_t curl_ev_on_destroy(void *data)
static hpd_error_t curl_ev_on_create(void **data, const hpd_module_t *context)
static hpd_error_t curl_ev_on_parse_opt(void *data, const char *name, const char *arg)
static hpd_error_t curl_ev_on_start(void *data, hpd_t *hpd)
static hpd_error_t curl_ev_on_stop(void *data, hpd_t *hpd)

Definition at line 58 of file curl_ev_module.c.