summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '31-Net-Protocol-Handling'Gravatar Gediminas Jakutis 2019-05-2615-71/+581
|\ | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * common: cosmetic changes.Gravatar Gediminas Jakutis 2019-05-266-13/+57
| | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * Protocol: updated get_tlv and more docs.Gravatar Ramūnas Mažeikis 2019-05-222-0/+13
| | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: fixed a off-by-one error when copying a string.Gravatar Ramūnas Mažeikis 2019-05-221-1/+1
| | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: updated docs for functions that survived redesign.Gravatar Ramūnas Mažeikis 2019-05-222-0/+18
| | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: finished reimplementation.Gravatar Ramūnas Mažeikis 2019-05-221-1/+9
| | | | | | | | | | | | Now protocol only deals with parsing and forming of packets. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: reimplemented push_bytes and push_tlv_header.Gravatar Ramūnas Mažeikis 2019-05-222-5/+24
| | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: reimplemented get_tlv and added tlv_data_size.Gravatar Ramūnas Mažeikis 2019-05-222-8/+34
| | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: tossed a bunch of function out the window.Gravatar Ramūnas Mažeikis 2019-05-223-52/+3
| | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: reimplemented push_string and push_fpi1.Gravatar Ramūnas Mažeikis 2019-05-222-3/+19
| | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: amendments to interface functions.Gravatar Ramūnas Mažeikis 2019-05-222-20/+18
| | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: interface redesign.Gravatar Ramūnas Mažeikis 2019-05-225-393/+56
| | | | | | | | | | | | Every function is a stub now. Reimplementaion coming up. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Merge branch '31-Net-Protocol-Handling'Gravatar Gediminas Jakutis 2019-05-223-17/+25
| |\ | | | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| | * Protocol: attempted to fix stupids.Gravatar Ramūnas Mažeikis 2019-05-224-19/+19
| | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| | * Protocol: fixed type errors.Gravatar Ramūnas Mažeikis 2019-05-223-15/+23
| | | | | | | | | | | | | | | | | | | | | Added const where appropriate to satisfy stricter type checking of C++. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| | * Merge branch '31-Net-Protocol-Handling'.Gravatar Ramūnas Mažeikis 2019-05-223-0/+0
| | |\ | | | | | | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| | * | Protocol: switched files to C++ and did minor fixes.Gravatar Ramūnas Mažeikis 2019-05-224-27/+28
| | | | | | | | | | | | | | | | | | | | The code has a chance to compile now. No changes to actual build files yet.
| * | | device: actually make it all build and such.Gravatar Gediminas Jakutis 2019-05-2212-87/+201
| | |/ | |/| | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * | device: fix shoddy file permissions.Gravatar Gediminas Jakutis 2019-05-213-0/+0
| | | | | | | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * | device: strip CRs.Gravatar Gediminas Jakutis 2019-05-211-25/+25
| |/ | | | | | | Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
| * Protocol: forgot to commit updated udp.hGravatar Ramūnas Mažeikis 2019-05-211-2/+2
| | | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: moved udp code out of main.Gravatar Ramūnas Mažeikis 2019-05-216-34/+57
| | | | | | | | | | | | | | | | | | | | An effor was made to increase modularity of device code. It was a partial success. IP adress, communications port, and wifi login details had to be made static and visible in main. Time is scarce and I am not about to push this further. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: common no longer has device-specific implementations.Gravatar Ramūnas Mažeikis 2019-05-213-55/+5
| | | | | | | | | | | | Forgot to remove device-specific code from common protocol code. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: implementation of device-side protocol.Gravatar Ramūnas Mažeikis 2019-05-215-43/+128
| | | | | | | | | | | | | | | | | | Parts of protocol specific for device are implementepd to reflect the fact that the device is a client. This effectively means that device gets a single connection only and severe memory restrictions about which the daemon might get informed about in the future. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: changes to interface and some re-implementation.Gravatar Ramūnas Mažeikis 2019-05-217-96/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | Most functions exposed in protocol.h take a connection descriptor (cd_t) as first argument. This allows for multiple connections. Device gets only one connection which means that cd_t is effectively 0 all the time. Additionaly, any function that actually does anything with a connection descriptor instead of just passing it to another function must be implemented separately in device and daemon. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: implemented request and reply pushing to packet.Gravatar Ramūnas Mažeikis 2019-05-204-11/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First implementation of complete protocol interface. While the first implementation does compile, the interface might change due to demands from other parts of the project. For now reqest is a tlv that is an unsigned int which represents what message to repeat from daemon. A reply is also a tlv made of two parts --- message sequence number of type msg_ixd_t and the actual null terminated string. All of the above is subject to change. More docs. Doxygen is on the way. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: Implemented protocol error reporting.Gravatar Ramūnas Mažeikis 2019-05-195-84/+88
| | | | | | | | | | | | | | | | | | | | Now public functions of the protocol can return an error code. More work is done on actual logic. Protocol code has bare-bones doxygen documentation. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * Protocol: more work on protocol implementation.Gravatar Ramūnas Mažeikis 2019-05-195-30/+138
| | | | | | | | | | | | | | | | Additional functions implemented for protocol and basic functions to work with uuid. Source is buildable but actual build files are not edited to accomodate the changes. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
| * 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>