From c31061c7c2e5ca0ec5074bb084c5218bc113b7c4 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Tue, 9 Jun 2020 00:39:57 -0400 Subject: [PATCH] Rename unnumbered information send/receive calls --- include/patty/ax25.h | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/include/patty/ax25.h b/include/patty/ax25.h index b44c0c7..bdc43cd 100644 --- a/include/patty/ax25.h +++ b/include/patty/ax25.h @@ -124,16 +124,26 @@ int patty_ax25_close(patty_ax25 *ax25, int fd); /*int patty_ax25_next_event(patty_ax25 *ax25, patty_ax25_event *ev);*/ -int patty_ax25_recv(patty_ax25 *ax25, - int fd, patty_ax25_frame *frame); +ssize_t patty_ax25_sendto(patty_ax25 *ax25, + int socket, + const void *buf, + size_t len, + patty_ax25_addr *addr); -int patty_ax25_send(patty_ax25 *ax25, - int fd, patty_ax25_frame *frame); +int patty_ax25_recvfrom(patty_ax25 *ax25, + int socket, + void *buf, + size_t len, + patty_ax25_addr *addr); ssize_t patty_ax25_read(patty_ax25 *ax25, - int fd, void *data, size_t len); + int socket, + void *buf, + size_t len); ssize_t patty_ax25_write(patty_ax25 *ax25, - int fd, const void *data, size_t len); + int socket, + const void *buf, + size_t len); #endif /* _PATTY_AX25_H */