diff options
author | 2019-05-22 21:13:45 +0300 | |
---|---|---|
committer | 2019-05-22 21:13:45 +0300 | |
commit | db5f3e534c1efd31a582d2309b2bc892cc2c8317 (patch) | |
tree | 723027dca1ec5326b982dc9435d684490ab4c5a3 /include | |
parent | 54f0ba9d41b446b83090dc0f3b220db9c82491d0 (diff) | |
download | usurpation-db5f3e534c1efd31a582d2309b2bc892cc2c8317.tar.gz usurpation-db5f3e534c1efd31a582d2309b2bc892cc2c8317.tar.bz2 usurpation-db5f3e534c1efd31a582d2309b2bc892cc2c8317.zip |
Protocol: reimplemented get_tlv and added tlv_data_size.
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/protocol.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/protocol.h b/include/protocol.h index 4721a22..1f941a4 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -112,8 +112,10 @@ int get_tlv(struct tlv_parser *parser, struct tlv *ret); * Appends data to the next packet to be sent. Type of data is determined by * enum tlv_type. * */ -int push_tlv(struct tlv_packet *packet, const char *data, enum tlv_type); +int push_data(struct tlv_packet *packet, enum tlv_type type, char *data); void clear_data(struct tlv_packet *packet); +size_t tlv_data_size(struct tlv_parser *parser); + #endif /* PROTOCOL_H_INCLUDED */ |