include sys/kd.h on non-Linux architectures correctly
[mplayer/greg.git] / mp_osd.h
blobb9f10d664b84c107e471bbc151148225ea21a51f
1 /*
2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_MP_OSD_H
20 #define MPLAYER_MP_OSD_H
22 #define OSD_MSG_TV_CHANNEL 0
23 #define OSD_MSG_TEXT 1
24 #define OSD_MSG_SUB_DELAY 2
25 #define OSD_MSG_SPEED 3
26 #define OSD_MSG_OSD_STATUS 4
27 #define OSD_MSG_BAR 5
28 #define OSD_MSG_PAUSE 6
29 #define OSD_MSG_RADIO_CHANNEL 7
30 /// Base id for messages generated from the commmand to property bridge.
31 #define OSD_MSG_PROPERTY 0x100
32 #define OSD_MSG_SUB_BASE 0x1000
34 #define MAX_OSD_LEVEL 3
35 #define MAX_TERM_OSD_LEVEL 1
37 // These appear in options list
38 extern int osd_duration;
39 extern int term_osd;
41 void set_osd_bar(int type,const char* name,double min,double max,double val);
42 void set_osd_msg(int id, int level, int time, const char* fmt, ...);
43 void rm_osd_msg(int id);
45 #endif /* MPLAYER_MP_OSD_H */