Fix another memleak in ncurses
[vlc.git] / include / vlc_main.h
blob2168788368a5f57418be705b39b85c250cd488dc
1 /*****************************************************************************
2 * main.h: access to all program variables
3 * Declaration and extern access to LibVLC instance object.
4 *****************************************************************************
5 * Copyright (C) 1999, 2000, 2001, 2002, 2008 the VideoLAN team
7 * Authors: Vincent Seguin <seguin@via.ecp.fr>
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 #if !defined( __LIBVLC__ )
25 #error You are not libvlc or one of its plugins. You cannot include this file
26 #endif
28 TYPEDEF_ARRAY(input_item_t*, input_item_array_t);
30 /*****************************************************************************
31 * libvlc_internal_instance_t
32 *****************************************************************************
33 * This structure is a LibVLC instance, for use by libvlc core and plugins
34 *****************************************************************************/
35 struct libvlc_int_t
37 VLC_COMMON_MEMBERS
39 /* Global properties */
40 char * psz_homedir; ///< user's home directory
42 global_stats_t *p_stats; ///< Global statistics
45 /* Structure storing the action name / key associations */
46 struct hotkey
48 const char *psz_action;
49 int i_action;
50 int i_key;
51 } *p_hotkeys;