• Sam Hocevar's avatar
    · 4b921617
    Sam Hocevar authored
      * DirectX enhancements by Gildas Bazin, such as software rendering.
      * Merged dvdcss_init and dvdcss_open into dvdcss_open, and dvdcss_close
        and dvdcss_end into dvdcss_close. libdvdcss API now has 7 functions.
      * Another failed attempt at profiling vlc under Linux: ported the
        threads API to GNU Pth. Activate with --enable-pth. It doesn't seem to
        spawn new threads for me, maybe someone will have better luck.
      * Makefile optimizations.
      * Automatic build of libdvdcss if not found.
    4b921617
gtk_menu.h 1.84 KB
/*****************************************************************************
 * gtk_menu.h: prototypes for menu functions
 *****************************************************************************
 * Copyright (C) 1999, 2000 VideoLAN
 * $Id: gtk_menu.h,v 1.4 2001/06/14 01:49:44 sam Exp $
 *
 * Authors: Samuel Hocevar <sam@zoy.org>
 *          Stéphane Borel <stef@via.ecp.fr>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 *****************************************************************************/

struct intf_thread_s;

gint GtkSetupMenus( struct intf_thread_s * );

/*****************************************************************************
 * String sizes
 *****************************************************************************/
#define GTK_MENU_LABEL_SIZE 64

/*****************************************************************************
 * Convert user_data structures to title and chapter information
 *****************************************************************************/
#define DATA2TITLE( user_data )    ( (gint)(user_data) >> 16 )
#define DATA2CHAPTER( user_data )  ( (gint)(user_data) & 0xffff )
#define POS2DATA( title, chapter ) ( ((title) << 16) | ((chapter) & 0xffff) )