summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-31Merge branch 'config'v1.1-rc1Aaron Ball
2017-12-31Integrated new config code into mainAaron Ball
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.
2017-12-31Initial commit of config codeAaron Ball
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).
2017-12-31Merge branch 'gitignore'Aaron Ball
2017-12-31Added gitignoreAaron Ball
Ignore any binary files matching obj/*.o and the compiled output of make.
2017-12-24Merge branch 'errno'v1.0Aaron Ball
2017-12-24Added errno support for better error messagesAaron Ball
We now detect permission denied errors when trying to write to the brightness file. Any other problems still return a generic error message.
2017-12-24Merge branch 'init'Aaron Ball
2017-12-24Updated makefile for init scriptAaron Ball
Now the init script is deployed on make install. Also fixed DESTDIR and added BINDIR variable.
2017-12-24Initial commit of init scriptAaron Ball
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.
2017-12-23Initial commit of luminous sourceAaron Ball
Includes Makefile and LICENSE text.

Generated by cgit