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 */