X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fdevice.h;h=32c0b875be6de6ff2e0f43798b74da7ce37289ff;hb=28be4baae016a5a771d0d9ec6e97ef38a4fc9e46;hp=8046a255bff0ebb9a4bce9638005e119e0eefcd4;hpb=53036a58790168e18f524bd923f9a7d34691ba2d;p=tinc diff --git a/src/device.h b/src/device.h index 8046a255..32c0b875 100644 --- a/src/device.h +++ b/src/device.h @@ -1,3 +1,6 @@ +#ifndef TINC_DEVICE_H +#define TINC_DEVICE_H + /* device.h -- generic header for device.c Copyright (C) 2001-2005 Ivo Timmermans @@ -18,15 +21,14 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_DEVICE_H__ -#define __TINC_DEVICE_H__ - #include "net.h" extern int device_fd; extern char *device; extern char *iface; +#define DEVICE_DUMMY "dummy" + typedef struct devops_t { bool (*setup)(void); void (*close)(void); @@ -40,8 +42,9 @@ extern const devops_t os_devops; extern const devops_t dummy_devops; extern const devops_t raw_socket_devops; extern const devops_t multicast_devops; +extern const devops_t fd_devops; extern const devops_t uml_devops; extern const devops_t vde_devops; extern devops_t devops; -#endif /* __TINC_DEVICE_H__ */ +#endif