Lines Matching refs:http_cb
3673 struct evhttp_cb *http_cb; in evhttp_free() local
3693 while ((http_cb = TAILQ_FIRST(&http->callbacks)) != NULL) { in evhttp_free()
3694 TAILQ_REMOVE(&http->callbacks, http_cb, next); in evhttp_free()
3695 mm_free(http_cb->what); in evhttp_free()
3696 mm_free(http_cb); in evhttp_free()
3857 struct evhttp_cb *http_cb; in evhttp_set_cb() local
3859 TAILQ_FOREACH(http_cb, &http->callbacks, next) { in evhttp_set_cb()
3860 if (strcmp(http_cb->what, uri) == 0) in evhttp_set_cb()
3864 if ((http_cb = mm_calloc(1, sizeof(struct evhttp_cb))) == NULL) { in evhttp_set_cb()
3869 http_cb->what = mm_strdup(uri); in evhttp_set_cb()
3870 if (http_cb->what == NULL) { in evhttp_set_cb()
3872 mm_free(http_cb); in evhttp_set_cb()
3875 http_cb->cb = cb; in evhttp_set_cb()
3876 http_cb->cbarg = cbarg; in evhttp_set_cb()
3878 TAILQ_INSERT_TAIL(&http->callbacks, http_cb, next); in evhttp_set_cb()
3886 struct evhttp_cb *http_cb; in evhttp_del_cb() local
3888 TAILQ_FOREACH(http_cb, &http->callbacks, next) { in evhttp_del_cb()
3889 if (strcmp(http_cb->what, uri) == 0) in evhttp_del_cb()
3892 if (http_cb == NULL) in evhttp_del_cb()
3895 TAILQ_REMOVE(&http->callbacks, http_cb, next); in evhttp_del_cb()
3896 mm_free(http_cb->what); in evhttp_del_cb()
3897 mm_free(http_cb); in evhttp_del_cb()