summaryrefslogtreecommitdiffstats
path: root/src/common/protocol_private.h
Commit message (Collapse)AuthorAgeFilesLines
* Protocol: reimplemented push_bytes and push_tlv_header.Gravatar Ramūnas Mažeikis 2019-05-221-1/+1
| | | | 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-221-6/+0
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: amendments to interface functions.Gravatar Ramūnas Mažeikis 2019-05-221-6/+10
| | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: interface redesign.Gravatar Ramūnas Mažeikis 2019-05-221-113/+9
| | | | | | Every function is a stub now. Reimplementaion coming up. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: fixed type errors.Gravatar Ramūnas Mažeikis 2019-05-221-0/+8
| | | | | | | Added const where appropriate to satisfy stricter type checking of C++. 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-211-14/+0
| | | | | | Forgot to remove device-specific code from common protocol code. 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-211-8/+9
| | | | | | | | | | | | | 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-201-5/+21
| | | | | | | | | | | | | | | | | | 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-191-17/+27
| | | | | | | | | | 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-191-6/+34
| | | | | | | | 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-181-0/+66
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>