lua: factorize the right way.
[vlc/asuraparaju-public.git] / projects / mozilla / vlcshell.h
blob909bcecd2e3a5b444fde3ae986c59cb8137ba1a9
1 /*****************************************************************************
2 * vlcshell.h:
3 *****************************************************************************
4 * Copyright (C) 2009-2010 the VideoLAN team
5 * $Id$
7 * Authors: Jean-Paul Saman <jpsaman@videolan.org>
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 __VLCSHELL_H__
25 #define __VLCSHELL_H__
27 char * NPP_GetMIMEDescription( void );
29 NPError NPP_Initialize( void );
31 #ifdef OJI
32 jref NPP_GetJavaClass( void );
33 #endif
34 void NPP_Shutdown( void );
36 #if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
37 NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
38 char* argn[], char* argv[], NPSavedData* saved );
39 #else
40 NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc,
41 char* argn[], char* argv[], NPSavedData* saved );
42 #endif
44 NPError NPP_Destroy( NPP instance, NPSavedData** save );
46 NPError NPP_GetValue( NPP instance, NPPVariable variable, void *value );
47 NPError NPP_SetValue( NPP instance, NPNVariable variable, void *value );
49 NPError NPP_SetWindow( NPP instance, NPWindow* window );
51 NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream *stream,
52 #if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
53 NPBool seekable, uint16 *stype );
54 #else
55 NPBool seekable, uint16_t *stype );
56 #endif
57 NPError NPP_DestroyStream( NPP instance, NPStream *stream, NPError reason );
58 void NPP_StreamAsFile( NPP instance, NPStream *stream, const char* fname );
60 #if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
61 int32 NPP_WriteReady( NPP instance, NPStream *stream );
62 int32 NPP_Write( NPP instance, NPStream *stream, int32 offset,
63 int32 len, void *buffer );
64 #else
65 int32_t NPP_WriteReady( NPP instance, NPStream *stream );
66 int32_t NPP_Write( NPP instance, NPStream *stream, int32_t offset,
67 int32_t len, void *buffer );
68 #endif
70 void NPP_URLNotify( NPP instance, const char* url,
71 NPReason reason, void* notifyData );
72 void NPP_Print( NPP instance, NPPrint* printInfo );
74 #ifdef XP_MACOSX
75 #if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
76 int16 NPP_HandleEvent( NPP instance, void * event );
77 #else
78 int16_t NPP_HandleEvent( NPP instance, void * event );
79 #endif
80 #endif
82 #endif