Changeset 887
- Timestamp:
- 08/03/08 05:10:49 (4 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 8 modified
-
Makefile.am (modified) (2 diffs)
-
Makefile.in (modified) (2 diffs)
-
config.h.in (modified) (1 diff)
-
configure (modified) (4 diffs)
-
drivers.m4 (modified) (14 diffs)
-
drv.c (modified) (3 diffs)
-
drv_D4D.c (added)
-
plugin_mpd.c (modified) (8 diffs)
-
smoketest.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.am
r884 r887 17 17 #AM_CFLAGS = -D_GNU_SOURCE -std=c99 -m64 -Wall -W -pedantic -Wno-variadic-macros -fno-strict-aliasing 18 18 19 lcd4linux_LDFLAGS = 19 lcd4linux_LDFLAGS = 20 20 lcd4linux_LDADD = @DRIVERS@ @PLUGINS@ @DRVLIBS@ @PLUGINLIBS@ 21 21 lcd4linux_DEPENDENCIES = @DRIVERS@ @PLUGINS@ … … 73 73 drv_Curses.c \ 74 74 drv_Cwlinux.c \ 75 drv_D4D.c \ 75 76 drv_EA232graphic.c \ 76 77 drv_G15.c \ -
trunk/Makefile.in
r884 r887 272 272 drv_Curses.c \ 273 273 drv_Cwlinux.c \ 274 drv_D4D.c \ 274 275 drv_EA232graphic.c \ 275 276 drv_G15.c \ … … 455 456 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drv_Curses.Po@am__quote@ 456 457 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drv_Cwlinux.Po@am__quote@ 458 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drv_D4D.Po@am__quote@ 457 459 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drv_EA232graphic.Po@am__quote@ 458 460 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drv_G15.Po@am__quote@ -
trunk/config.h.in
r884 r887 413 413 /* CwLinux driver */ 414 414 #undef WITH_CWLINUX 415 416 /* D4D driver */ 417 #undef WITH_D4D 415 418 416 419 /* Define if using the dmalloc debugging malloc package */ -
trunk/configure
r884 r887 1343 1343 (try 'all,\!<driver>' if your shell complains...) 1344 1344 possible drivers are: 1345 BeckmannEgle, BWCT, CrystalFontz, Curses, Cwlinux, 1345 BeckmannEgle, BWCT, CrystalFontz, Curses, Cwlinux, D4D 1346 1346 G15, HD44780, IRLCD, LCD2USB LCDLinux, LCDTerm, LPH7508, 1347 1347 LUIse, M50530, MatrixOrbital, MilfordInstruments, … … 7541 7541 CURSES="yes" 7542 7542 CWLINUX="yes" 7543 D4D="yes" 7543 7544 EA232graphic="yes" 7544 7545 G15="yes" … … 7587 7588 Cwlinux) 7588 7589 CWLINUX=$val 7590 ;; 7591 D4D) 7592 D4D=$val 7589 7593 ;; 7590 7594 EA232graphic) … … 7780 7784 cat >>confdefs.h <<\_ACEOF 7781 7785 #define WITH_CWLINUX 1 7786 _ACEOF 7787 7788 fi 7789 7790 if test "$D4D" = "yes"; then 7791 TEXT="yes" 7792 GRAPHIC="yes" 7793 SERIAL="yes" 7794 DRIVERS="$DRIVERS drv_D4D.o" 7795 7796 cat >>confdefs.h <<\_ACEOF 7797 #define WITH_D4D 1 7782 7798 _ACEOF 7783 7799 -
trunk/drivers.m4
r884 r887 26 26 AC_MSG_CHECKING([which drivers to compile]) 27 27 AC_ARG_WITH( 28 drivers, 28 drivers, 29 29 [ --with-drivers=<list> compile driver for displays in <list>,] 30 [ drivers may be separated with commas,] 31 [ 'all' (default) compiles all available drivers,] 32 [ drivers may be excluded with 'all,!<driver>',] 33 [ (try 'all,\!<driver>' if your shell complains...)] 34 [ possible drivers are:] 35 [ BeckmannEgle, BWCT, CrystalFontz, Curses, Cwlinux, ]30 [ drivers may be separated with commas,] 31 [ 'all' (default) compiles all available drivers,] 32 [ drivers may be excluded with 'all,!<driver>',] 33 [ (try 'all,\!<driver>' if your shell complains...)] 34 [ possible drivers are:] 35 [ BeckmannEgle, BWCT, CrystalFontz, Curses, Cwlinux, D4D] 36 36 [ G15, HD44780, IRLCD, LCD2USB LCDLinux, LCDTerm, LPH7508,] 37 37 [ LUIse, M50530, MatrixOrbital, MilfordInstruments,] … … 39 39 [ RouterBoard, Sample, serdisplib, SimpleLCD, st2205, T6963, Trefon,] 40 40 [ USBLCD, USBHUB, WincorNixdorf, X11], 41 drivers=$withval, 41 drivers=$withval, 42 42 drivers=all 43 43 ) … … 47 47 for driver in $drivers; do 48 48 49 case $driver in 50 !*) 49 case $driver in 50 !*) 51 51 val="no" 52 52 driver=`echo $driver|cut -c 2-` 53 53 ;; 54 *) 54 *) 55 55 val="yes" 56 56 ;; 57 57 esac 58 58 59 59 case "$driver" in 60 60 all) … … 64 64 CURSES="yes" 65 65 CWLINUX="yes" 66 D4D="yes" 66 67 EA232graphic="yes" 67 68 G15="yes" … … 77 78 MATRIXORBITAL="yes" 78 79 MILINST="yes" 79 NORITAKE="yes" 80 NULL="yes" 80 NORITAKE="yes" 81 NULL="yes" 81 82 PERTELIAN="yes" 82 83 PICOLCD="yes" … … 111 112 CWLINUX=$val 112 113 ;; 114 D4D) 115 D4D=$val 116 ;; 113 117 EA232graphic) 114 118 EA232graphic=$val … … 164 168 picoLCD) 165 169 PICOLCD=$val 166 ;; 170 ;; 167 171 picoLCDGraphic) 168 172 PICOLCDGRAPHIC=$val 169 ;; 170 173 ;; 174 171 175 PNG) 172 176 PNG=$val … … 208 212 X11=$val 209 213 ;; 210 *) 214 *) 211 215 AC_MSG_ERROR([Unknown driver '$driver']) 212 216 ;; … … 270 274 else 271 275 AC_MSG_WARN(curses not found: Curses driver disabled) 272 fi 276 fi 273 277 fi 274 278 … … 282 286 fi 283 287 288 if test "$D4D" = "yes"; then 289 TEXT="yes" 290 GRAPHIC="yes" 291 SERIAL="yes" 292 DRIVERS="$DRIVERS drv_D4D.o" 293 AC_DEFINE(WITH_D4D,1,[D4D driver]) 294 fi 295 284 296 if test "$EA232graphic" = "yes"; then 285 297 GRAPHIC="yes" … … 351 363 else 352 364 AC_MSG_WARN(linux/lcd-linux.h or linux/hd44780.h not found: LCD-Linux driver disabled) 353 fi 365 fi 354 366 fi 355 367 … … 590 602 DRVLIBS="$DRVLIBS -L$ac_x_libraries -lX11" 591 603 fi 592 CPP_FLAGS="$CPPFLAGS $X_CFLAGS" 604 CPP_FLAGS="$CPPFLAGS $X_CFLAGS" 593 605 AC_DEFINE(WITH_X11, 1, [X11 driver]) 594 606 fi … … 605 617 AC_MSG_ERROR([You should activate at least one driver...]) 606 618 fi 607 619 608 620 # generic text driver 609 621 if test "$TEXT" = "yes"; then … … 619 631 AC_DEFINE(WITH_GD, 1, [GD library]) 620 632 AC_DEFINE(WITH_IMAGE, 1, [image widget]) 621 fi 633 fi 622 634 fi 623 635 -
trunk/drv.c
r884 r887 25 25 */ 26 26 27 /* 27 /* 28 28 * exported functions: 29 29 * … … 53 53 extern DRIVER drv_Curses; 54 54 extern DRIVER drv_Cwlinux; 55 extern DRIVER drv_D4D; 55 56 extern DRIVER drv_EA232graphic; 56 57 extern DRIVER drv_G15; … … 106 107 &drv_Cwlinux, 107 108 #endif 109 #ifdef WITH_D4D 110 &drv_D4D, 111 #endif 108 112 #ifdef WITH_EA232graphic 109 113 &drv_EA232graphic, -
trunk/plugin_mpd.c
r885 r887 549 549 mpd_update(); 550 550 if (currentSong != NULL) { 551 mpd_sendPrevCommand(conn);551 mpd_sendPrevCommand(conn); 552 552 mpd_finishCommand(conn); 553 if (conn->error) {554 error("[MPD] error mpd_finishCommand: %s", conn->errorStr);553 if (conn->error) { 554 error("[MPD] error mpd_finishCommand: %s", conn->errorStr); 555 555 } 556 556 } … … 562 562 if (currentSong != NULL) { 563 563 mpd_sendStopCommand(conn); 564 mpd_finishCommand(conn);564 mpd_finishCommand(conn); 565 565 if (conn->error) { 566 566 error("[MPD] error mpd_finishCommand: %s", conn->errorStr); … … 578 578 mpd_sendPauseCommand(conn, 1); 579 579 } 580 581 mpd_finishCommand(conn);580 581 mpd_finishCommand(conn); 582 582 if (conn->error) { 583 583 error("[MPD] error mpd_finishCommand: %s", conn->errorStr); … … 591 591 if (currentSong != NULL) { 592 592 l_volume += 5; 593 if (l_volume > 100) 594 l_volume =100;593 if (l_volume > 100) 594 l_volume = 100; 595 595 mpd_sendSetvolCommand(conn, l_volume); 596 mpd_finishCommand(conn);596 mpd_finishCommand(conn); 597 597 if (conn->error) { 598 598 error("[MPD] error mpd_finishCommand: %s", conn->errorStr); … … 605 605 mpd_update(); 606 606 if (currentSong != NULL) { 607 if (l_volume > 5) 607 if (l_volume > 5) 608 608 l_volume -= 5; 609 609 else 610 610 l_volume = 0; 611 611 mpd_sendSetvolCommand(conn, l_volume); 612 mpd_finishCommand(conn);612 mpd_finishCommand(conn); 613 613 if (conn->error) { 614 614 error("[MPD] error mpd_finishCommand: %s", conn->errorStr); … … 621 621 mpd_update(); 622 622 if (currentSong != NULL) { 623 623 624 624 l_repeatEnabled = !l_repeatEnabled; 625 625 mpd_sendRepeatCommand(conn, l_repeatEnabled); 626 627 mpd_finishCommand(conn);626 627 mpd_finishCommand(conn); 628 628 if (conn->error) { 629 629 error("[MPD] error mpd_finishCommand: %s", conn->errorStr); … … 637 637 mpd_update(); 638 638 if (currentSong != NULL) { 639 639 640 640 l_randomEnabled = !l_randomEnabled; 641 641 mpd_sendRandomCommand(conn, l_randomEnabled); 642 643 mpd_finishCommand(conn);642 643 mpd_finishCommand(conn); 644 644 if (conn->error) { 645 645 error("[MPD] error mpd_finishCommand: %s", conn->errorStr); … … 736 736 AddFunction("mpd::cmdToggleRandom", 0, toggleRandom); 737 737 AddFunction("mpd::cmdToggleRepeat", 0, toggleRepeat); 738 738 739 739 AddFunction("mpd::formatTimeMMSS", 1, formatTimeMMSS); 740 740 AddFunction("mpd::formatTimeDDHHMM", 1, formatTimeDDHHMM); -
trunk/smoketest.sh
r884 r887 10 10 ./bootstrap 11 11 12 for driver in BeckmannEgle BWCT CrystalFontz Curses Cwlinux EA232graphic G15 HD44780 IRLCD LCD2USB LCDLinux LCDTerm LEDMatrix LPH7508 LUIse M50530 MatrixOrbital MilfordInstruments Noritake NULL Pertelian picoLCD picoLCDGraphic PNG PPM RouterBoard Sample serdisplib SimpleLCD T6963 Trefon USBHUB USBLCD WincorNixdorf X11; do12 for driver in BeckmannEgle BWCT CrystalFontz Curses Cwlinux D4D EA232graphic G15 HD44780 IRLCD LCD2USB LCDLinux LCDTerm LEDMatrix LPH7508 LUIse M50530 MatrixOrbital MilfordInstruments Noritake NULL Pertelian picoLCD picoLCDGraphic PNG PPM RouterBoard Sample serdisplib SimpleLCD T6963 Trefon USBHUB USBLCD WincorNixdorf X11; do 13 13 14 14 make distclean
