1 /*****************************************************************************
2 * vlc_internal.h: Header for the Python vlcinternal binding
3 *****************************************************************************
4 * Copyright (C) 1998-2004 the VideoLAN team
7 * Authors: Olivier Aubert <oaubert at bat710.univ-lyon1.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 *****************************************************************************/
23 #ifndef _VLCINTERNAL_H
24 #define _VLCINTERNAL_H 1
26 /* We need to access some internal features of VLC (for vlc_object) */
27 /* This is gruik as we are not libvlc at all */
31 #include "structmember.h"
35 #include <vlc/libvlc.h>
36 /* Even gruiker ! We access variable_t ! */
37 #include "../../src/misc/variables.h"
39 /**********************************************************************
41 **********************************************************************/
42 #define VLCSELF ( ( vlcObject* )self )
44 /**********************************************************************
46 **********************************************************************/
50 vlc_object_t* p_object;
54 /* Forward declarations */
55 staticforward PyTypeObject vlcObject_Type;
57 /* Long long conversion on Mac os X/ppc */
58 #if defined (__ppc__) || defined(__ppc64__)
59 #define ntohll(x) ((long long) x >> 64)