This might work

This commit is contained in:
XANTRONIX Development 2015-07-24 21:07:03 -05:00 committed by XANTRONIX Industrial
parent 8bb8026851
commit ae47c8b793
2 changed files with 39 additions and 44 deletions

View file

@ -16,10 +16,47 @@
#include <patty/ax25/if.h>
#include <patty/ax25/port.h>
#include <patty/ax25/link.h>
#include <patty/ax25/io.h>
enum patty_ax25_event {
PATTY_AX25_IO_UNKNOWN,
PATTY_AX25_IO_RECV,
PATTY_AX25_IO_SEND,
PATTY_AX25_IO_READ,
PATTY_AX25_IO_WRITE
};
int patty_ax25_init(patty_ax25 *ax25);
void patty_ax25_stop(patty_ax25 *ax25);
#endif /* _PATTY_AX25_IF */
int patty_ax25_open(patty_ax25 *ax25, const char *ifname);
int patty_ax25_socket(patty_ax25 *ax25);
int patty_ax25_listen(patty_ax25 *ax25,
int socket, const char *callsign, int ssid);
int patty_ax25_connect(patty_ax25 *ax25,
int socket, const char *callsign, int ssid);
int patty_ax25_accept(patty_ax25 *ax25,
int socket);
int patty_ax25_close(patty_ax25 *ax25, int fd);
int patty_ax25_wait(patty_ax25 *ax25,
int fds, enum patty_ax25_event *ev);
int patty_ax25_recv(patty_ax25 *ax25,
int fd, patty_ax25_frame *frame);
int patty_ax25_send(patty_ax25 *ax25,
int fd, patty_ax25_frame *frame);
ssize_t patty_ax25_read(patty_ax25 *ax25,
int fd, void *data, size_t len);
ssize_t patty_ax25_write(patty_ax25 *ax25,
int fd, const void *data, size_t len);
#endif /* _PATTY_AX25_H */

View file

@ -1,42 +0,0 @@
#ifndef _PATTY_AX25_IO_H
#define _PATTY_AX25_IO_H
enum patty_ax25_io_event {
PATTY_AX25_IO_UNKNOWN,
PATTY_AX25_IO_RECV,
PATTY_AX25_IO_SEND,
PATTY_AX25_IO_READ,
PATTY_AX25_IO_WRITE
};
int patty_ax25_open(patty_ax25 *ax25, const char *ifname);
int patty_ax25_socket(patty_ax25 *ax25);
int patty_ax25_listen(patty_ax25 *ax25,
int socket, const char *callsign, int ssid);
int patty_ax25_connect(patty_ax25 *ax25,
int socket, const char *callsign, int ssid);
int patty_ax25_accept(patty_ax25 *ax25,
int socket);
int patty_ax25_close(patty_ax25 *ax25, int fd);
int patty_ax25_wait(patty_ax25 *ax25,
int fds, enum patty_ax25_io_event *ev);
int patty_ax25_recv(patty_ax25 *ax25,
int fd, patty_ax25_frame *frame);
int patty_ax25_send(patty_ax25 *ax25,
int fd, patty_ax25_frame *frame);
ssize_t patty_ax25_read(patty_ax25 *ax25,
int fd, void *data, size_t len);
ssize_t patty_ax25_write(patty_ax25 *ax25,
int fd, const void *data, size_t len);
#endif /* _PATTY_AX25_IO_H */