Lines Matching refs:context
48 curl_context_t *context; in create_curl_context() local
50 context = (curl_context_t *) malloc(sizeof(*context)); in create_curl_context()
52 context->sockfd = sockfd; in create_curl_context()
54 context->event = event_new(base, sockfd, 0, curl_perform, context); in create_curl_context()
56 return context; in create_curl_context()
59 static void destroy_curl_context(curl_context_t *context) in destroy_curl_context() argument
61 event_del(context->event); in destroy_curl_context()
62 event_free(context->event); in destroy_curl_context()
63 free(context); in destroy_curl_context()
128 curl_context_t *context; in curl_perform() local
135 context = (curl_context_t *) arg; in curl_perform()
137 curl_multi_socket_action(curl_handle, context->sockfd, flags, in curl_perform()