From bb70fccb66f55e9cc2b9ed0bf366479828f41346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C5=ABnas=20Ma=C5=BEeikis?= Date: Mon, 20 May 2019 21:50:19 +0300 Subject: Protocol: implemented request and reply pushing to packet. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/utils.h') diff --git a/include/utils.h b/include/utils.h index e4feb9a..f92e0fa 100644 --- a/include/utils.h +++ b/include/utils.h @@ -9,6 +9,9 @@ typedef struct uuid_s { int cmp_uuid(uuid_t *first, uuid_t *second); +/** + * Fixed point number with one decimal digit of precision. + */ typedef int fpi1_t; fpi1_t add(fpi1_t a, fpi1_t b); -- cgit v1.2.3