Lines Matching refs:http_cb
3257 struct evhttp_cb *http_cb; in evhttp_free() local
3277 while ((http_cb = TAILQ_FIRST(&http->callbacks)) != NULL) { in evhttp_free()
3278 TAILQ_REMOVE(&http->callbacks, http_cb, next); in evhttp_free()
3279 mm_free(http_cb->what); in evhttp_free()
3280 mm_free(http_cb); in evhttp_free()
3404 struct evhttp_cb *http_cb; in evhttp_set_cb() local
3406 TAILQ_FOREACH(http_cb, &http->callbacks, next) { in evhttp_set_cb()
3407 if (strcmp(http_cb->what, uri) == 0) in evhttp_set_cb()
3411 if ((http_cb = mm_calloc(1, sizeof(struct evhttp_cb))) == NULL) { in evhttp_set_cb()
3416 http_cb->what = mm_strdup(uri); in evhttp_set_cb()
3417 if (http_cb->what == NULL) { in evhttp_set_cb()
3419 mm_free(http_cb); in evhttp_set_cb()
3422 http_cb->cb = cb; in evhttp_set_cb()
3423 http_cb->cbarg = cbarg; in evhttp_set_cb()
3425 TAILQ_INSERT_TAIL(&http->callbacks, http_cb, next); in evhttp_set_cb()
3433 struct evhttp_cb *http_cb; in evhttp_del_cb() local
3435 TAILQ_FOREACH(http_cb, &http->callbacks, next) { in evhttp_del_cb()
3436 if (strcmp(http_cb->what, uri) == 0) in evhttp_del_cb()
3439 if (http_cb == NULL) in evhttp_del_cb()
3442 TAILQ_REMOVE(&http->callbacks, http_cb, next); in evhttp_del_cb()
3443 mm_free(http_cb->what); in evhttp_del_cb()
3444 mm_free(http_cb); in evhttp_del_cb()