mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Introduce RSP protocol implementation
Lacks a couple of things: - actual streaming - transcoding - authentication
This commit is contained in:
parent
21209bd040
commit
718631bab5
@ -55,6 +55,7 @@ PKG_CHECK_MODULES(AVAHI, [ avahi-client >= 0.6.24 ])
|
||||
PKG_CHECK_MODULES(SQLITE3, [ sqlite3 ],
|
||||
AC_DEFINE(HAVE_SQLITE3, 1, [define if sqlite3 is available]))
|
||||
PKG_CHECK_MODULES(FFMPEG, [ libavcodec libavformat ])
|
||||
PKG_CHECK_MODULES(MINIXML, [ mxml ])
|
||||
|
||||
AC_CHECK_HEADER(event.h, , AC_MSG_ERROR([event.h not found]))
|
||||
AC_CHECK_LIB([event_core], [event_init], [LIBEVENT_LIBS="-levent_core"], AC_MSG_ERROR([libevent not found]))
|
||||
|
@ -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
1042
src/httpd_rsp.c
Normal file
File diff suppressed because it is too large
Load Diff
20
src/httpd_rsp.h
Normal file
20
src/httpd_rsp.h
Normal 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__ */
|
Loading…
Reference in New Issue
Block a user