X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fdevice.h;h=ad91a0e667baa9253affb88b739757ba46a53fb6;hb=132bdb77a0792d85d03ad89f846cbd4024037393;hp=85112ffc02c14900491da039177b06896b4406a4;hpb=bd451cfe1512fa69eac35a60dbe6df17bfc39154;p=tinc diff --git a/src/device.h b/src/device.h index 85112ffc..ad91a0e6 100644 --- a/src/device.h +++ b/src/device.h @@ -37,6 +37,8 @@ typedef struct devops_t { void (*close)(void); bool (*read)(struct vpn_packet_t *); bool (*write)(struct vpn_packet_t *); + void (*enable)(void); /* optional */ + void (*disable)(void); /* optional */ } devops_t; extern const devops_t os_devops;