annotate libdvdcss/common.h @ 35897:23ae72ee9c04

build: Drop mp_msg dependencies for codec-cfg-test.
author diego
date Sun, 17 Mar 2013 22:20:46 +0000
parents cdbfbee5c8a9
children 691431d2289e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
1 /*****************************************************************************
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
2 * common.h: common definitions
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
3 * Collection of useful common types and macros definitions
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
4 *****************************************************************************
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
5 * Copyright (C) 1998, 1999, 2000 VideoLAN
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
6 * $Id$
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
7 *
27462
60bd1a7f3fc6 Sync libdvdcss with upstream version 1.2.10.
diego
parents: 20730
diff changeset
8 * Authors: Sam Hocevar <sam@via.ecp.fr>
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
9 * Vincent Seguin <seguin@via.ecp.fr>
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
10 * Gildas Bazin <gbazin@netcourrier.com>
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
11 *
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
12 * This program is free software; you can redistribute it and/or modify
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
13 * it under the terms of the GNU General Public License as published by
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
15 * (at your option) any later version.
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
16 *
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
17 * This program is distributed in the hope that it will be useful,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
20 * GNU General Public License for more details.
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
21 *
31098
9e9595c779cf libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents: 27462
diff changeset
22 * You should have received a copy of the GNU General Public License along
9e9595c779cf libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents: 27462
diff changeset
23 * with libdvdcss; if not, write to the Free Software Foundation, Inc.,
9e9595c779cf libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents: 27462
diff changeset
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
25 *****************************************************************************/
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
26
32265
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31098
diff changeset
27 #ifndef DVDCSS_COMMON_H
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31098
diff changeset
28 #define DVDCSS_COMMON_H
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31098
diff changeset
29
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
30 /*****************************************************************************
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
31 * Basic types definitions
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
32 *****************************************************************************/
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
33 #if defined( HAVE_STDINT_H )
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
34 # include <stdint.h>
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
35 #elif defined( HAVE_INTTYPES_H )
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
36 # include <inttypes.h>
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
37 #elif defined( SYS_CYGWIN )
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
38 # include <sys/types.h>
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
39 /* Cygwin only defines half of these... */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
40 typedef u_int8_t uint8_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
41 typedef u_int32_t uint32_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
42 #else
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
43 /* Fallback types (very x86-centric, sorry) */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
44 typedef unsigned char uint8_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
45 typedef signed char int8_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
46 typedef unsigned int uint32_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
47 typedef signed int int32_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
48 #endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
49
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
50 #if defined( WIN32 )
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
51
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
52 # ifndef PATH_MAX
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
53 # define PATH_MAX MAX_PATH
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
54 # endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
55
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
56 /* several type definitions */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
57 # if defined( __MINGW32__ )
20730
66c2f233ccff Fix linking on Cygwin and remove nonsense lseek64 --> lseek indirection,
diego
parents: 20613
diff changeset
58 # define lseek _lseeki64
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
59 # if !defined( _OFF_T_ )
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
60 typedef long long _off_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
61 typedef _off_t off_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
62 # define _OFF_T_
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
63 # else
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
64 # define off_t long long
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
65 # endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
66 # endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
67
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
68 # if defined( _MSC_VER )
20730
66c2f233ccff Fix linking on Cygwin and remove nonsense lseek64 --> lseek indirection,
diego
parents: 20613
diff changeset
69 # define lseek _lseeki64
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
70 # if !defined( _OFF_T_DEFINED )
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
71 typedef __int64 off_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
72 # define _OFF_T_DEFINED
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
73 # else
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
74 # define off_t __int64
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
75 # endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
76 # define stat _stati64
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
77 # endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
78
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
79 #endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
80
32265
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31098
diff changeset
81 #endif /* DVDCSS_COMMON_H */