summaryrefslogtreecommitdiffstats
path: root/src/common/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/protocol.c')
-rw-r--r--src/common/protocol.c47
1 files changed, 1 insertions, 46 deletions
diff --git a/src/common/protocol.c b/src/common/protocol.c
index 2b4e3bf..5498704 100644
--- a/src/common/protocol.c
+++ b/src/common/protocol.c
@@ -56,57 +56,12 @@ int push_data(enum tlv_type type)
return ret;
}
-static int push_string(struct tlv_packet *packet, const char *str)
-{
- size_t strsize = strlen(str);
- int ret = 0;
-
- if (strsize + packet->offset >= packet->size) {
- ret = E_TLV_OVERFLOW;
- } else {
- memcpy(packet->data, str, strsize);
- }
- return ret;
-}
-
-static int push_fpi1(struct tlv_packet *packet, const char *num)
-{
- int ret = 0;
-
- if (packet->offset + sizeof(fpi1_t) >= packet->size) {
- ret = E_TLV_OVERFLOW;
- } else {
- memcpy(packet->data, num, sizeof(fpi1_t));
- }
- return ret;
-}
-
-static int push_timestamp(struct tlv_packet *packet, const char *data)
-{
- return 0;
-}
-
-static int push_request(struct tlv_packet *packet, const char *data)
-{
- return 0;
-}
-
-static int push_reply(struct tlv_packet *packet, const char *data)
-{
- return 0;
-}
-
-static int push_uuid(struct tlv_packet *packet, const char *data)
-{
- return 0;
-}
-
size_t parse_tlv(const char *data, size_t cursor, struct tlv *t)
{
return 0;
}
-int clear_data()
+void clear_data(struct tlv_packet *packet)
{
return 0;
}