tun_device: add a getter for the underlying file descriptor
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user