isdn_divertif.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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. */
  12. #ifndef _LINUX_ISDN_DIVERTIF_H
  13. #define _LINUX_ISDN_DIVERTIF_H
  14. #include <linux/isdnif.h>
  15. #include <linux/types.h>
  16. #include <uapi/linux/isdn_divertif.h>
  17. /***************************************************************/
  18. /* structure exchanging data between isdn hl and divert module */
  19. /***************************************************************/
  20. typedef struct
  21. { ulong if_magic; /* magic info and version */
  22. int cmd; /* command */
  23. int (*stat_callback)(isdn_ctrl *); /* supplied by divert module when calling */
  24. int (*ll_cmd)(isdn_ctrl *); /* supplied by hl on return */
  25. char * (*drv_to_name)(int); /* map a driver id to name, supplied by hl */
  26. int (*name_to_drv)(char *); /* map a driver id to name, supplied by hl */
  27. } isdn_divert_if;
  28. /*********************/
  29. /* function register */
  30. /*********************/
  31. extern int DIVERT_REG_NAME(isdn_divert_if *);
  32. #endif /* _LINUX_ISDN_DIVERTIF_H */