Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* $Id: isdn_divertif.h,v 1.4.6.1 2001/09/23 22:25:05 kai Exp $ |
| 2 | * |
| 3 | * Header for the diversion supplementary interface for i4l. |
| 4 | * |
| 5 | * Author Werner Cornelius (werner@titro.de) |
| 6 | * Copyright by Werner Cornelius (werner@titro.de) |
| 7 | * |
| 8 | * This software may be used and distributed according to the terms |
| 9 | * of the GNU General Public License, incorporated herein by reference. |
| 10 | * |
| 11 | */ |
David Howells | c15a48d | 2011-12-13 09:26:45 +0000 | [diff] [blame] | 12 | #ifndef _LINUX_ISDN_DIVERTIF_H |
| 13 | #define _LINUX_ISDN_DIVERTIF_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
Mike Frysinger | a7e27d5d | 2007-05-08 00:32:40 -0700 | [diff] [blame] | 15 | #include <linux/isdnif.h> |
| 16 | #include <linux/types.h> |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 17 | #include <uapi/linux/isdn_divertif.h> |
Mike Frysinger | a7e27d5d | 2007-05-08 00:32:40 -0700 | [diff] [blame] | 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | /***************************************************************/ |
| 20 | /* structure exchanging data between isdn hl and divert module */ |
| 21 | /***************************************************************/ |
| 22 | typedef struct |
| 23 | { ulong if_magic; /* magic info and version */ |
| 24 | int cmd; /* command */ |
| 25 | int (*stat_callback)(isdn_ctrl *); /* supplied by divert module when calling */ |
| 26 | int (*ll_cmd)(isdn_ctrl *); /* supplied by hl on return */ |
| 27 | char * (*drv_to_name)(int); /* map a driver id to name, supplied by hl */ |
| 28 | int (*name_to_drv)(char *); /* map a driver id to name, supplied by hl */ |
| 29 | } isdn_divert_if; |
| 30 | |
| 31 | /*********************/ |
| 32 | /* function register */ |
| 33 | /*********************/ |
| 34 | extern int DIVERT_REG_NAME(isdn_divert_if *); |
David Howells | c15a48d | 2011-12-13 09:26:45 +0000 | [diff] [blame] | 35 | #endif /* _LINUX_ISDN_DIVERTIF_H */ |