diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-07-04 09:53:44 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-07-04 10:25:02 +0200 |
commit | 47bee5bed50d1b6d6004428a2fac50f57764e7bd (patch) | |
tree | 852a5d2072fe0ece1a8b2742733ee3d38568b21e /include/osmocom | |
parent | c1cf14cae8a4ff8d60976eb188344595755448d5 (diff) |
Add osmo_pcap_lapd_set_fd() function
This way the caller can hand in an already-open file descriptor, rather
than calling osmo_pcap_lapd_open() with a file path name.
Change-Id: Ic7193907a96b0e2284cb6a8a942d2bf0fb95d7e4
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/abis/lapd_pcap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/abis/lapd_pcap.h b/include/osmocom/abis/lapd_pcap.h index 1c0d555..e1b587e 100644 --- a/include/osmocom/abis/lapd_pcap.h +++ b/include/osmocom/abis/lapd_pcap.h @@ -5,6 +5,7 @@ #define OSMO_LAPD_PCAP_OUTPUT 1 int osmo_pcap_lapd_open(char *filename, mode_t mode); +int osmo_pcap_lapd_set_fd(int fd); int osmo_pcap_lapd_write(int fd, int direction, struct msgb *msg); int osmo_pcap_lapd_close(int fd); |