Mercurial > mplayer.hg
annotate osdep/osdep.h @ 33259:04dc3e55cd90
Increase the maximum value of the DVB timeout to 240 seconds.
Some devices may need more time for the initial tune (e.g. firmware loading).
Let the user specify higher timeout value if there is need to.
The default remains 30 seconds.
author | iive |
---|---|
date | Sun, 01 May 2011 18:07:59 +0000 |
parents | 24c1cedb1de2 |
children | 5c8339df2496 |
rev | line source |
---|---|
30746 | 1 /* |
2 * Header in order to include OS-specific headers, macros, types and so on | |
3 * | |
4 * Copyright (c) 2010 by KO Myung-Hun (komh@chollian.net) | |
5 * | |
6 * This file is part of MPlayer. | |
7 * | |
8 * MPlayer is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * MPlayer is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License along | |
19 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
21 */ | |
22 | |
23 #ifndef MPLAYER_OSDEP_H | |
24 #define MPLAYER_OSDEP_H | |
25 | |
26 #ifdef __OS2__ | |
27 #define INCL_DOS | |
28 #define INCL_DOSDEVIOCTL | |
29 #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
|
30 |
24c1cedb1de2
1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents:
30746
diff
changeset
|
31 #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
|
32 |
24c1cedb1de2
1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents:
30746
diff
changeset
|
33 #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
|
34 #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
|
35 #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
|
36 #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
|
37 #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
|
38 #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
|
39 |
24c1cedb1de2
1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents:
30746
diff
changeset
|
40 #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
|
41 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
|
42 HIBYTE(prio), \ |
24c1cedb1de2
1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents:
30746
diff
changeset
|
43 LOBYTE(prio), \ |
24c1cedb1de2
1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents:
30746
diff
changeset
|
44 pid) |
24c1cedb1de2
1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents:
30746
diff
changeset
|
45 |
24c1cedb1de2
1. Move the macros for priority classes for OS/2 from priority.c to osdep.h
komh
parents:
30746
diff
changeset
|
46 #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
|
47 #endif /* __OS2__ */ |
30746 | 48 |
49 #endif /* MPLAYER_OSDEP_H */ | |
50 |