summaryrefslogtreecommitdiffstats
path: root/include/protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/protocol.h')
-rw-r--r--include/protocol.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/protocol.h b/include/protocol.h
index 60d31ea..c5e657b 100644
--- a/include/protocol.h
+++ b/include/protocol.h
@@ -106,12 +106,12 @@ struct tlv {
* Reads last packets received, parses and stores them to be later retreived
* via get_tlv.
* */
-void get_last_data(cd_t connection);
+int get_last_data(cd_t connection);
/** Returns tlv's parsed by get_last_data. Returned tlv is only valid until
* next call to get_tlv.
* */
-struct tlv * get_tlv(void);
+struct tlv * get_tlv(cd_t cd);
/**
* Any modifications made to the pending outgoing packet are nullified.
@@ -129,4 +129,6 @@ int push_data(cd_t connection, const char *data, enum tlv_type);
* */
void flush_data(cd_t connection);
+cd_t protocol_init(void);
+
#endif /* PROTOCOL_H_INCLUDED */