]> git.sesse.net Git - vlc/blob - projects/mozilla/vlcshell.h
Untracked API change utf8 to UTF8
[vlc] / projects / mozilla / vlcshell.h
1 /*****************************************************************************
2  * vlcshell.hp:
3  *****************************************************************************
4  * Copyright (C) 2009 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Jean-Paul Saman <jpsaman@videolan.org>
8  *
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.
13  *
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.
18  *
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
24 #ifndef __VLCSHELL_H__
25 #define __VLCSHELL_H__
26
27 /* Mozilla stuff */
28 #ifdef HAVE_MOZILLA_CONFIG_H
29 #   include <mozilla-config.h>
30 #endif
31
32 char * NPP_GetMIMEDescription( void );
33
34 NPError NPP_Initialize( void );
35
36 #ifdef OJI 
37 jref NPP_GetJavaClass( void );
38 #endif
39 void NPP_Shutdown( void );
40
41 NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
42                  char* argn[], char* argv[], NPSavedData* saved );
43 NPError NPP_Destroy( NPP instance, NPSavedData** save );
44
45 NPError NPP_GetValue( NPP instance, NPPVariable variable, void *value );
46 NPError NPP_SetValue( NPP instance, NPNVariable variable, void *value );
47
48 NPError NPP_SetWindow( NPP instance, NPWindow* window );
49
50 NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream *stream,
51 #if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
52                        NPBool seekable, uint16 *stype );
53 #else
54                        NPBool seekable, uint16_t *stype );
55 #endif
56 NPError NPP_DestroyStream( NPP instance, NPStream *stream, NPError reason );
57 void NPP_StreamAsFile( NPP instance, NPStream *stream, const char* fname );
58
59 #if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
60 int32 NPP_WriteReady( NPP instance, NPStream *stream );
61 int32 NPP_Write( NPP instance, NPStream *stream, int32 offset,
62                  int32 len, void *buffer );
63 #else
64 int32_t NPP_WriteReady( NPP instance, NPStream *stream );
65 int32_t NPP_Write( NPP instance, NPStream *stream, int32_t offset,
66                  int32_t len, void *buffer );
67 #endif
68
69 void NPP_URLNotify( NPP instance, const char* url,
70                     NPReason reason, void* notifyData );
71 void NPP_Print( NPP instance, NPPrint* printInfo );
72
73 #ifdef XP_MACOSX
74 #if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
75 int16 NPP_HandleEvent( NPP instance, void * event );
76 #else
77 int16_t NPP_HandleEvent( NPP instance, void * event );
78 #endif
79 #endif
80
81 #endif