From 38f5009140be49d399068699bf6fa7c40643cebc Mon Sep 17 00:00:00 2001 From: Andrew Karpow Date: Tue, 3 Dec 2013 21:48:49 +0100 Subject: [PATCH] fixed firefox websocket bug, added assets --- CMakeLists.txt | 5 +- htdocs/assets/favicon.ico | Bin 0 -> 4286 bytes htdocs/css/mpd.css | 1 - htdocs/index.html | 14 +- htdocs/js/jquery.simplePagination.js | 268 +++++++++++++++++++++++++++ htdocs/js/mpd.js | 26 ++- src/http_server.c | 109 ++++++++++- src/http_server.h | 1 - src/mpd_client.c | 32 +++- src/mpd_client.h | 1 + src/urldecode.c | 40 ++++ src/ympd_process.c | 1 + 12 files changed, 464 insertions(+), 34 deletions(-) create mode 100644 htdocs/assets/favicon.ico create mode 100644 htdocs/js/jquery.simplePagination.js create mode 100644 src/urldecode.c create mode 100644 src/ympd_process.c diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e50618..8fce450 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ set(CPACK_PACKAGE_VENDOR "Andrew Karpow ") set(CPACK_DEBIAN_PACKAGE_MAINTAINER "andy@ndyk.de") set(CPACK_PACKAGE_VERSION_MAJOR "0") set(CPACK_PACKAGE_VERSION_MINOR "1") -set(CPACK_PACKAGE_VERSION_PATCH "0") +set(CPACK_PACKAGE_VERSION_PATCH "2") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/") find_package(LibWebSockets REQUIRED) @@ -16,7 +16,8 @@ find_package(LibMPDClient REQUIRED) include(CheckCSourceCompiles) include(CPack) -set(CMAKE_C_FLAGS_DEBRELEASE "-O2 -DNDEBUG -pipe") +set(CMAKE_C_FLAGS_DEBRELEASE "-Wall -O2 -DNDEBUG -pipe") +set(CMAKE_C_FLAGS_DEBUG "-Wall -ggdb") set(SOURCES src/ympd.c diff --git a/htdocs/assets/favicon.ico b/htdocs/assets/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..01108ee5dfbfe70664d46b72ed10a39e18be7fc0 GIT binary patch literal 4286 zcmb`JOKTKC6oo4&48o8IJ{G!|cBQKXTo`w{jKknk@bM3fYuybvLO=&W7iRB5B!3_- zGl-%gj!z=)CjY?YfRgrnp$jf$Rd;7*Za7KxeVo&M`&M$DKRvoVy^% z<*o|&XJk$BoDr6Uj&QpGYkb7WnYEo0VOQ7?-V5J_Z^G9Ctnm>ehuln<*5*af6MhJv zgq@loml|r}n8eyDdL!^`b#=o$YBvSA4r6zeye))$_L^rL7O3hCTyWMg@^%HQ#hQ2h zL0A{=3M;~L0oM44kwb1+4`LCj=}r`14nQRoPE?%`Y! z%FOF~zFj5163&+t!3npoK@)Ahp>{Tgy5?Lfvrr#SxY=v>g*hQKIN|pCX!`H>EcD?X z2&p}r(x(U0_WzeS`U3NmvTF*&`X8IW)f7qL_x*?Ot#G{}pD>&|27dlx`)^%&Rr`;b z<32b$s|+qUt-jxXP5Hy~=c9al$5QrOfg3_>&SEvE1e`}2qV*!kNhkg#J3f65J) zopIiqKYyvogxL3o{V}caKS$N~2MxZ7b|26y-qB@YQll0Q+jle`MhNHS+YEB)6ZKX9 zH!0;mqlQ|$=eQ3v(27}G&TYZoFKhbO7nq~6eL;*Ia>Jg(12^YDnQ`CjE%GgxA7+?+ zv?{=}T!1w`V&vFa^Bi#2?IU@yK6ozv($`^uu*Wu!HC%PIm3m-p{pMYTGZ}K1T~iAO z{h7p=6ZQprv+5b`eUM8HbDo+tg=$--OwNl9ftlv)=Gl19fHgj1q!{PHoGvQ6tZt%lCEPf1SHBZj4<jPaMcfYZf=SK#4-UGcq`Jgw>2W#W* e-rBe&EEHhf-6KYh&!-j+xZs2v4YUq4CH)Vv!>~U9 literal 0 HcmV?d00001 diff --git a/htdocs/css/mpd.css b/htdocs/css/mpd.css index deb280c..b1a3a0a 100644 --- a/htdocs/css/mpd.css +++ b/htdocs/css/mpd.css @@ -31,4 +31,3 @@ body { .btn-group-hover { opacity: 0; } - diff --git a/htdocs/index.html b/htdocs/index.html index 1e286d7..6ef24fa 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -15,6 +15,7 @@ +