patch-2.1.27 linux/drivers/isdn/isdn_net.h

Next file: linux/drivers/isdn/isdn_ppp.c
Previous file: linux/drivers/isdn/isdn_net.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.26/linux/drivers/isdn/isdn_net.h linux/drivers/isdn/isdn_net.h
@@ -1,11 +1,11 @@
-/* $Id: isdn_net.h,v 1.2 1996/04/20 16:29:43 fritz Exp $
- *
+/* $Id: isdn_net.h,v 1.5 1997/02/10 20:12:47 fritz Exp $
+
  * header for Linux ISDN subsystem, network related functions (linklevel).
  *
  * Copyright 1994,95,96 by Fritz Elfert (fritz@wuemaus.franken.de)
  * Copyright 1995,96    by Thinking Objects Software GmbH Wuerzburg
  * Copyright 1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
- * 
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2, or (at your option)
@@ -18,9 +18,18 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
  * $Log: isdn_net.h,v $
+ * Revision 1.5  1997/02/10 20:12:47  fritz
+ * Changed interface for reporting incoming calls.
+ *
+ * Revision 1.4  1997/02/03 23:16:48  fritz
+ * Removed isdn_net_receive_callback prototype.
+ *
+ * Revision 1.3  1997/01/17 01:19:30  fritz
+ * Applied chargeint patch.
+ *
  * Revision 1.2  1996/04/20 16:29:43  fritz
  * Misc. typos
  *
@@ -29,24 +38,30 @@
  *
  */
 
-extern char*         isdn_net_new(char *, struct device *);
-extern char*         isdn_net_newslave(char *);
-extern int           isdn_net_rm(char *);
-extern int           isdn_net_rmall(void);
-extern int           isdn_net_stat_callback(int, int);
-extern int           isdn_net_receive_callback(int, u_char *, int);
-extern int           isdn_net_setcfg(isdn_net_ioctl_cfg *);
-extern int           isdn_net_getcfg(isdn_net_ioctl_cfg *);
-extern int           isdn_net_addphone(isdn_net_ioctl_phone *);
-extern int           isdn_net_getphones(isdn_net_ioctl_phone *, char *);
-extern int           isdn_net_delphone(isdn_net_ioctl_phone *);
-extern int           isdn_net_find_icall(int, int, int, char *);
-extern void          isdn_net_hangup(struct device *);
-extern void          isdn_net_dial(void);
-extern void          isdn_net_autohup(void);
-extern int           isdn_net_force_hangup(char *);
-extern int           isdn_net_force_dial(char *);
-extern isdn_net_dev* isdn_net_findif(char *);
-extern int           isdn_net_send_skb(struct device *, isdn_net_local *, 
-				      struct sk_buff *);
-extern int           isdn_net_rcv_skb(int, struct sk_buff *); 
+			      /* Definitions for hupflags:                */
+#define ISDN_WAITCHARGE  1      /* did not get a charge info yet            */
+#define ISDN_HAVECHARGE  2      /* We know a charge info                    */
+#define ISDN_CHARGEHUP   4      /* We want to use the charge mechanism      */
+#define ISDN_INHUP       8      /* Even if incoming, close after huptimeout */
+#define ISDN_MANCHARGE  16      /* Charge Interval manually set             */
+
+extern char *isdn_net_new(char *, struct device *);
+extern char *isdn_net_newslave(char *);
+extern int isdn_net_rm(char *);
+extern int isdn_net_rmall(void);
+extern int isdn_net_stat_callback(int, int);
+extern int isdn_net_setcfg(isdn_net_ioctl_cfg *);
+extern int isdn_net_getcfg(isdn_net_ioctl_cfg *);
+extern int isdn_net_addphone(isdn_net_ioctl_phone *);
+extern int isdn_net_getphones(isdn_net_ioctl_phone *, char *);
+extern int isdn_net_delphone(isdn_net_ioctl_phone *);
+extern int isdn_net_find_icall(int, int, int, setup_parm);
+extern void isdn_net_hangup(struct device *);
+extern void isdn_net_dial(void);
+extern void isdn_net_autohup(void);
+extern int isdn_net_force_hangup(char *);
+extern int isdn_net_force_dial(char *);
+extern isdn_net_dev *isdn_net_findif(char *);
+extern int isdn_net_send_skb(struct device *, isdn_net_local *,
+			     struct sk_buff *);
+extern int isdn_net_rcv_skb(int, struct sk_buff *);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov