Pablo Neira Ayuso | 9530600 | 2012-08-22 16:43:59 +0200 | [diff] [blame] | 1 | #ifndef _LAPD_PCAP_H_ |
| 2 | #define _LAPD_PCAP_H_ |
| 3 | |
Harald Welte | ab3b560 | 2016-11-16 11:02:25 +0100 | [diff] [blame] | 4 | #include <sys/types.h> |
| 5 | #include <osmocom/core/msgb.h> |
| 6 | |
Pablo Neira Ayuso | 9530600 | 2012-08-22 16:43:59 +0200 | [diff] [blame] | 7 | #define OSMO_LAPD_PCAP_INPUT 0 |
| 8 | #define OSMO_LAPD_PCAP_OUTPUT 1 |
| 9 | |
| 10 | int osmo_pcap_lapd_open(char *filename, mode_t mode); |
Harald Welte | 47bee5b | 2016-07-04 09:53:44 +0200 | [diff] [blame] | 11 | int osmo_pcap_lapd_set_fd(int fd); |
Pablo Neira Ayuso | 9530600 | 2012-08-22 16:43:59 +0200 | [diff] [blame] | 12 | int osmo_pcap_lapd_write(int fd, int direction, struct msgb *msg); |
| 13 | int osmo_pcap_lapd_close(int fd); |
| 14 | |
| 15 | #endif |