#endif
#include "vlcplugin.h"
+#include "vlcshell.h"
/* Enable/disable debugging printf's for X11 resizing */
#undef X11_RESIZE_DEBUG
*****************************************************************************/
char * NPP_GetMIMEDescription( void )
{
- return PLUGIN_MIMETYPES;
+ static char mimetype[] = PLUGIN_MIMETYPES;
+ return mimetype;
}
NPError NPP_GetValue( NPP instance, NPPVariable variable, void *value )
{
-
+ static char psz_name[] = PLUGIN_NAME;
static char psz_desc[1000];
/* plugin class variables */
switch( variable )
{
case NPPVpluginNameString:
- *((char **)value) = PLUGIN_NAME;
+ *((char **)value) = psz_name;
return NPERR_NO_ERROR;
case NPPVpluginDescriptionString:
return 8*1024;
}
-
int32 NPP_Write( NPP instance, NPStream *stream, int32 offset,
int32 len, void *buffer )
{
return len;
}
-
NPError NPP_DestroyStream( NPP instance, NPStream *stream, NPError reason )
{
if( instance == NULL )
return NPERR_NO_ERROR;
}
-
void NPP_StreamAsFile( NPP instance, NPStream *stream, const char* fname )
{
if( instance == NULL )
}
}
-
void NPP_URLNotify( NPP instance, const char* url,
NPReason reason, void* notifyData )
{