1. 31 Oct, 2016 1 commit
    • Jörg Krause's avatar
      Fix running onplay after starting upmpdcli · e306de4e
      Jörg Krause authored
      
      
      If upmpdcli is started and MPD is already playing, the "onplay" command
      is not run as the configuration files is not parsed yet.
      
      Fix this by checking the state after parsing the configuration.
      Additionally, a check for the state `MPDS_UNK` is necessary to run the
      "onplay" command as upmpdcli might be just started.
      
      Signed-off-by: Jörg Krause's avatarJörg Krause <joerg.krause@embedded.rocks>
      e306de4e
  2. 14 Oct, 2016 1 commit
  3. 10 Oct, 2016 5 commits
  4. 09 Oct, 2016 6 commits
  5. 03 Oct, 2016 4 commits
  6. 02 Oct, 2016 3 commits
  7. 01 Oct, 2016 1 commit
  8. 26 Sep, 2016 1 commit
  9. 25 Sep, 2016 1 commit
  10. 24 Sep, 2016 8 commits
  11. 23 Sep, 2016 3 commits
    • Jörg Krause's avatar
      Use pkg-config for jsoncpp, libmpdclient and libmicrohttpd · a1c7cf74
      Jörg Krause authored
      libmpdclient, libmicrohttpd and jsoncpp provide a .pc file. Use
      pkg-config for detecting the libraries and for providing the necessary
      details for compiling and linking.
      
      The current build system of upmpdcli does not use PKG_CHECK_MODULES, but
      AC_LINK_IFELSE to detect jsoncpp. After bumping jsoncpp version from
      1.7.2 to 1.7.5 the detection fails, because the test program does not compile:
      
      '''
      In file included from
      /usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/json/autolink.h:9:0,
                       from
      /usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/json/json.h:9,
                       from test.c:1:
      /usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/json/config.h:155:9:
      error: 'int64_t' does not name a type
       typedef int64_t Int64;
               ^
      /usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/json/config.h:156:9:
      error: 'uint64_t' does not name a type
       typedef uint64_t UInt64;
               ^
      /usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/json/config.h:158:9:
      error: 'Int64' does not name a type
       typedef Int64 LargestInt;
               ^
      /usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/json/config.h:159:9:
      error: 'UInt64' does not name a type
       typedef UInt64 LargestUInt;
               ^
      In file included from
      /usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/json/json.h:10:0,
                       from test.c:1:
      /usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/json/value.h:184:11:
      error: 'UInt64' in namespace 'Json' does not name a type
         typedef Json::UInt64 UInt64;
      
      [..]
      '''
      
      Instead of fixing the test program use PKG_CHECK_MODULES to check for
      jsoncpp.
      
      Closes: #51
      a1c7cf74
    • Jean-Francois Dockes's avatar
      c606b654
    • Jean-Francois Dockes's avatar
  12. 22 Sep, 2016 4 commits
  13. 15 Sep, 2016 1 commit
    • Jörg Krause's avatar
      Fix unsafe header path when cross-compiling · e79123ac
      Jörg Krause authored
      
      
      Building upmpdcli aborts because of an unsafe header inclusion of
      `/usr/include/libupnpp`. Using `{prefix}` to get the header path is wrong for
      cross-compilation. Instead of hard-coding the flags for libupnpp use pkg-config
      to get the correct ones.
      
      Also expand the LIBS by upnpp_LIBS to set the necessary libraries for
      linking with libupnpp. This fixes static build issues.
      
      Signed-off-by: Jörg Krause's avatarJörg Krause <joerg.krause@embedded.rocks>
      e79123ac
  14. 14 Sep, 2016 1 commit