diff options
author | 2019-06-09 23:08:36 +0300 | |
---|---|---|
committer | 2019-06-09 23:08:36 +0300 | |
commit | 7c5042af3c606081d3f4b917ef667f6ed05780a8 (patch) | |
tree | d6f7adcaca6cb22ca44002b41dba43e069ffbebd /include | |
parent | 613622e8cb3c1d32c50e19d7f446d0c00c91250e (diff) | |
download | usurpation-7c5042af3c606081d3f4b917ef667f6ed05780a8.tar.gz usurpation-7c5042af3c606081d3f4b917ef667f6ed05780a8.tar.bz2 usurpation-7c5042af3c606081d3f4b917ef667f6ed05780a8.zip |
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 <gediminas@varciai.lt>
Diffstat (limited to 'include')
-rw-r--r-- | include/net.h | 1 | ||||
-rw-r--r-- | include/proto_stdio.h | 4 |
2 files changed, 3 insertions, 2 deletions
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 */ |