Ports can now be specified by number or by name.
[lcr.git] / interface.h
index dd986ca..221b085 100644 (file)
@@ -9,9 +9,6 @@
 **                                                                           **
 \*****************************************************************************/ 
 
-#define FLAG_PORT_USE          1
-#define FLAG_PORT_PTP          (1<<1)
-
 enum { /* interface type */
        IF_TYPE_DIRECT,
        IF_TYPE_EXTENSION,
@@ -48,9 +45,11 @@ struct interface_port {
        struct interface        *interface; /* link to interface */
        struct mISDNport        *mISDNport; /* link to port */
        int                     portnum; /* port number */
+       char                    portname[64]; /* alternately: port name */
        int                     ptp; /* force load stack in PTP mode */
        int                     ptmp; /* force load stack in PTP mode */
        int                     nt; /* load stack in NT-mode */
+       int                     l2hold; /* hold layer 2 (1=force, -1=disable */
        int                     channel_force; /* forces channel by protocol */
        int                     nodtmf; /* disables DTMF */
        struct select_channel   *out_channel; /* list of channels to select */
@@ -99,11 +98,11 @@ struct interface {
 };
 
 struct interface_param {
-       char                    *name;
+       const char              *name;
 /*      return value           (pointer of function)(args ...) */
        int                     (*func)(struct interface *, char *, int, char *, char*);
-       char                    *usage;
-       char                    *help;
+       const char              *usage;
+       const char              *help;
 };