Commit Graph
1071 Commits
Author SHA1 Message Date
mjona 555ed9099a All static memory allocations were turned into dynamical ones.
Improved configuration parameters:
- FifoPath	to specify the fifo path (if absent, a built in replacement is used)
- FifoBufSize	to specify the size of the internal buffer (this parameter is optional as
		the plugin will try to match the number of display columns; if it fails and
		no FifoBufSize parameter is supplied then a built in replacement is used)
Simplified and rationalized init and exit functions:
most global variables have been localized.
Fixed several off-by-one overflows memory bugs.



git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1108 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-11 16:48:56 +00:00
mzuther b35fc3f8cb timer.c: two small optimizations (removed "flag"; tv_usec can't be negative)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1107 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-07 20:45:51 +00:00
mzuther 7496af7c86 added grouping of widgets by update interval (new file "timer_group.c")
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1106 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-07 14:03:46 +00:00
mzuther dcb29d2726 BUG: handle negative delays in timer_process() (timer.c)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1105 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-07 02:52:59 +00:00
mzuther 7a8ba6a113 timer.c: I had forgotten how to initialize a "struct" :)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1104 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06 23:51:27 +00:00
mzuther fd89168c6b BUG: compensate timers for processing delay ("timer.c")
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1103 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06 21:42:05 +00:00
mzuther 43aef95679 timer.c: exchanged "proprietary code" with timeradd() and timersub() functions
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1102 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06 11:29:12 +00:00
mzuther 15d08f4e90 timer.c: removed fruitless changes to variable "flag" from timer_process()
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1101 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04 13:48:59 +00:00
mzuther 39494819fd According to its man page, timercmp() is broken on some systems -- applied the recommended (and equivalent) change.
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1100 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04 13:18:13 +00:00
michael 0dab110627 small warning removed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1099 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04 09:37:37 +00:00
michael 88b4878241 clear errno after creating the FIFO by Claas Hilbrecht
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1098 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04 09:37:12 +00:00
michael 755c25c5c8 plugin_huawei from Jar (forgot to add it last time)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1097 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-30 08:15:04 +00:00
michael d0405cd2da plugin_huawei from Jar
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1096 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-28 17:19:58 +00:00
mzuther 3e58b77fe1 picoLCDGraphic: updated example configuration files in "contrib/picoLCD"
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1095 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-24 20:14:33 +00:00
mzuther 76db34b59e picoLCDGraphic: update display regularly using a timer (*much* faster than redrawing the whole display after each changed widget; you may get the old behaviour by setting "Update 0")
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1094 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-24 19:45:27 +00:00
volker f622ea6ee2 additional debugging output
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1093 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-24 15:33:13 +00:00
volker 6cb52cd106 fixed compile error on systems without strndup()
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1092 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-23 12:04:55 +00:00
michael 9fdf04e659 include config.h in *every* source file
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1091 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-21 04:26:24 +00:00
mzuther 28645bbb94 X11 driver: do not display key strokes that do not map to a button
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1090 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-20 14:53:56 +00:00
mzuther 7f823fa243 indent.sh: ignore indentation profiles, so things are not messed up accidentally
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1089 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-20 11:06:21 +00:00
mzuther 04562ff4b7 X11 driver: handle key presses (arrows, RET and ESC) in addition to clicks on the GUI buttons
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1088 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-20 10:59:43 +00:00
mzuther eb67cb9dab included "config.h" in "plugin.h" and changed "plugin.c" and "plugin_sample.c" accordingly
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1087 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-19 22:59:24 +00:00
mzuther 8b4d88284a plugin_python.c: print tracebacks also for Python scripts that do not "compile"
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1086 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-19 14:26:33 +00:00
mzuther 2e2e535b2c plugin_python.c: print Python tracebacks on stderr (yay!)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1085 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-19 14:15:53 +00:00
mzuther ef55b42807 fixed compile error by including "config.h" in "plugin_python.c"
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1084 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-19 12:21:43 +00:00
michael 9766d9e8b5 support for 'aligned pingpong' by Martin Zuther
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1083 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-18 13:12:25 +00:00
volker 378970ea01 use own strndup() from evaluator if not available on system
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1082 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-17 14:40:03 +00:00
volker 473fd2d3ee fixed typo
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1081 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-17 12:26:23 +00:00
volker f1e14296a1 fixed memory leak in using strdup() instead of strdupa()
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1080 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-17 12:25:17 +00:00
volker 69fecdd3d6 Ticket 182
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1079 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-15 21:44:04 +00:00
volker ac266e1877 strdupa uses alloca which is not available everywhere. strdup is used instead
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1078 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-15 21:36:33 +00:00
volker 55e86007a4 plugins work on MacOS X: proc_stat, cpuinfo
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1077 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-05 22:29:16 +00:00
michael da4098a3eb linker error with LW_ABP corrected
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1076 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-03 14:53:21 +00:00
michael 0bf54016ab update to autoconf 2.65
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1075 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-01-03 14:20:10 +00:00
michael 8d70d26832 indentation
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1074 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-22 05:29:33 +00:00
michael 012bbc9dd7 indentation
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1073 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-22 05:29:04 +00:00
michael 0eda4085c4 add event.h to extra sources
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1072 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-22 05:28:45 +00:00
michael 3379ecac26 Logic Way ABP08 ABP09 enhancements by Arndt Kritzner
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1071 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-22 05:27:53 +00:00
edman007 949791258d Remove warnings from mpris plugin
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1070 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-21 18:31:45 +00:00
edman007 973fbdac91 Fix the dbus/pkg-config confgure (Now the configure script will probably require pkg-config to be installed)
Defines to compile the dbus plugin are now properly set


git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1069 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-21 18:19:09 +00:00
edman007 42d2deefb2 * Fix segfault on shutdown in drv_picoLCDGraphic.c
* Prevent dbus from exiting the program when compiled with -DDEBUG


git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1068 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-21 14:49:34 +00:00
volker cd705f8401 special commandline parameters for X11
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1067 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-20 14:49:34 +00:00
edman007 82a0af2c30 Make the dbus plugin shutdown without showing dbus leaks when compiled with -DDEBUG
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1066 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-19 04:32:13 +00:00
edman007 a8d1a67890 drv_PICGraphic.c
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1065 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-19 04:28:49 +00:00
edman007 42f17dd145 the DBus plugin is now disabled when dbus is not installed instead of stopping the build
Fix a few warnings in drv_PICGraphic.c


git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1064 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-18 23:23:25 +00:00
edman007 a1101ce4a4 Prevent HD44780 and HD44780_I2C from building at the same time
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1063 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-18 23:21:32 +00:00
volker 1622daf8d0 disabling some driver if no parport available
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1062 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-18 17:19:16 +00:00
edman007 7f3ada9b1b Removed warning for the mpris dbus plugin
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1061 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-18 01:59:59 +00:00
volker 9c93110c62 MatrixOrbitalGX
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1060 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-18 00:19:40 +00:00
volker 3fa2bb9a9b ppoll() is not available in glibc before 2.4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1059 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-18 00:11:32 +00:00