peer, tunnels: New file-descriptor opening interface.
[tripe] / server / tripe.h
index 71c6023..d955c88 100644 (file)
@@ -288,7 +288,8 @@ struct peer;
 typedef struct tunnel_ops {
   const char *name;                    /* Name of this tunnel driver */
   void (*init)(void);                  /* Initializes the system */
-  tunnel *(*create)(struct peer */*p*/, char **/*ifn*/);
+  int (*open)(char **/*ifn*/);         /* Open tunnel and report ifname */
+  tunnel *(*create)(struct peer */*p*/, int /*fd*/, char **/*ifn*/);
                                        /* Initializes a new tunnel */
   void (*setifname)(tunnel */*t*/, const char */*ifn*/);
                                        /*  Notifies ifname change */