1 /*****************************************************************************
2 * libvlc.h: Internal libvlc generic/misc declaration
3 *****************************************************************************
4 * Copyright © 2006-2007 Rémi Denis-Courmont
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
20 *****************************************************************************/
22 #ifndef LIBVLC_LIBVLC_H
23 # define LIBVLC_LIBVLC_H 1
25 extern const char vlc_usage[];
27 extern const module_config_t libvlc_config[];
28 extern const size_t libvlc_config_count;
30 extern const struct hotkey libvlc_hotkeys[];
31 extern const size_t libvlc_hotkeys_size;
34 vlc_custom_create (vlc_object_t *p_this, size_t i_size, int i_type,
35 const char *psz_type);
37 /*****************************************************************************
38 * libvlc_global_data_t (global variable)
39 *****************************************************************************
40 * This structure has an unique instance, statically allocated in main and
41 * never accessed from the outside. It stores once-initialized data such as
42 * the CPU capabilities or the global lock.
43 *****************************************************************************/
44 struct libvlc_global_data_t
48 vlc_bool_t b_ready; ///< Initialization boolean
50 /* Object structure data */
51 int i_counter; ///< object counter
52 int i_objects; ///< Attached objects count
53 vlc_object_t ** pp_objects; ///< Array of all objects
55 module_bank_t * p_module_bank; ///< The module bank
56 intf_thread_t *p_probe; ///< Devices prober
58 /* Arch-specific variables */
62 #if defined( SYS_BEOS )
63 vlc_object_t * p_appthread;
65 #elif defined( __APPLE__ )
67 vlc_iconv_t iconv_macosx; /* for HFS+ file names */
68 vlc_mutex_t iconv_lock;
69 #elif defined( WIN32 )
74 static inline libvlc_global_data_t *vlc_global( vlc_object_t *p_this )
76 return (libvlc_global_data_t *)p_this->p_libvlc_global;
79 extern uint32_t cpu_flags;