"Fossies" - the Fresh Open Source Software Archive 
Member "mozplugger-2.1.6/npapi/npp_func_tab.h" (17 Apr 2014, 5034 Bytes) of package /linux/www/old/mozplugger-2.1.6.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * The Original Code is mozilla.org code.
16 *
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 *
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
35 *
36 * ***** END LICENSE BLOCK ***** */
37
38 #ifndef _NPP_FUNC_TAB_H_
39 #define _NPP_FUNC_TAB_H_
40
41 //#include "npapi.h"
42 //#include "npruntime.h"
43
44
45 typedef NPError (*NPP_NewProcPtr)(NPMIMEType pluginType, NPP instance,
46 uint16_t mode, int16_t argc, char * argn[],
47 char * argv[], NPSavedData * saved);
48
49 typedef NPError (*NPP_DestroyProcPtr)(NPP instance, NPSavedData ** save);
50
51 typedef NPError (*NPP_SetWindowProcPtr)(NPP instance, NPWindow * window);
52
53 typedef NPError (*NPP_NewStreamProcPtr)(NPP instance, NPMIMEType type,
54 NPStream * stream, NPBool seekable, uint16_t * stype);
55
56 typedef NPError (*NPP_DestroyStreamProcPtr)(NPP instance, NPStream * stream,
57 NPReason reason);
58
59 typedef int32_t (*NPP_WriteReadyProcPtr)(NPP instance, NPStream * stream);
60
61 typedef int32_t (*NPP_WriteProcPtr)(NPP instance, NPStream * stream,
62 int32_t offset, int32_t len, void * buffer);
63
64 typedef void (*NPP_StreamAsFileProcPtr)(NPP instance, NPStream * stream,
65 const char * fname);
66
67 typedef void (*NPP_PrintProcPtr)(NPP instance, NPPrint * platformPrint);
68
69 typedef int16_t (*NPP_HandleEventProcPtr)(NPP instance, void * event);
70
71 typedef void (*NPP_URLNotifyProcPtr)(NPP instance, const char * url,
72 NPReason reason, void * notifyData);
73
74 typedef NPError (*NPP_GetValueProcPtr)(NPP instance, NPPVariable variable,
75 void * retValue);
76
77 typedef NPError (*NPP_SetValueProcPtr)(NPP instance, NPNVariable variable,
78 void * value);
79
80 typedef NPBool (*NPP_GotFocusPtr)(NPP instance, NPFocusDirection direction);
81
82 typedef void (*NPP_LostFocusPtr)(NPP instance);
83
84 typedef void (*NPP_URLRedirectNotifyPtr)(NPP instance, const char * url,
85 int32_t status, void * notifyData);
86
87 typedef NPError (*NPP_ClearSiteDataPtr)(const char * site, uint64_t flags,
88 uint64_t maxAge);
89
90 typedef char ** (*NPP_GetSitesWithDataPtr)(void);
91
92
93 /******************************************************************************/
94 struct NPPluginFuncs_s
95 {
96 uint16_t size;
97 uint16_t version;
98 NPP_NewProcPtr newp;
99 NPP_DestroyProcPtr destroy;
100 NPP_SetWindowProcPtr setwindow;
101 NPP_NewStreamProcPtr newstream;
102 NPP_DestroyStreamProcPtr destroystream;
103 NPP_StreamAsFileProcPtr asfile;
104 NPP_WriteReadyProcPtr writeready;
105 NPP_WriteProcPtr write;
106 NPP_PrintProcPtr print;
107 NPP_HandleEventProcPtr event;
108 NPP_URLNotifyProcPtr urlnotify;
109 void * javaClass;
110 NPP_GetValueProcPtr getvalue;
111 NPP_SetValueProcPtr setvalue;
112 NPP_GotFocusPtr gotfocus;
113 NPP_LostFocusPtr lostfocus;
114 NPP_URLRedirectNotifyPtr urlredirectnotify;
115 NPP_ClearSiteDataPtr clearsitedata;
116 NPP_GetSitesWithDataPtr getsiteswithdata;
117 };
118
119 typedef struct NPPluginFuncs_s NPPluginFuncs;
120
121 void NPP_Version(int* plugin_major, int* plugin_minor);
122
123 NPError NPP_InitFuncTable(NPPluginFuncs * pluginFuncs);
124
125 #endif