summaryrefslogtreecommitdiffstats
path: root/src/common/protocol_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/protocol_private.h')
-rw-r--r--src/common/protocol_private.h8
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.