xcb_vlc.h

Go to the documentation of this file.
00001 /**
00002  * @file xcb_vlc.h
00003  * @brief X C Bindings VLC module common header
00004  */
00005 /*****************************************************************************
00006  * Copyright © 2009 Rémi Denis-Courmont
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License
00010  * as published by the Free Software Foundation; either version 2
00011  * of the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00021  ****************************************************************************/
00022 
00023 #ifdef WORDS_BIGENDIAN
00024 # define ORDER XCB_IMAGE_ORDER_MSB_FIRST
00025 #else
00026 # define ORDER XCB_IMAGE_ORDER_LSB_FIRST
00027 #endif
00028 
00029 #ifndef XCB_CURSOR_NONE
00030 # define XCB_CURSOR_NONE ((xcb_cursor_t) 0U)
00031 #endif
00032 
00033 #include <vlc_picture.h>
00034 #include <vlc_vout_display.h>
00035 
00036 int ManageEvent (vout_display_t *vd, xcb_connection_t *conn, bool *);
00037 
00038 /* keys.c */
00039 typedef struct key_handler_t key_handler_t;
00040 key_handler_t *CreateKeyHandler (vlc_object_t *, xcb_connection_t *);
00041 void DestroyKeyHandler (key_handler_t *);
00042 int ProcessKeyEvent (key_handler_t *, xcb_generic_event_t *);
00043 
00044 /* common.c */
00045 struct vout_window_t *GetWindow (vout_display_t *obj,
00046                                  xcb_connection_t **restrict pconn,
00047                                  const xcb_screen_t **restrict pscreen,
00048                                  uint8_t *restrict pdepth);
00049 int GetWindowSize (struct vout_window_t *wnd, xcb_connection_t *conn,
00050                    unsigned *restrict width, unsigned *restrict height);
00051 void CheckSHM (vlc_object_t *obj, xcb_connection_t *conn, bool *restrict pshm);
00052 xcb_cursor_t CreateBlankCursor (xcb_connection_t *, const xcb_screen_t *);
00053 void RegisterMouseEvents (vlc_object_t *, xcb_connection_t *, xcb_window_t);
00054 
00055 int CheckError (vout_display_t *, xcb_connection_t *conn,
00056                 const char *str, xcb_void_cookie_t);
00057 
00058 /* FIXME
00059  * maybe it would be better to split this header in 2 */
00060 #include <xcb/shm.h>
00061 struct picture_sys_t
00062 {
00063     xcb_shm_seg_t segment;
00064 };
00065 int PictureResourceAlloc (vout_display_t *vd, picture_resource_t *res, size_t size,
00066                           xcb_connection_t *conn, bool attach);
00067 void PictureResourceFree (picture_resource_t *res, xcb_connection_t *conn);
00068 

Generated on Tue May 25 08:05:00 2010 for VLC by  doxygen 1.5.6