event.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * event.h: Input event functions
00003  *****************************************************************************
00004  * Copyright (C) 2008 Laurent Aimar
00005  * $Id: c8f1071bbb34a99394dd573da4f1d677a9d7cfa9 $
00006  *
00007  * Authors: Laurent Aimar <fenrir _AT_ videolan _DOT_ fr>
00008  *
00009  * This program is free software; you can redistribute it and/or modify it
00010  * under the terms of the GNU Lesser General Public License as published by
00011  * the Free Software Foundation; either version 2.1 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00017  * GNU Lesser General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU Lesser General Public License
00020  * along with this program; if not, write to the Free Software Foundation,
00021  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef LIBVLC_INPUT_EVENT_H
00025 #define LIBVLC_INPUT_EVENT_H 1
00026 
00027 #include <vlc_common.h>
00028 
00029 /*****************************************************************************
00030  * Event for input.c
00031  *****************************************************************************/
00032 void input_SendEventDead( input_thread_t *p_input );
00033 void input_SendEventAbort( input_thread_t *p_input );
00034 void input_SendEventPosition( input_thread_t *p_input, double f_position, mtime_t i_time );
00035 void input_SendEventLength( input_thread_t *p_input, mtime_t i_length );
00036 void input_SendEventStatistics( input_thread_t *p_input );
00037 void input_SendEventRate( input_thread_t *p_input, int i_rate );
00038 void input_SendEventAudioDelay( input_thread_t *p_input, mtime_t i_delay );
00039 void input_SendEventSubtitleDelay( input_thread_t *p_input, mtime_t i_delay );
00040 void input_SendEventRecord( input_thread_t *p_input, bool b_recording );
00041 void input_SendEventTitle( input_thread_t *p_input, int i_title );
00042 void input_SendEventSeekpoint( input_thread_t *p_input, int i_title, int i_seekpoint );
00043 void input_SendEventSignal( input_thread_t *p_input, double f_quality, double f_strength );
00044 void input_SendEventState( input_thread_t *p_input, int i_state );
00045 void input_SendEventCache( input_thread_t *p_input, double f_level );
00046 
00047 /* TODO rename Item* */
00048 void input_SendEventMeta( input_thread_t *p_input );
00049 void input_SendEventMetaInfo( input_thread_t *p_input );
00050 void input_SendEventMetaName( input_thread_t *p_input, const char *psz_name );
00051 void input_SendEventMetaEpg( input_thread_t *p_input );
00052 
00053 /*****************************************************************************
00054  * Event for es_out.c
00055  *****************************************************************************/
00056 void input_SendEventProgramAdd( input_thread_t *p_input,
00057                                 int i_program, const char *psz_text );
00058 void input_SendEventProgramDel( input_thread_t *p_input, int i_program );
00059 void input_SendEventProgramSelect( input_thread_t *p_input, int i_program );
00060 void input_SendEventProgramScrambled( input_thread_t *p_input, int i_group, bool b_scrambled );
00061 
00062 void input_SendEventEsDel( input_thread_t *p_input, int i_cat, int i_id );
00063 void input_SendEventEsAdd( input_thread_t *p_input, int i_cat, int i_id, const char *psz_text );
00064 void input_SendEventEsSelect( input_thread_t *p_input, int i_cat, int i_id ); /* i_id == -1 will unselect */
00065 
00066 void input_SendEventTeletextAdd( input_thread_t *p_input,
00067                                  int i_teletext, const char *psz_text );
00068 void input_SendEventTeletextDel( input_thread_t *p_input, int i_teletext );
00069 void input_SendEventTeletextSelect( input_thread_t *p_input, int i_teletext );
00070 
00071 /*****************************************************************************
00072  * Event for decoder.c
00073  *****************************************************************************/
00074 void input_SendEventVout( input_thread_t *p_input );
00075 void input_SendEventAout( input_thread_t *p_input );
00076 
00077 /*****************************************************************************
00078  * Event for control.c/input.c
00079  *****************************************************************************/
00080 void input_SendEventBookmark( input_thread_t *p_input );
00081 
00082 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines