linux/include/linux/isdn_divertif.h
<<
>>
Prefs
   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
  13#ifndef _LINUX_ISDN_DIVERTIF_H
  14#define _LINUX_ISDN_DIVERTIF_H
  15
  16/***********************************************************/
  17/* magic value is also used to control version information */
  18/***********************************************************/
  19#define DIVERT_IF_MAGIC 0x25873401
  20#define DIVERT_CMD_REG  0x00  /* register command */
  21#define DIVERT_CMD_REL  0x01  /* release command */
  22#define DIVERT_NO_ERR   0x00  /* return value no error */
  23#define DIVERT_CMD_ERR  0x01  /* invalid cmd */
  24#define DIVERT_VER_ERR  0x02  /* magic/version invalid */
  25#define DIVERT_REG_ERR  0x03  /* module already registered */
  26#define DIVERT_REL_ERR  0x04  /* module not registered */
  27#define DIVERT_REG_NAME isdn_register_divert
  28
  29#ifdef __KERNEL__
  30#include <linux/isdnif.h>
  31#include <linux/types.h>
  32
  33/***************************************************************/
  34/* structure exchanging data between isdn hl and divert module */
  35/***************************************************************/ 
  36typedef struct
  37  { ulong if_magic; /* magic info and version */
  38    int cmd; /* command */
  39    int (*stat_callback)(isdn_ctrl *); /* supplied by divert module when calling */
  40    int (*ll_cmd)(isdn_ctrl *); /* supplied by hl on return */
  41    char * (*drv_to_name)(int); /* map a driver id to name, supplied by hl */
  42    int (*name_to_drv)(char *); /* map a driver id to name, supplied by hl */
  43  } isdn_divert_if;
  44
  45/*********************/
  46/* function register */
  47/*********************/
  48extern int DIVERT_REG_NAME(isdn_divert_if *);
  49#endif
  50
  51#endif /* _LINUX_ISDN_DIVERTIF_H */
  52
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.