"Fossies" - the Fresh Open Source Software Archive 
Member "mozplugger-2.1.6/npapi/npn_funcs.h" (17 Apr 2014, 5525 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: 2 -*- */
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 _NPN_FUNCS_H_
39 #define _NPN_FUNCS_H_
40
41 #include <stdint.h>
42 //#include "npapi.h"
43
44
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48
49 NPError NPN_GetURLNotify(NPP instance, const char* url,
50 const char* target, void* notifyData);
51
52 NPError NPN_GetURL(NPP instance, const char* url, const char* target);
53
54 NPError NPN_PostURLNotify(NPP instance, const char* url,
55 const char* target, uint32_t len,
56 const char* buf, NPBool file,
57 void* notifyData);
58
59 NPError NPN_PostURL(NPP instance, const char* url,
60 const char* target, uint32_t len,
61 const char* buf, NPBool file);
62
63 NPError NPN_RequestRead(NPStream* stream, NPByteRange* rangeList);
64
65 NPError NPN_NewStream(NPP instance, NPMIMEType type,
66 const char* target, NPStream** stream);
67
68 int32_t NPN_Write(NPP instance, NPStream* stream, int32_t len,
69 void* buffer);
70
71 NPError NPN_DestroyStream(NPP instance, NPStream* stream,
72 NPReason reason);
73
74 void NPN_Status(NPP instance, const char* message);
75
76 const char * NPN_UserAgent(NPP instance);
77
78 void * NPN_MemAlloc(uint32_t size);
79
80 void NPN_MemFree(void* ptr);
81
82 uint32_t NPN_MemFlush(uint32_t size);
83
84 void NPN_ReloadPlugins(NPBool reloadPages);
85
86 NPError NPN_GetValue(NPP instance, NPNVariable variable, void * value);
87
88 NPError NPN_SetValue(NPP instance, NPPVariable variable, void * value);
89
90 void NPN_InvalidateRect(NPP instance, NPRect * invalidRect);
91
92 void NPN_InvalidateRegion(NPP instance, NPRegion invalidRegion);
93
94 void NPN_ForceRedraw(NPP instance);
95
96 void NPN_PushPopupsEnabledState(NPP instance, NPBool enabled);
97
98 void NPN_PopPopupsEnabledState(NPP instance);
99
100 void NPN_PluginThreadAsyncCall(NPP instance, void (*func) (void *),
101 void * userData);
102
103 NPError NPN_GetValueForURL(NPP instance, NPNURLVariable variable,
104 const char *url, char **value,
105 uint32_t *len);
106
107 NPError NPN_SetValueForURL(NPP instance, NPNURLVariable variable,
108 const char *url, const char *value,
109 uint32_t len);
110
111 NPError NPN_GetAuthenticationInfo(NPP instance,
112 const char *protocol,
113 const char *host, int32_t port,
114 const char *scheme,
115 const char *realm,
116 char **username, uint32_t *ulen,
117 char **password,
118 uint32_t *plen);
119
120 uint32_t NPN_ScheduleTimer(NPP instance, uint32_t interval, NPBool repeat,
121 void (*timerFunc)(NPP npp, uint32_t timerID));
122
123 void NPN_UnscheduleTimer(NPP instance, uint32_t timerID);
124
125 NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu);
126
127 NPBool NPN_ConvertPoint(NPP instance, double sourceX, double sourceY,
128 NPCoordinateSpace sourceSpace, double *destX,
129 double *destY, NPCoordinateSpace destSpace);
130
131 NPBool NPN_HandleEvent(NPP instance, void *event, NPBool handled);
132
133 NPBool NPN_UnfocusInstance(NPP instance, NPFocusDirection direction);
134
135 void NPN_URLRedirectResponse(NPP instance, void* notifyData, NPBool allow);
136
137 #ifdef __cplusplus
138 } /* end extern "C" */
139 #endif
140
141 #endif