3 * @brief X C Bindings VLC module common header
5 /*****************************************************************************
6 * Copyright © 2009 Rémi Denis-Courmont
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
23 #ifndef XCB_CURSOR_NONE
24 # define XCB_CURSOR_NONE ((xcb_cursor_t) 0U)
27 #include <vlc_vout_display.h>
30 typedef struct key_handler_t key_handler_t;
31 key_handler_t *XCB_keyHandler_Create (vlc_object_t *, xcb_connection_t *);
32 void XCB_keyHandler_Destroy (key_handler_t *);
33 int XCB_keyHandler_Process (key_handler_t *, xcb_generic_event_t *);
36 int XCB_error_Check (vout_display_t *, xcb_connection_t *conn,
37 const char *str, xcb_void_cookie_t);
39 struct vout_window_t *XCB_parent_Create (vout_display_t *obj,
41 const xcb_screen_t **,
42 uint16_t *width, uint16_t *height);
43 xcb_cursor_t XCB_cursor_Create (xcb_connection_t *, const xcb_screen_t *);
45 int XCB_Manage (vout_display_t *vd, xcb_connection_t *conn, bool *);