summaryrefslogtreecommitdiffstats
path: root/src/daemon
Commit message (Collapse)AuthorAgeFilesLines
* daemon: net: getlastdata now allocates a buffer.Gravatar Gediminas Jakutis 2019-05-211-5/+14
| | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* daemon: improve cleanup code.Gravatar Gediminas Jakutis 2019-05-204-13/+71
| | | | | | | Resolves all memory leaks that can be possibly resolved, glib nonwithstanding. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* daemon: Added missing null terminator.Gravatar Paulius Ratkevičius 2019-05-191-2/+2
| | | | Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
* daemon: Handle new settings vars.Gravatar Paulius Ratkevičius 2019-05-192-5/+51
| | | | | | Part of ticket #33 Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
* Merge branch '32-settingsv2'Gravatar Gediminas Jakutis 2019-05-192-0/+109
|\ | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * daemon: read the system-wide config file now.Gravatar Gediminas Jakutis 2019-05-191-2/+6
| | | | | | | | | | | | This usually, but now always means "/etc/usurpation.conf" Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * daemon: Settings actually parse.Gravatar Paulius Ratkevičius 2019-05-191-6/+7
| | | | | | | | Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
| * daemon: handle the daemonize flag now.Gravatar Gediminas Jakutis 2019-05-192-3/+42
| | | | | | | | | | | | | | The flag is now successfully read from the config file and is honored. Logic does not handle leading or trailing whitespace yet. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * daemon: semi-stub for config file handling.Gravatar Paulius Ratkevičius 2019-05-172-0/+68
| | | | | | | | | | | | | | The daemon now load and somewhat parses the config files. It does not do anything else with the data yet, that's a TODO. Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
* | daemon: make some functions static.Gravatar Gediminas Jakutis 2019-05-172-6/+6
| | | | | | | | | | | | | | The functions in question should only be used within the compilation unit and should not be exported. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* | Merge branch '18-purple'Gravatar Gediminas Jakutis 2019-05-176-0/+305
|\ \ | |/ |/| | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * daemon: add a skeleton libpurple interface.Gravatar Gediminas Jakutis 2019-05-176-0/+305
| | | | | | | | | | | | | | | | This loads and initialized libpurple, but does not actually do anything. This should be enough to warrant closing Ticket #18. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* | Fixed some small issues with enumerator.Gravatar Paulius Ratkevičius 2019-05-141-1/+1
| | | | | | | | | | | | Solves ticket #30 Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
* | Implemented enumerator for verbosity levels.Gravatar Paulius Ratkevičius 2019-05-142-3/+3
| | | | | | | | | | | | Solves ticket #30 Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
* | daemon: Implemented verbosity levels.Gravatar Paulius Ratkevičius 2019-05-132-3/+7
|/ | | | | | Closes ticket #29. Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
* daemon: honour the verbose flag for diagnostics.Gravatar Gediminas Jakutis 2019-04-111-3/+4
| | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* daemon: Initialisation logic patch.Gravatar Ramūnas Mažeikis 2019-04-111-0/+1
| | | | Verbose flag was not initialised in init. It is on by default now.
* daemon: added verbose flag.Gravatar Ramūnas Mažeikis 2019-04-092-0/+8
| | | | | | | | Stub implementation. This commit closes ticket 23. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* daemon: employ a flags settings variable.Gravatar Gediminas Jakutis 2019-04-013-9/+62
| | | | | | | | | | | | | | We now have a settings variable for holding various flags. Turn the daemonize setting to a flag. NOTE: the project should not have compiled since commit de18684a25cdc1e310636c5f74d4e901881b5710 but due to some unexplained circumstances, no pre-commit build testing failed. This have been fixed. This commit closes Ticket 25. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* daemon: style adjustmentGravatar Gediminas Jakutis 2019-03-293-18/+31
| | | | | | | | Fix style inconsistencies and move port settings to settings.c. Part of Ticket 3. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* daemon: improve debug output.Gravatar Gediminas Jakutis 2019-03-291-3/+7
| | | | | | | | It now outputs the ip address of the client once it connects. This commit is part of Ticket 3. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* daemon: Make debug output more informative.Gravatar Paulius Ratkevičius 2019-03-291-11/+13
| | | | | | | | Reduced the spam output and made it show state changes This commit is part of ticket 3. Signed-off-by: Paulius Ratkevičius <pauliuz95@gmail.com>
* daemon: implemented verbose output on timeout.Gravatar Paulius Ratkevičius 2019-03-291-0/+1
| | | | | | | | | Server daemon outputs error message when the client times out into stderr. This commit is part of ticket 3. Signed-off-by: Paulius Ratkevičius <pauliuz95@gmail.com>
* daemon: add networking code.Gravatar Paulius Ratkevičius 2019-03-293-0/+234
| | | | | | | | Port networking code from previous project. This commit is part of ticket 3. Signed-off-by: Paulius Ratkevičius <pauliuz95@gmail.com>
* Initial commit.Gravatar Gediminas Jakutis 2019-03-185-0/+111
This creates a working buildable dummy template to build the project upon. Everything save for the build system are demonstrational dummies and everything including the build system is written to be easily extendable. This commit closes Ticket 5. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>