diff options
author | 2019-05-22 20:38:29 +0300 | |
---|---|---|
committer | 2019-05-22 20:38:29 +0300 | |
commit | ca9e0b1cc8084b66311705b0c79da16821eb275d (patch) | |
tree | 321636622bd93d21a5f5f8c05925f79aee819b55 /src/common/protocol.c | |
parent | 28b26ca86cf18947d6d9543ad753ef112ff4da89 (diff) | |
download | usurpation-ca9e0b1cc8084b66311705b0c79da16821eb275d.tar.gz usurpation-ca9e0b1cc8084b66311705b0c79da16821eb275d.tar.bz2 usurpation-ca9e0b1cc8084b66311705b0c79da16821eb275d.zip |
Protocol: amendments to interface functions.
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
Diffstat (limited to 'src/common/protocol.c')
-rw-r--r-- | src/common/protocol.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/common/protocol.c b/src/common/protocol.c index 58a70f6..a7cb84f 100644 --- a/src/common/protocol.c +++ b/src/common/protocol.c @@ -55,37 +55,32 @@ int push_data(enum tlv_type type) return ret; } -static int push_string(const char *str) +static int push_string(struct tlv_packet *packet, const char *str) { return 0; } -static int push_fpi1(const char *num) +static int push_fpi1(struct tlv_packet *packet, const char *num) { return 0; } -static int push_timestamp(const char *data) +static int push_timestamp(struct tlv_packet *packet, const char *data) { return 0; } -static int push_request(const char *data) +static int push_request(struct tlv_packet *packet, const char *data) { return 0; } -static int push_reply(const char *data) +static int push_reply(struct tlv_packet *packet, const char *data) { return 0; } -static int push_uuid(const char *data) -{ - return 0; -} - -size_t tlv_count(const struct packet_data * const packet) +static int push_uuid(struct tlv_packet *packet, const char *data) { return 0; } @@ -95,18 +90,17 @@ size_t parse_tlv(const char *data, size_t cursor, struct tlv *t) return 0; } - int clear_data() { return 0; } -static int push_bytes(const char *data, size_t size) +static int push_bytes(struct tlv_packet *packet, size_t size) { return 0; } -static int push_tlv_header(enum tlv_type type, size_t size) +static int push_tlv_header(struct tlv_packet *packet, enum tlv_type type, size_t size) { return 0; } |