| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | | |
Every function is a stub now. Reimplementaion coming up.
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
|
| |\ \
| | | |
| | | |
| | | | |
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Added const where appropriate to satisfy stricter type checking of
C++.
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
|
| | |\ \
| | | | |
| | | | |
| | | | | |
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The code has a chance to compile now. No changes to actual build files
yet.
|
| | |/ /
| |/| |
| | | |
| | | | |
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
| |/ /
| | |
| | |
| | | |
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Forgot to remove device-specific code from common protocol code.
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
| |/
|/|
| |
| | |
Signed-off-by: Paulius Ratkevičius <pauliuz95@gmail.com>
|
| |
| |
| |
| |
| |
| |
| | |
Resolves all memory leaks that can be possibly resolved, glib
nonwithstanding.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
| |
| |
| |
| | |
Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
|
| |
| |
| |
| |
| |
| | |
Part of ticket #33
Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
|
|\ \
| | |
| | |
| | | |
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
| | |
| | |
| | |
| | |
| | |
| | | |
This usually, but now always means "/etc/usurpation.conf"
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
make it more debug-friendly by defaut, seeing how it's in active
pre-release development.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
|\ \ \
| |/ /
|/| |
| | | |
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Solves ticket #30
Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Solves ticket #30
Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
|
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | | |
This accomodates configurations where vim stores the swap files in
the working directory.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
|\| | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Closes ticket #29.
Signed-off-by: Paulius Ratkevičius <paulius.ratkevicius@ktu.edu>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Now actually shows daemon AND device ip.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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 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>
|
|/
|
|
|
|
| |
Make the screen code actually work... AND build, to begin with.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
|
|
|
| |
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
|
|
|
|
| |
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
|
|
|
| |
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|
|
|
|
| |
Verbose flag was not initialised in init. It is on by default now.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
Stub implementation.
This commit closes ticket 23.
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
Fix style inconsistencies and move port settings to settings.c.
Part of Ticket 3.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
|