summaryrefslogtreecommitdiff
path: root/mcast/dvbloop/.svn/text-base/dvblo_char.h.svn-base
blob: 41f574412c9f01a9d79a53fe2a07bf0df9deac51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* dvbloop - A DVB Loopback Device
 * Copyright (C) 2006 Christian Praehauser, Deti Fliegl
 -----------------------------------------
 * File: dvblo_char.h
 * Desc: Char device support for dvblo
 * Date: October 2006
 * Author: Christian Praehauser <cpreahaus@cosy.sbg.ac.at>, Deti Fliegl <deti@fliegl.de>
 *
 * This file is released under the GPLv2.
 */

#ifndef _DVBLO_CHAR_H_
#define _DVBLO_CHAR_H_

#include "dvblo.h"
#include "dvblo_adap.h"

/**
 * Maximum number of devices
 */
#define DVBLO_CHAR_DEVMAX 8
struct dvblo_chardev_config
{

	/// The configuration for the corresponding virtual DVB adapter
	struct dvblo_adap_config dvbcfg;
};
int dvblo_char_init (void);
int dvblo_char_exit (void);
int dvblo_char_add_dev (struct dvblo_chardev_config *cfg, unsigned int *devnum_out);
int dvblo_char_del_dev (unsigned int devnum);

#endif /* _DVBLO_CHAR_H_ */