owntone-server/src/httpd.h
ejurgensen 5b4ef31758 Migrate all evhttp to non-deprecated libevent2
- well except a troublemaker in httpd_daap.c (req->flags &= ~EVHTTP_PROXY_REQUEST)
2014-05-29 23:22:00 +02:00

31 lines
543 B
C

#ifndef __HTTPD_H__
#define __HTTPD_H__
#include <event.h>
#ifdef HAVE_LIBEVENT2
# include <event2/http.h>
#else
# include "evhttp/evhttp_compat.h"
#endif
void
httpd_stream_file(struct evhttp_request *req, int id);
void
httpd_send_reply(struct evhttp_request *req, int code, const char *reason, struct evbuffer *evbuf);
char *
httpd_fixup_uri(struct evhttp_request *req);
int
httpd_basic_auth(struct evhttp_request *req, char *user, char *passwd, char *realm);
int
httpd_init(void);
void
httpd_deinit(void);
#endif /* !__HTTPD_H__ */