1 /*****************************************************************************
2 * parser.c : OSD import module
3 *****************************************************************************
4 * Copyright (C) 2007 M2X
7 * Authors: Jean-Paul Saman
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef _OSD_MENU_PARSER_H_
25 #define _OSD_MENU_PARSER_H_
27 extern const char * const ppsz_button_states[3];
29 /* OSD Menu structure support routines for internal use by
30 * OSD Menu configuration file parsers only.
32 osd_menu_t *osd_MenuNew( osd_menu_t *, const char *, int, int );
33 osd_button_t *osd_ButtonNew( const char *, int, int );
34 osd_state_t *osd_StateNew( osd_menu_t *, const char *, const char * );
36 void osd_MenuFree ( osd_menu_t * );
37 void osd_ButtonFree( osd_menu_t *, osd_button_t * );
38 void osd_StatesFree( osd_menu_t *, osd_state_t * );