tun_device: add a getter for the underlying file descriptor

This commit is contained in:
Martin Willi
2013-05-06 16:10:11 +02:00
parent d947d0d61a
commit 60babe0236
2 changed files with 14 additions and 0 deletions
@@ -94,6 +94,13 @@ struct tun_device_t {
*/
char *(*get_name)(tun_device_t *this);
/**
* Get the underlying tun file descriptor.
*
* @return file descriptor of this tun device
*/
int (*get_fd)(tun_device_t *this);
/**
* Destroy a tun_device_t
*/