Home | History | Annotate | Download | only in libevent

Lines Matching refs:http_cb

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