summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Whole-project: partial implementation of protocol.Gravatar Ramūnas Mažeikis 2019-05-186-0/+351
| | | | | | | | | | | | | | | | | | | | | | | | This commit is part of ticket #31. Branch is not in a compiling state. Work is being done on utility functions and protocol implementation. To be completed later. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* | | daemon: net: getlastdata now allocates a buffer.Gravatar Gediminas Jakutis 2019-05-212-7/+16
| | | | | | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* | | Updated .gitignoreGravatar Paulius Ratkevičius 2019-05-211-0/+1
| |/ |/| | | | | Signed-off-by: Paulius Ratkevičius <pauliuz95@gmail.com>
* | daemon: improve cleanup code.Gravatar Gediminas Jakutis 2019-05-205-13/+72
| | | | | | | | | | | | | | 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-193-1/+110
|\ \ | | | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * | daemon: read the system-wide config file now.Gravatar Gediminas Jakutis 2019-05-192-3/+7
| | | | | | | | | | | | | | | | | | 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>
* | | adjust meson project default settings.Gravatar Gediminas Jakutis 2019-05-171-1/+1
| | | | | | | | | | | | | | | | | | | | | make it more debug-friendly by defaut, seeing how it's in active pre-release development. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* | | Merge branch '18-purple'Gravatar Gediminas Jakutis 2019-05-179-2/+338
|\ \ \ | |/ / |/| | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * | daemon: add a skeleton libpurple interface.Gravatar Gediminas Jakutis 2019-05-179-2/+338
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge updated branch '29-verbosity-levels'Gravatar Gediminas Jakutis 2019-05-173-4/+12
|\ \ \
| * | | Fixed some small issues with enumerator.Gravatar Paulius Ratkevičius 2019-05-142-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Solves ticket #30 Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
| * | | Implemented enumerator for verbosity levels.Gravatar Paulius Ratkevičius 2019-05-143-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | Solves ticket #30 Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
* | | | add *.swp to .gitignore.Gravatar Gediminas Jakutis 2019-05-171-0/+1
| |_|/ |/| | | | | | | | | | | | | | | | | This accomodates configurations where vim stores the swap files in the working directory. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* | | Merge branch '29-verbosity-levels'.Gravatar Gediminas Jakutis 2019-05-133-4/+14
|\| |
| * | daemon: Implemented verbosity levels.Gravatar Paulius Ratkevičius 2019-05-133-4/+14
| | | | | | | | | | | | | | | | | | Closes ticket #29. Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
* | | device: fix info cycling.Gravatar Gediminas Jakutis 2019-05-131-3/+3
| | | | | | | | | | | | | | | | | | Now actually shows daemon AND device ip. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* | | device: Bug-fix to make text and dots not overlap.Gravatar Ramūnas Mažeikis 2019-05-121-3/+4
| | | | | | | | | | | | | | | | | | | | | Dots and text to not overlap. Also, text now utilizes all available space (2 lines). Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* | | device: Device prints first meaningful data.Gravatar Ramūnas Mažeikis 2019-05-123-11/+481
| |/ |/| | | | | | | | | | | | | Device prints its own IP address and that of server daemon. This commit is part of ticket #28. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* | device: fix screen code.Gravatar Gediminas Jakutis 2019-05-113-9/+26
|/ | | | | | Make the screen code actually work... AND build, to begin with. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* device: Toy screen logic.Gravatar Ramūnas Mažeikis 2019-04-111-1/+27
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* daemon: honour the verbose flag for diagnostics.Gravatar Gediminas Jakutis 2019-04-111-3/+4
| | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* device: make sure to flush the udp buffer on time.Gravatar Gediminas Jakutis 2019-04-111-8/+8
| | | | 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.
* device: make ssid and password easy to modifyGravatar Gediminas Jakutis 2019-04-103-6/+41
| | | | | | | | | | | | | The SSID and PSK the device is going to attempt connecting can now be changed with a recompiliation by adjusting the "ssid" and "password" build options for meson with e.g. meson configure -Dssid=realssid -Dpassword=actualpsk Default SSID and PSK are included to otherwise allow test builds. this closes ticket 26. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
* daemon: added verbose flag.Gravatar Ramūnas Mažeikis 2019-04-093-0/+10
| | | | | | | | 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-014-10/+63
| | | | | | | | | | | | | | 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-294-18/+33
| | | | | | | | 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>
* device: add rudimentary network code.Gravatar Gediminas Jakutis 2019-03-291-15/+103
| | | | | | | | | This allows demonstrating basic autodiscovery and simulate data transactions between the server daemon and the device. 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-295-0/+276
| | | | | | | | Port networking code from previous project. This commit is part of ticket 3. Signed-off-by: Paulius Ratkevičius <pauliuz95@gmail.com>
* device: Cosmetic changes.Gravatar Ramūnas Mažeikis 2019-03-222-3/+5
| | | | | | Changed 'toggleled' to 'toggle_led' for improved readability. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Initial commit.Gravatar Gediminas Jakutis 2019-03-1822-0/+990
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>