diff options
author | 2019-05-22 11:33:51 +0300 | |
---|---|---|
committer | 2019-05-22 11:33:51 +0300 | |
commit | 3fa7dd642af57b8b138e9a0d674c2d9960ebedf4 (patch) | |
tree | ad8ee643494fee7439915cd100ac79e0b1a8a4db /src/common/protocol_private.h | |
parent | 20c1cb7788d028ab0f9b71ee08e2926c8b62ffad (diff) | |
download | usurpation-3fa7dd642af57b8b138e9a0d674c2d9960ebedf4.tar.gz usurpation-3fa7dd642af57b8b138e9a0d674c2d9960ebedf4.tar.bz2 usurpation-3fa7dd642af57b8b138e9a0d674c2d9960ebedf4.zip |
Protocol: fixed type errors.
Added const where appropriate to satisfy stricter type checking of
C++.
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
Diffstat (limited to 'src/common/protocol_private.h')
-rw-r--r-- | src/common/protocol_private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/protocol_private.h b/src/common/protocol_private.h index 7433ff0..d50a314 100644 --- a/src/common/protocol_private.h +++ b/src/common/protocol_private.h @@ -36,6 +36,14 @@ size_t tlv_count(const struct packet_data * const packet_data); /** + * Pushes bytes to outgoing packet and adjusts the offset accordingly. + * + * Returns E_PACKET_OVERFLOW, if no more bytes can fit into the packet. + */ + +int push_bytes(cd_t cd, const char *data, size_t size); + +/** * Parses tlv's from packet data and writes them to a buffer of given size. * * Returns how many tlv's were actually parsed. |