1
/* Zapping (TV viewer for the Gnome Desktop)
2
* Copyright (C) 2002 I�aki Garc�a Etxebarria
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
#ifndef __TVENGEMU_H__
20
#define __TVENGEMU_H__
22
#include "tveng_private.h"
25
Inits the EMU module, and fills in the given table.
27
void tvengemu_init_module(struct tveng_module_info *module_info);
30
Prototypes for forward declaration, used only in tvengemu.c
32
#ifdef TVENGEMU_PROTOTYPES
34
Associates the given tveng_device_info with the given video
35
device. On error it returns -1 and sets info->errno, info->error to
37
device_file: The file used to access the video device (usually
39
attach_mode: Specifies the mode to open the device file
40
depth: The color depth the capture will be in, -1 means let tveng
41
decide based on the current display depth.
42
info: The structure to be associated with the device
45
int tvengemu_attach_device(const char* device_file,
47
enum tveng_attach_mode attach_mode,
48
tveng_device_info * info);
52
Closes the video device asocciated to the device info object. Should
53
be called before reattaching a video device to the same object, but
54
there is no need to call this before calling tveng_device_info_destroy.
56
static void tvengemu_close_device(tveng_device_info* info);
61
#endif /* TVENGEMU_PROTOTYPES */
62
#endif /* TVENGEMU.H */