1 From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2 Subject: NPP_GetMIMEDescription should be const char*.
3 Last-Update: 2011-11-15
5 ... So that the definition matches with firefox's npapi.h.
7 Index: vlc/projects/mozilla/vlcshell.cpp
8 ===================================================================
9 --- vlc.orig/projects/mozilla/vlcshell.cpp 2011-11-15 14:51:04.298445000 -0500
10 +++ vlc/projects/mozilla/vlcshell.cpp 2011-11-15 17:52:44.416707114 -0500
12 /******************************************************************************
14 *****************************************************************************/
15 -char * NPP_GetMIMEDescription( void )
16 +const char * NPP_GetMIMEDescription( void )
18 static char mimetype[] = PLUGIN_MIMETYPES;
20 Index: vlc/projects/mozilla/vlcshell.h
21 ===================================================================
22 --- vlc.orig/projects/mozilla/vlcshell.h 2011-11-15 14:51:04.298445000 -0500
23 +++ vlc/projects/mozilla/vlcshell.h 2011-11-15 17:53:08.736706029 -0500
25 #ifndef __VLCSHELL_H__
26 #define __VLCSHELL_H__
28 -char * NPP_GetMIMEDescription( void );
29 +const char * NPP_GetMIMEDescription( void );
31 NPError NPP_Initialize( void );
33 Index: vlc/projects/mozilla/support/npunix.cpp
34 ===================================================================
35 --- vlc.orig/projects/mozilla/support/npunix.cpp 2011-11-15 14:51:04.298445000 -0500
36 +++ vlc/projects/mozilla/support/npunix.cpp 2011-11-15 18:06:53.972669237 -0500
38 * - Netscape uses the return value to identify when an object instance
39 * of this plugin should be created.
43 NP_GetMIMEDescription(void)
45 return NPP_GetMIMEDescription();