From 7c5042af3c606081d3f4b917ef667f6ed05780a8 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Sun, 9 Jun 2019 23:08:36 +0300 Subject: hook various previously unused modules together. This now allows us to send messages to the device and such. Yay? Yay. Signed-off-by: Gediminas Jakutis --- include/net.h | 1 - include/proto_stdio.h | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/net.h b/include/net.h index 3fbaf5c..dd02999 100644 --- a/include/net.h +++ b/include/net.h @@ -47,6 +47,5 @@ int net_getlastdata(int nd, char ** const data, size_t *recvsize); int net_send(int nd, const char * const buf, size_t buf_size); int net_send_addr(int nd, const char * const buf, size_t buf_size, const struct sockaddr_in * const addr); -void net_flush_read_buffer(int nd); #endif /* USURPATION_NET_H_INCLUDED */ diff --git a/include/proto_stdio.h b/include/proto_stdio.h index c54ef9c..c7b9b25 100644 --- a/include/proto_stdio.h +++ b/include/proto_stdio.h @@ -22,9 +22,11 @@ #ifndef USURPATION_PROTO_STDIO_H #define USURPATION_PROTO_STDIO_H +#include "tlv.h" + int proto_stdio_init(void); void proto_stdio_close(void); void message_receive(char *); -char *message_send(void); +struct tlv *message_send(struct tlv *in); #endif /* USURPATION_PROTO_STDIO_H */ -- cgit v1.2.3