Age | Commit message (Collapse) | Author |
|
|
|
Now we check the config path (/etc/luminous.conf) for a config file. If
one is present, its contents are parsed and loaded into the properties
object. This occurs before parsing command line arguments, so all config
values can be overridden by the user at runtime.
The config file currently supports "level", "rate", and "step" values.
It is delimited by the '=' char and can handle any spacing between key,
delimiter, and value.
We also handle no config file being present as well as no command line
arguments being specified by using sane defaults hardcoded into the
program.
Added props constructor to ensure state of a freshly allocated props
struct.
|
|
Config code supports loading of a specified configuration file,
delimited by the '=' character. Code dynamically allocates memory in
heap and thus the config_free function must be called when done with the
config object.
This adds the constructor, load, getter, dump, and descructor functions
for the config struct.
This code passes valgrind tests with no memory leaks (assuming
the config_free destructor is called).
|
|
|
|
Ignore any binary files matching obj/*.o and the compiled output of
make.
|
|
|
|
We now detect permission denied errors when trying to write to the
brightness file. Any other problems still return a generic error
message.
|
|
|
|
Now the init script is deployed on make install.
Also fixed DESTDIR and added BINDIR variable.
|
|
This script just sets the permissions on the brightness file so it is
writable by all users on the system. This allows users to run luminous
without the need to be root.
On start, this script sets brightness to 666. On stop, sets brightness
file permissions to 644.
|
|
Includes Makefile and LICENSE text.
|