Initial implementation of new headers
This commit is contained in:
parent
2162512896
commit
3927f1b343
2 changed files with 44 additions and 0 deletions
33
include/patty/ax25/mux.h
Normal file
33
include/patty/ax25/mux.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#ifndef _PATTY_AX25_MUX_H
|
||||
#define _PATTY_AX25_MUX_H
|
||||
|
||||
enum patty_ax25_mux_data_type {
|
||||
PATTY_AX25_MUX_VOID,
|
||||
PATTY_AX25_MUX_INT,
|
||||
PATTY_AX25_MUX_SSIZE_T,
|
||||
PATTY_AX25_MUX_ADDR
|
||||
};
|
||||
|
||||
enum patty_ax25_mux_request_type {
|
||||
PATTY_AX25_MUX_UNKNOWN,
|
||||
PATTY_AX25_MUX_SOCKET,
|
||||
PATTY_AX25_MUX_BIND,
|
||||
PATTY_AX25_MUX_LISTEN,
|
||||
PATTY_AX25_MUX_ACCEPT,
|
||||
PATTY_AX25_MUX_CONNECT,
|
||||
PATTY_AX25_MUX_CLOSE,
|
||||
PATTY_AX25_MUX_SENDTO,
|
||||
PATTY_AX25_MUX_RECVFROM
|
||||
};
|
||||
|
||||
int patty_ax25_mux_send(int fd,
|
||||
enum patty_ax25_mux_request_type type,
|
||||
void *data,
|
||||
size_t len);
|
||||
|
||||
int patty_ax25_mux_recv(int fd,
|
||||
enum patty_ax25_mux_response_type type,
|
||||
void *data,
|
||||
size_t len);
|
||||
|
||||
#endif /* _PATTY_AX25_MUX_H */
|
11
include/patty/ax25/route.h
Normal file
11
include/patty/ax25/route.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ifndef _PATTY_AX25_ROUTE_H
|
||||
#define _PATTY_AX25_ROUTE_H
|
||||
|
||||
typedef struct _patty_ax25_route {
|
||||
patty_ax25_addr dest,
|
||||
gateway;
|
||||
|
||||
patty_ax25_if *iface;
|
||||
} patty_ax25_route;
|
||||
|
||||
#endif /* _PATTY_AX25_ROUTE_H */
|
Loading…
Add table
Reference in a new issue