~ubuntu-branches/ubuntu/maverick/zapping/maverick

« back to all changes in this revision

Viewing changes to src/tvengemu.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-03-08 23:19:08 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050308231908-oip7rfv6lcmo8c0e
Tags: 0.9.2-2ubuntu1
Rebuilt for Python transition (2.3 -> 2.4)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Zapping (TV viewer for the Gnome Desktop)
 
2
 * Copyright (C) 2002 I�aki Garc�a Etxebarria
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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.
 
17
 */
 
18
 
 
19
#ifndef __TVENGEMU_H__
 
20
#define __TVENGEMU_H__
 
21
 
 
22
#include "tveng_private.h"
 
23
 
 
24
/*
 
25
  Inits the EMU module, and fills in the given table.
 
26
*/
 
27
void tvengemu_init_module(struct tveng_module_info *module_info);
 
28
 
 
29
/*
 
30
  Prototypes for forward declaration, used only in tvengemu.c
 
31
*/
 
32
#ifdef TVENGEMU_PROTOTYPES
 
33
/*
 
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
 
36
  the correct values.
 
37
  device_file: The file used to access the video device (usually
 
38
  /dev/video)
 
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
 
43
*/
 
44
static
 
45
int tvengemu_attach_device(const char* device_file,
 
46
                           Window window,
 
47
                         enum tveng_attach_mode attach_mode,
 
48
                         tveng_device_info * info);
 
49
 
 
50
 
 
51
/*
 
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.
 
55
*/
 
56
static void tvengemu_close_device(tveng_device_info* info);
 
57
 
 
58
 
 
59
 
 
60
 
 
61
#endif /* TVENGEMU_PROTOTYPES */
 
62
#endif /* TVENGEMU.H */