From f4c66a4c77e5818ca9703f59a80ea92e27ed45c6 Mon Sep 17 00:00:00 2001 From: kartofen Date: Sat, 22 Oct 2022 21:08:08 +0300 Subject: abstract messages for easier use --- src/socket.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/socket.h') diff --git a/src/socket.h b/src/socket.h index ecb27ab..1868afc 100644 --- a/src/socket.h +++ b/src/socket.h @@ -1,8 +1,10 @@ #ifndef SOCKET_H #define SOCKET_H -int listener(char *port, void (*on_recv)(char *, int)); +#include "typedef.h" -int talker(char *port, char *address, void (*on_send)(char *, int *)); +int listener(char *port, void (*on_recv)(message *)); + +int talker(char *port, char *address, void (*on_send)(message *)); #endif -- cgit v1.2.3