1 /*****************************************************************************
\r
2 * menu.h: prototypes for menu functions
\r
3 *****************************************************************************
\r
4 * Copyright (C) 2002 VideoLAN
\r
6 * Authors: Olivier Teuliere <ipkiss@via.ecp.fr>
\r
8 * This program is free software; you can redistribute it and/or modify
\r
9 * it under the terms of the GNU General Public License as published by
\r
10 * the Free Software Foundation; either version 2 of the License, or
\r
11 * (at your option) any later version.
\r
13 * This program is distributed in the hope that it will be useful,
\r
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
16 * GNU General Public License for more details.
\r
18 * You should have received a copy of the GNU General Public License
\r
19 * along with this program; if not, write to the Free Software
\r
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
\r
21 *****************************************************************************/
\r
23 int __fastcall SetupMenus( intf_thread_t * );
\r
25 /*****************************************************************************
\r
26 * Convert user_data structures to title and chapter information
\r
27 *****************************************************************************/
\r
28 #define DATA2TITLE( data ) ( (int)((long)(data)) >> 16 )
\r
29 #define DATA2CHAPTER( data ) ( (int)((long)(data)) & 0xffff )
\r
30 #define POS2DATA( title, chapter ) ( NULL + ( ((title) << 16) \
\r
31 | ((chapter) & 0xffff)) )
\r