vlcshell.h 2.78 KB
Newer Older
1
/*****************************************************************************
Jean-Paul Saman's avatar
Jean-Paul Saman committed
2
 * vlcshell.h:
3
 *****************************************************************************
Jean-Paul Saman's avatar
Jean-Paul Saman committed
4
 * Copyright (C) 2009-2010 the VideoLAN team
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
 * $Id$
 *
 * Authors: Jean-Paul Saman <jpsaman@videolan.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

#ifndef __VLCSHELL_H__
#define __VLCSHELL_H__

27 28 29 30
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

31

32
NPP_GET_MIME_CONST char * NPP_GetMIMEDescription( void );
33 34

NPError NPP_Initialize( void );
35

36 37
void NPP_Shutdown( void );

38 39
NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16_t mode, NPint16_t argc,
                 char* argn[], char* argv[], NPSavedData* saved );
40

41 42 43 44 45 46 47 48
NPError NPP_Destroy( NPP instance, NPSavedData** save );

NPError NPP_GetValue( NPP instance, NPPVariable variable, void *value );
NPError NPP_SetValue( NPP instance, NPNVariable variable, void *value );

NPError NPP_SetWindow( NPP instance, NPWindow* window );

NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream *stream,
49
                       NPBool seekable, NPuint16_t *stype );
50 51 52
NPError NPP_DestroyStream( NPP instance, NPStream *stream, NPError reason );
void NPP_StreamAsFile( NPP instance, NPStream *stream, const char* fname );

53 54 55
NPint32_t NPP_WriteReady( NPP instance, NPStream *stream );
NPint32_t NPP_Write( NPP instance, NPStream *stream, NPint32_t offset,
                 NPint32_t len, void *buffer );
56 57 58 59 60 61

void NPP_URLNotify( NPP instance, const char* url,
                    NPReason reason, void* notifyData );
void NPP_Print( NPP instance, NPPrint* printInfo );

#ifdef XP_MACOSX
62
NPint16_t NPP_HandleEvent( NPP instance, void * event );
63 64
#endif

65 66 67 68 69
/*******************************************************************************
 * Plugin properties.
 ******************************************************************************/
#define PLUGIN_NAME         "VLC Web Plugin"
#define PLUGIN_DESCRIPTION \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
70
    "Version %s, copyright 1996-2012 VideoLAN and Authors" \
71 72
    "<br />" \
    "<a href=\"http://www.videolan.org/vlc/\">http://www.videolan.org/vlc/</a>"
73

74
#endif