Introduce RSP protocol implementation

Lacks a couple of things:
 - actual streaming
 - transcoding
 - authentication
This commit is contained in:
Julien BLACHE
2009-04-24 15:41:20 +02:00
parent 21209bd040
commit 718631bab5
4 changed files with 1066 additions and 2 deletions

View File

@@ -11,8 +11,8 @@ if COND_MUSEPACK
MUSEPACKSRC=scan-mpc.c
endif
mt_daapd_CPPFLAGS = -D_GNU_SOURCE @AVAHI_CFLAGS@ @SQLITE3_CFLAGS@ @FFMPEG_CFLAGS@ @CONFUSE_CFLAGS@ @TAGLIB_CFLAGS@
mt_daapd_LDADD = @AVAHI_LIBS@ @SQLITE3_LIBS@ @FFMPEG_LIBS@ @CONFUSE_LIBS@ @FLAC_LIBS@ @TAGLIB_LIBS@ @LIBEVENT_LIBS@ @LIBAVL_LIBS@ @LIBDL@
mt_daapd_CPPFLAGS = -D_GNU_SOURCE @AVAHI_CFLAGS@ @SQLITE3_CFLAGS@ @FFMPEG_CFLAGS@ @CONFUSE_CFLAGS@ @TAGLIB_CFLAGS@ @MINIXML_CFLAGS@
mt_daapd_LDADD = @AVAHI_LIBS@ @SQLITE3_LIBS@ @FFMPEG_LIBS@ @CONFUSE_LIBS@ @FLAC_LIBS@ @TAGLIB_LIBS@ @LIBEVENT_LIBS@ @LIBAVL_LIBS@ @MINIXML_LIBS@ @LIBDL@
mt_daapd_LDFLAGS = -export-dynamic
mt_daapd_SOURCES = main.c daapd.h webserver.c \
webserver.h configfile.c configfile.h err.c err.h \
@@ -21,6 +21,7 @@ mt_daapd_SOURCES = main.c daapd.h webserver.c \
filescanner_ffmpeg.c filescanner_urlfile.c filescanner_m3u.c \
mdns_avahi.c mdns_avahi.h \
httpd.c httpd.h \
httpd_rsp.c httpd_rsp.h \
db-generic.c db-generic.h ff-plugins.c ff-plugins.h \
scan-wma.c \
smart-parser.c smart-parser.h xml-rpc.c xml-rpc.h \

1042
src/httpd_rsp.c Normal file

File diff suppressed because it is too large Load Diff

20
src/httpd_rsp.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef __HTTPD_RSP_H__
#define __HTTPD_RSP_H__
#include <event.h>
#include <evhttp.h>
int
rsp_init(void);
void
rsp_deinit(void);
void
rsp_request(struct evhttp_request *req);
int
rsp_is_request(struct evhttp_request *req, char *uri);
#endif /* !__HTTPD_RSP_H__ */