diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-22 21:08:08 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-22 21:08:08 +0300 |
commit | f4c66a4c77e5818ca9703f59a80ea92e27ed45c6 (patch) | |
tree | e334b3f1c8bdb5c96bd756be4e451836a7762ab4 /src/socket.h | |
parent | 9d88d471ac059c93523c00b96ae1cbbc52e07b69 (diff) |
abstract messages for easier use
Diffstat (limited to 'src/socket.h')
-rw-r--r-- | src/socket.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |