diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/protocol.h | 7 | ||||
-rw-r--r-- | include/utils.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/protocol.h b/include/protocol.h index 9d5b518..ac83154 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -32,6 +32,13 @@ enum packet_type { DISCOVERY }; +/** + * Message sequence number since beggining of sesssion. + * + * Mainly used for identifying lost messages. + */ +typedef unsigned int msg_idx_t; + enum tlv_type { /** NULL-terminated string. */ TEXT, 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); |