marschap
12c3163092
update copyright, cleanup usage message
2006-04-05 17:37:07 +00:00
marschap
e0bc105759
add GNU getopti & check for it; prepare for use with getopt_long()
2006-01-16 19:53:28 +00:00
marschap
b0a9e45704
reorganized report_* variables in main.c and report.c so that they can be static
...
to their file; also static-alized other variables an functions in main.c
2005-04-01 17:17:05 +00:00
marschap
b9d7338a40
remove wrong declarations of report_level and report_to_syslog
2005-04-01 14:35:26 +00:00
reenoo
fa46a3e1ff
exit when unable to read config file
2003-12-25 14:03:40 +00:00
gfk
c828ddc45b
NetBSD port by Thomas Runge.
2003-08-12 02:35:01 +00:00
blt
b03a3522d9
Add support for Win32 and Winsock to main.c and sock.c code
2003-08-10 02:29:32 +00:00
robijn
75cd8a1112
- Modified forking. Child will now signal parent when it has started up OK. Only after that (or error) parent dies.
...
- Modified startup order of LCDd parts.
- Moved code for starting up the socket from main.c to sock.c
- Variable daemon_mode renamed to foreground_mode, consistent with command line.
- Variable lcd_port renamed to bind_port.
- Modified the constant stay_in_foreground for drivers hd44780 and sed1330. They don't need to stay in foreground anymore.
2003-07-30 19:57:13 +00:00
reenoo
fa1adf7317
Fixed rotate_server_screen.
...
The ServerScreen option in LCDd.conf and the -i command line parameter were parsed in server/main.c, but the value of rotate_server_screen was not respected in server/serverscreens.[c,h].
2003-06-01 09:51:38 +00:00
robijn
71922063b8
Change to priority classes. Will probably require some fixings.
...
- Now using priority classes internally and in protocol
- Converting (depreciated) priorty numbers to the classes BACKGROUND,
INFO and FOREGROUND
- Added menu_goto command (only works when menu not active)
2003-02-27 21:20:20 +00:00
robijn
4a7ef8d847
- Fixed option processing of bool options in config file.
...
- Tried to make option order more consistent
2003-02-27 20:31:51 +00:00
robijn
fe4ad1b40e
More cleaning up main.c
...
Fixed bug with last modification.
2003-02-19 15:24:37 +00:00
robijn
7a48a29357
Modifications to main.c:
...
- Now using CHAIN in stead of ESSENTIAL #define
- Changed naming of report* local variables
- Modified -s -f and -i options to accept boolean to be able to disable them too.
2003-02-16 15:29:38 +00:00
gfk
99d7717e1c
Changed getopt's signed char to an int
2002-11-14 03:23:53 +00:00
robijn
dc619e596f
- Moved some code from main.c to screenlist.c
...
- Implemented reloading by sending SIGHUP.
- Now doing 'real 8Hz' rendering and 32Hz input processing.
- Removed noscreen feature (that we rejected).
2002-08-04 20:58:51 +00:00
robijn
c8fc08f6e3
Reporting cleaned up and levels made more consistent.
2002-07-14 20:30:33 +00:00
robijn
91ffd9d109
Moved configfile.c and .h to shared/
...
Made reporting more general by making syslog appname settable.
2002-06-29 16:37:18 +00:00
robijn
8ff8857eda
Added support for client supplied menus.
...
Also modified existing menustuff slightly (on some points I made some
things more consistent).
2002-06-28 23:35:55 +00:00
robijn
3168d4cafc
Menustuff added/modified!
2002-05-26 19:21:23 +00:00
reenoo
23dd4f2898
GPL...
2002-05-09 20:27:01 +00:00
robijn
726f2f995e
Big changes in code of clients, screens and widgets.
...
- Moved and altered code to create, destroy and manipulate clients, screens
and widgets in an OO-like manner.
- Moved command execution code to a commands directory, splitting commands to
what subject they are concerned.
- Menus are temporary disabled while working on new menu structure.
2002-04-26 00:00:31 +00:00
gfk
924b2e51dd
Implemented the no ServerScreen feature. Also corrected a bug which prevented to run without any screen.
2002-03-15 20:24:39 +00:00
robijn
dba163c4a4
Drivers are now being loaded as modules.
2002-02-21 22:50:12 +00:00
William Ferrell
4c7b10c28d
Cosmetic change to server identification string
2001-12-31 22:16:59 +00:00
robijn
71056ec551
v0.5 kick-off
2001-12-30 00:15:25 +00:00
robijn
b228b720d9
Added uniform copyright notice to all files of the server core.
2001-12-27 23:30:36 +00:00
reenoo
242bce0a88
fixed default configfile location
2001-12-27 10:58:29 +00:00
dglaude
4991788dc2
debug_level... yes but how do we become compatible ;=)
2001-11-30 17:14:11 +00:00
robijn
ff1704a734
Compatibility fix for reporting patch:
...
Added debug_level variable again.
2001-11-30 17:02:43 +00:00
robijn
285d29edf3
Reporting patch.
2001-11-29 14:09:13 +00:00
ddouthitt
6f686358d9
Minor bug fixes to main.c
2001-11-14 21:44:42 +00:00
robijn
a6fec90312
Put -b option and backlight= (config file) option in again.
...
Plus minor bugfixes.
2001-11-13 12:46:15 +00:00
glengray
e137c1011b
Added the client_function timeout to the code.
...
Also noticed a BIG bug in the screen_set code, the strcmp's never worked, they
where no longer checking the results == 0.
2001-11-12 17:35:43 +00:00
robijn
43e7dfe7be
Bug fix to main.c: fixed bind= and user= reading, modified order of
...
init_drivers and daemonize.
2001-10-25 21:22:39 +00:00
robijn
dd52f3ddba
Fix for bug in reading drivers from configfile.
2001-10-24 20:04:12 +00:00
robijn
dc0f01850b
First step towards the v0.5 API. New configfile routines in use.
...
Configfile adapted. For drivers: configfile routines are available.
2001-10-24 14:26:15 +00:00
ddouthitt
f8b89f2666
This is a "cleaner" fix (hack) to get around s getting clobbered
...
in main.c. It also documents extensively WHERE it is getting clobbered;
now if one only knew why.....
2001-10-06 01:27:09 +00:00
ddouthitt
10a79e3859
Re-enable a hack in main.c to fix a "clobbered" pointer; this is
...
NOT a fix. Work continues...
2001-10-06 00:32:02 +00:00
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