annotate osdep/osdep.h @ 34009:5c33025ccfd8

Replace comment for wsFullScreen() by doxygen comment.
author ib
date Fri, 09 Sep 2011 14:32:13 +0000
parents 24c1cedb1de2
children 5c8339df2496
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
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
26 #ifdef __OS2__
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
27 #define INCL_DOS
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
28 #define INCL_DOSDEVIOCTL
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
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
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
48
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
49 #endif /* MPLAYER_OSDEP_H */
7092b8fc23f4 Add cddb:// support for OS/2
komh
parents:
diff changeset
50