Mercurial > mplayer.hg
annotate libmpdvdkit2/device.h @ 20469:54babf7ca302
If HAVE_FONTCONFIG is not defined, font_fontconfig might be declared both
extern and static, causing compilation to fail
author | reimar |
---|---|
date | Sat, 28 Oct 2006 10:21:30 +0000 |
parents | f59726d0761e |
children |
rev | line source |
---|---|
7027 | 1 /***************************************************************************** |
2 * device.h: DVD device access | |
3 ***************************************************************************** | |
4 * Copyright (C) 1998-2002 VideoLAN | |
5 * $Id$ | |
6 * | |
7 * Authors: Stéphane Borel <stef@via.ecp.fr> | |
8 * Samuel Hocevar <sam@zoy.org> | |
9 * Håkan Hjort <d95hjort@dtek.chalmers.se> | |
10 * | |
11 * This program is free software; you can redistribute it and/or modify | |
12 * it under the terms of the GNU General Public License as published by | |
13 * the Free Software Foundation; either version 2 of the License, or | |
14 * (at your option) any later version. | |
9333
f0f0f176d298
sync with libdvdcss 1.2.5 (including u8->uint8_t and whitespace cosmetics...)
arpi
parents:
8637
diff
changeset
|
15 * |
7027 | 16 * This program is distributed in the hope that it will be useful, |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
21 * You should have received a copy of the GNU General Public License | |
22 * along with this program; if not, write to the Free Software | |
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. | |
24 *****************************************************************************/ | |
25 | |
26 /***************************************************************************** | |
27 * iovec structure: vectored data entry | |
28 *****************************************************************************/ | |
9333
f0f0f176d298
sync with libdvdcss 1.2.5 (including u8->uint8_t and whitespace cosmetics...)
arpi
parents:
8637
diff
changeset
|
29 #if defined( WIN32 ) && !defined( SYS_CYGWIN ) |
7027 | 30 # include <io.h> /* read() */ |
31 #else | |
9333
f0f0f176d298
sync with libdvdcss 1.2.5 (including u8->uint8_t and whitespace cosmetics...)
arpi
parents:
8637
diff
changeset
|
32 # include <sys/types.h> |
7027 | 33 # include <sys/uio.h> /* struct iovec */ |
34 #endif | |
35 | |
9333
f0f0f176d298
sync with libdvdcss 1.2.5 (including u8->uint8_t and whitespace cosmetics...)
arpi
parents:
8637
diff
changeset
|
36 #if defined( WIN32 ) && !defined( SYS_CYGWIN ) |
7027 | 37 struct iovec |
38 { | |
39 void *iov_base; /* Pointer to data. */ | |
40 size_t iov_len; /* Length of data. */ | |
41 }; | |
42 #endif | |
43 | |
44 /***************************************************************************** | |
45 * Device reading prototypes | |
46 *****************************************************************************/ | |
20415 | 47 int _dvdcss_use_ioctls ( dvdcss_t ); |
20425 | 48 void _dvdcss_check ( dvdcss_t ); |
20415 | 49 int _dvdcss_open ( dvdcss_t ); |
50 int _dvdcss_close ( dvdcss_t ); | |
7027 | 51 |
52 /***************************************************************************** | |
53 * Device reading prototypes, raw-device specific | |
54 *****************************************************************************/ | |
55 #ifndef WIN32 | |
8637
0211de3039eb
update libdvdcss in libmpdvdkit to latest version (1.2.4)
arpi
parents:
7027
diff
changeset
|
56 int _dvdcss_raw_open ( dvdcss_t, char const * ); |
7027 | 57 #endif |
58 |