1 /*****************************************************************************
2 * maemo_input.h : Input handling header file for the maemo plugin.
3 *****************************************************************************
4 * Copyright (C) 2008 the VideoLAN team
7 * Authors: Antoine Lejeune <phytos@videolan.org>
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 *****************************************************************************/
26 #include <vlc_common.h>
27 #include <vlc_interface.h>
29 #define EVENT_ITEM_STATE_CHANGE (1<<0)
30 #define EVENT_PLAYLIST_CURRENT (1<<1)
31 #define EVENT_ACTIVITY (1<<2)
32 #define EVENT_ITEM_CHANGED (1<<3)
33 #define EVENT_INTF_CHANGED (1<<4)
35 void post_event( intf_thread_t *p_intf, int event );
37 void set_input( intf_thread_t *p_intf, input_thread_t *p_input );
38 void delete_input( intf_thread_t *p_intf );
40 int playlist_current_cb( vlc_object_t *p_this, const char *psz_var,
41 vlc_value_t oldval, vlc_value_t newval, void *param );
42 int activity_cb( vlc_object_t *p_this, const char *psz_var,
43 vlc_value_t oldval, vlc_value_t newval, void *param );
45 int item_changed_cb( vlc_object_t *p_this, const char *psz_var,
46 vlc_value_t oldval, vlc_value_t newval, void *param );