]> git.sesse.net Git - vlc/blob - src/control/media_player_internal.h
LibVLC: add functions to control mouse and keyboard events
[vlc] / src / control / media_player_internal.h
1 /*****************************************************************************
2  * libvlc_internal.h : Definition of opaque structures for libvlc exported API
3  * Also contains some internal utility functions
4  *****************************************************************************
5  * Copyright (C) 2005-2009 the VideoLAN team
6  * $Id$
7  *
8  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #ifndef _LIBVLC_MEDIA_PLAYER_INTERNAL_H
26 #define _LIBVLC_MEDIA_PLAYER_INTERNAL_H 1
27
28 #ifdef HAVE_CONFIG_H
29 # include "config.h"
30 #endif
31
32 #include <vlc/vlc.h>
33 #include <vlc/libvlc_structures.h>
34 #include <vlc/libvlc_media.h>
35 #include <vlc_input.h>
36
37 struct libvlc_media_player_t
38 {
39     int                i_refcount;
40     vlc_mutex_t        object_lock;
41     input_thread_t *   p_input_thread;
42         input_resource_t * p_input_resource;
43     struct libvlc_instance_t * p_libvlc_instance; /* Parent instance */
44     libvlc_media_t * p_md; /* current media descriptor */
45     libvlc_event_manager_t * p_event_manager;
46     struct
47     {
48         void *hwnd;
49         void *nsobject;
50         uint32_t xid;
51         uint32_t agl;
52     } drawable;
53     unsigned keyboard_events:1;
54     unsigned mouse_events:1;
55 };
56
57 /* Media player - audio, video */
58 input_thread_t *libvlc_get_input_thread(libvlc_media_player_t *, libvlc_exception_t * );
59
60
61 libvlc_track_description_t * libvlc_get_track_description(
62         libvlc_media_player_t *p_mi,
63         const char *psz_variable,
64         libvlc_exception_t *p_e );
65
66 #endif