blob: 36ddd7fda48451c33842ee7aecc8bae627deab0c [file] [log] [blame]
Pablo Neira Ayuso95306002012-08-22 16:43:59 +02001#ifndef _LAPD_PCAP_H_
2#define _LAPD_PCAP_H_
3
Harald Welteab3b5602016-11-16 11:02:25 +01004#include <sys/types.h>
5#include <osmocom/core/msgb.h>
6
Pablo Neira Ayuso95306002012-08-22 16:43:59 +02007#define OSMO_LAPD_PCAP_INPUT 0
8#define OSMO_LAPD_PCAP_OUTPUT 1
9
10int osmo_pcap_lapd_open(char *filename, mode_t mode);
Harald Welte47bee5b2016-07-04 09:53:44 +020011int osmo_pcap_lapd_set_fd(int fd);
Pablo Neira Ayuso95306002012-08-22 16:43:59 +020012int osmo_pcap_lapd_write(int fd, int direction, struct msgb *msg);
13int osmo_pcap_lapd_close(int fd);
14
15#endif