1 /*****************************************************************************
2 * event.h: Input event functions
3 *****************************************************************************
4 * Copyright (C) 2008 Laurent Aimar
7 * Authors: Laurent Aimar <fenrir _AT_ videolan _DOT_ fr>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__)
25 # error This header file can only be included from LibVLC.
28 #ifndef _INPUT_EVENT_H
29 #define _INPUT_EVENT_H 1
31 #include <vlc_common.h>
33 /*****************************************************************************
35 *****************************************************************************/
41 } input_event_times_t;
43 void input_SendEventTimes( input_thread_t *p_input, const input_event_times_t *p_times );
44 void input_SendEventStatistics( input_thread_t *p_input );
45 void input_SendEventRate( input_thread_t *p_input, int i_rate );
46 void input_SendEventAudioDelay( input_thread_t *p_input, mtime_t i_delay );
47 void input_SendEventSubtitleDelay( input_thread_t *p_input, mtime_t i_delay );
48 void input_SendEventRecord( input_thread_t *p_input, bool b_recording );
49 void input_SendEventTitle( input_thread_t *p_input, int i_title );
50 void input_SendEventSeekpoint( input_thread_t *p_input, int i_title, int i_seekpoint );
51 void input_SendEventSignal( input_thread_t *p_input, double f_quality, double f_strength );
52 void input_SendEventState( input_thread_t *p_input, int i_state );
54 /* TODO rename Item* */
55 void input_SendEventMeta( input_thread_t *p_input );
56 void input_SendEventMetaInfo( input_thread_t *p_input );
57 void input_SendEventMetaName( input_thread_t *p_input, const char *psz_name );
59 /*****************************************************************************
61 *****************************************************************************/
62 void input_SendEventProgramAdd( input_thread_t *p_input,
63 int i_program, const char *psz_text );
64 void input_SendEventProgramDel( input_thread_t *p_input, int i_program );
65 void input_SendEventProgramSelect( input_thread_t *p_input, int i_program );
67 void input_SendEventEsDel( input_thread_t *p_input, int i_cat, int i_id );
68 void input_SendEventEsAdd( input_thread_t *p_input, int i_cat, int i_id, const char *psz_text );
69 void input_SendEventEsSelect( input_thread_t *p_input, int i_cat, int i_id ); /* i_id == -1 will unselect */
71 void input_SendEventTeletext( input_thread_t *p_input, int i_id );
73 /*****************************************************************************
75 *****************************************************************************/
76 void input_SendEventVout( input_thread_t *p_input );