annotate osdep/osdep.h @ 36475:7a2dcbac77fb

XvMC: Remove message requesting feedback for OSD backend rendering. The free radeon driver for XvMC (part of Mesa3D Gallium) provides this type of rendering and it seems to work fine.
author iive
date Mon, 06 Jan 2014 20:11:56 +0000
parents 5c8339df2496
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30746
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
1 /*
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
2 * Header in order to include OS-specific headers, macros, types and so on
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
3 *
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
4 * Copyright (c) 2010 by KO Myung-Hun (komh@chollian.net)
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
5 *
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
6 * This file is part of MPlayer.
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
7 *
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
8 * MPlayer is free software; you can redistribute it and/or modify
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
11 * (at your option) any later version.
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
12 *
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
13 * MPlayer is distributed in the hope that it will be useful,
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
16 * GNU General Public License for more details.
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
17 *
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License along
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
21 */
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
22
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
23 #ifndef MPLAYER_OSDEP_H
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
24 #define MPLAYER_OSDEP_H
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
25
36253
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
26 #include "config.h"
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
27
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
28 #if CONFIG_PATH_MAX_CHECK
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
29 #include <stdio.h> /* fopen() */
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
30 #include <dirent.h> /* opendir() */
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
31 #include <io.h> /* open() */
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
32 #include <fcntl.h> /* open() */
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
33 #include <string.h> /* strlen() */
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
34 #include <limits.h> /* PATH_MAX */
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
35 #include <errno.h> /* errno */
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
36
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
37 #define fopen(n, m) \
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
38 (strlen(n) >= PATH_MAX ? (errno = ENAMETOOLONG, NULL) : (fopen)(n, m))
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
39
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
40 #define opendir(n) \
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
41 (strlen(n) >= PATH_MAX ? (errno = ENOENT, NULL) : (opendir)(n))
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
42
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
43 #define open(n, ...) \
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
44 (strlen(n) >= PATH_MAX ? (errno = ENAMETOOLONG, -1) : \
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
45 (open)(n, __VA_ARGS__))
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
46 #endif /* CONFIG_PATH_MAX_CHECK */
5c8339df2496 Check if path is too long
komh
parents: 30786
diff changeset
47
30746
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
48 #ifdef __OS2__
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
49 #define INCL_DOS
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
50 #define INCL_DOSDEVIOCTL
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
51 #include <os2.h>
30786
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
52
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
53 #include <process.h> /* getpid() */
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
54
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
55 #define REALTIME_PRIORITY_CLASS MAKESHORT(0, PRTYC_TIMECRITICAL)
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
56 #define HIGH_PRIORITY_CLASS MAKESHORT(PRTYD_MAXIMUM, PRTYC_REGULAR)
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
57 #define ABOVE_NORMAL_PRIORITY_CLASS MAKESHORT(PRTYD_MAXIMUM / 2, PRTYC_REGULAR)
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
58 #define NORMAL_PRIORITY_CLASS MAKESHORT(0, PRTYC_REGULAR)
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
59 #define BELOW_NORMAL_PRIORITY_CLASS MAKESHORT(PRTYD_MAXIMUM, PRTYC_IDLETIME)
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
60 #define IDLE_PRIORITY_CLASS MAKESHORT(0, PRTYC_IDLETIME)
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
61
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
62 #define SetPriorityClass(pid, prio) \
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
63 DosSetPriority(PRTYS_PROCESS, \
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
64 HIBYTE(prio), \
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
65 LOBYTE(prio), \
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
66 pid)
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
67
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
68 #define GetCurrentProcess() getpid()
24c1cedb1de2 1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents: 30746
diff changeset
69 #endif /* __OS2__ */
30746
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
70
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
71 #endif /* MPLAYER_OSDEP_H */
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
72