Commit Graph
25 Commits
Author SHA1 Message Date
ddouthitt ae18a158fc Numerous (TINY) fixes: mostly unused variables... 2001-10-05 22:04:35 +00:00
ddouthitt 7bc81c1a3c Fixed a bug where driverargs (pointers to arguments to drivers) was
not initialized to nulls.
2001-10-03 02:36:23 +00:00
ddouthitt 5c136ae24e Fixed bug relating to configuration file not being read. 2001-09-28 21:21:32 +00:00
ddouthitt 0656695583 Updates to main.c:
* Fixed up help screen to reflect added options
* Added -u option and User directive to configuration file
* Massaged help output to keep it under 24 lines
  (one typical screenful).
* Removed some unused code.
2001-09-28 17:00:01 +00:00
ddouthitt e753b0564a Updated configuration file processing:
* Options override all configuration file settings
* In absence of configuration file settings or option settings,
  defaults are used
* Added new global settings: Port, Bind, Wait, WaitTime, Debug
* Added more documentation to LCDd.conf
2001-09-28 14:23:41 +00:00
ddouthitt afd1f03c0b Updated LCDd server:
* Fixed bug that caused -c <config> option to fail
* Added -a <addr> option: address to bind to
* Added -p <port> option: port to listen on
2001-09-28 13:03:12 +00:00
ddouthitt ad5de5bb17 Drivers specified on the command line (-d) override any specified in
the configuration file.
2001-09-28 00:06:27 +00:00
ddouthitt 8cef4f9af6 Added support for the "Driver" keyword in a global section of
the configuration file.
2001-09-27 20:49:29 +00:00
ddouthitt eb6e99e7e8 Server no longer uses a fixed lcd structure, but now a pointer to
a lcd_logical_driver structure (lcd_ptr).  Fixed bug in lcd.c
which caused lcd_drv_getkey_loop to act badly.
2001-09-27 16:12:55 +00:00
ddouthitt 5ec2511d52 Updated server main():
* Uses getopt(3) -- getopt_long(3) appears to be a GNU extension
  (not used)
* Supports the use of a configuration file!  Defaults to /etc/LCDd.conf
2001-09-26 20:05:07 +00:00
ddouthitt 44e7f83dfd Removed all traces of sprintf() from all server code and
from all drivers.  All drivers compile without warnings.
2001-09-25 15:02:33 +00:00
ddouthitt a7bf3b00ad Minor changes (almost entirely in main.c):
* Heavily commented options
* Fixed bug introduced into default_duration and -w (my fault)
* Defined configuration file string defaults (no processing yet)
* Added simple optimization to option processing
* Reformed some comments for easier readability
* Fixed bug that caused program not to drop root privs when
  running on port under 1024
* Converted further to use syslog instead of printf
2001-09-25 14:03:13 +00:00
ddouthitt 875ee72589 Major change was to convert from multiple drivers to a single driver.
Other minor things: comments, more robust MtxOrb driver, and more use
of syslog.
2001-09-24 22:33:59 +00:00
ddouthitt 6a0e23dc3e Massive changes (first commit), including but not limited to:
* Ability to specify port and address to bind to
* By default, binds only to 127.0.0.1 port 13666
* Client commands now return usage when no options given
* New driver command: getinfo
* Added comments all over the place
* Used #defines to further document code
* Used #defines to set up compile-time defaults, etc.
* Cleaned up client command argument analysis in client_functions.c
* Beginning support of syslog
* Some bug fixes
2001-09-21 21:08:10 +00:00
ppokorny e7316389e8 Fixed compile errors on FreeBSD related to cfmakeraw and friends on the
serial port side.  Also fixed problems with ioperm on the parallel port
side.

Added --waittime option to the server to specify how long the server
should leave a screen up before changing to the next screen.
2001-07-18 22:30:12 +00:00
ppokorny 00cc9fca23 + Changed protocol to 0.3 because we now accept both -foo and foo
as argument introducers.  in 0.4-pre10, these were changed
   from foo to -foo and this broke many clients.  This change
   should fix that and be backward/forward compatible.
 + Added a noop function to the protocol.  This is useful for writing
   shell script clients of LCDproc.
 + Changed the shared sock_send_string function to NOT send the
   ending NUL ('\0') byte with the string.  This was confusing
   in Perl clients which saw NUL's as the first character of
   each reply.  WARNING: The LCDPROC client depended on this
   behavior, your client may too.  Use the newline instead.
   See the code in clients/lcdproc/main.c (look for "switch(buf[i])")
   to see one way to handle this.  This should allow new clients
   to connect to old servers and vice-versa.
 + Messed with include structure in .c files.  It should no longer
   be necessary to specify ../.. to get to shared code headers.
   Also, since we are using automake, the global config.h can be
   found with just #include "config.h" as it's location is included
   in a -I to the compilers.  As a result "make distcheck" now works.
2001-05-25 03:14:27 +00:00
ppokorny 3fff6381b0 Fixed problems on systems using newer GLIB and GCC (2.96) which no
longer allow the -Wp,-lang-c-c++-comments directive.  Also cleaned
up getloadavg support that had problems on Solaris and RedHat 7.1.
Removed unused variables in a number of functions as a result of
warnings when compiled with --enable-debug config option.
2001-05-15 01:55:59 +00:00
William Ferrell 82764f08e3 Thanks to Chris Debenham <chris.debenham@aus.sun.com>, the LCDproc server
process LCDd now compiles and runs properly on Solaris! Additionally, he
has provided a new driver for a 16x2 LCD made by an Australian company.

I've compiled and executed this new code on a Solaris 2.6 box, and while I
don't have the display the new driver uses, LCDd tries to use it anyway,
fails (since the device isn't installed), and continues running, so this
looks solid!
2000-11-29 18:48:53 +00:00
toykeeper 8b5b842c89 - Fixed acconfig comment-splitting problem.. (?)
- "-i off" option now works when placed after a driver
- CFontz driver no longer attempts to use 19200 baud if asked.
2000-05-13 20:21:16 +00:00
William Ferrell 6a115b4446 More formatting changes, new tags file. 2000-04-03 22:13:57 +00:00
William Ferrell 0d703c5864 Formatting changes. Again. CVS *will* get this right if it kills both of
us. :)
2000-03-30 21:58:02 +00:00
William Ferrell ddfd41f53e More formatting updates. Reduced whitespace, looks even better. 2000-03-30 20:43:33 +00:00
William Ferrell f5a5e9653b Removed lcddriver.c (doesn't do anything, isn't in any makefiles, etc.).
Passed *every* piece of source in this project through indent. I'm setting
things up with ctags soon and am actually going to *gasp* use a nice
programming environment to continue development in. :)
2000-03-30 20:20:41 +00:00
toykeeper e2401e4a72 Added PROTOCOL_VERSION define,
Started to change to new client-server protocol 0.2,
Added "slash" heartbeat mode...
2000-01-05 00:03:25 +00:00
William Ferrell 2635c3085d Initial revision 1999-12-09 23:15:14 +00:00