front_idill/extern/fajran-npTuioClient/npapi/npupp.h
author bastiena
Fri, 06 Apr 2012 10:44:54 +0200
changeset 21 e4e5f02787a1
permissions -rw-r--r--
Front IDILL : Added Communication extern named fajran-npTuioClient It contains the project generating a dll used as a browser plugin.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     2
/* ***** BEGIN LICENSE BLOCK *****
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     3
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     4
 *
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     5
 * The contents of this file are subject to the Mozilla Public License Version
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     6
 * 1.1 (the "License"); you may not use this file except in compliance with
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     7
 * the License. You may obtain a copy of the License at
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     8
 * http://www.mozilla.org/MPL/
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
     9
 *
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    10
 * Software distributed under the License is distributed on an "AS IS" basis,
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    11
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    12
 * for the specific language governing rights and limitations under the
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    13
 * License.
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    14
 *
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    15
 * The Original Code is mozilla.org code.
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    16
 *
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    17
 * The Initial Developer of the Original Code is
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    18
 * Netscape Communications Corporation.
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    19
 * Portions created by the Initial Developer are Copyright (C) 1998
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    20
 * the Initial Developer. All Rights Reserved.
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    21
 *
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    22
 * Contributor(s):
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    23
 *
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    24
 * Alternatively, the contents of this file may be used under the terms of
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    25
 * either the GNU General Public License Version 2 or later (the "GPL"), or
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    26
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    27
 * in which case the provisions of the GPL or the LGPL are applicable instead
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    28
 * of those above. If you wish to allow use of your version of this file only
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    29
 * under the terms of either the GPL or the LGPL, and not to allow others to
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    30
 * use your version of this file under the terms of the MPL, indicate your
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    31
 * decision by deleting the provisions above and replace them with the notice
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    32
 * and other provisions required by the GPL or the LGPL. If you do not delete
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    33
 * the provisions above, a recipient may use your version of this file under
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    34
 * the terms of any one of the MPL, the GPL or the LGPL.
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    35
 *
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    36
 * ***** END LICENSE BLOCK ***** */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    37
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    38
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    39
/*
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    40
 *  npupp.h $Revision: 3.26 $
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    41
 *  function call mecahnics needed by platform specific glue code.
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    42
 */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    43
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    44
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    45
#ifndef _NPUPP_H_
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    46
#define _NPUPP_H_
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    47
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    48
#if defined(__OS2__)
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    49
#pragma pack(1)
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    50
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    51
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    52
#ifndef GENERATINGCFM
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    53
#define GENERATINGCFM 0
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    54
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    55
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    56
#ifndef _NPAPI_H_
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    57
#include "npapi.h"
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    58
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    59
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    60
#include "npruntime.h"
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    61
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    62
#include "jri.h"
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    63
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    64
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    65
/******************************************************************************************
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    66
   plug-in function table macros
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    67
 	        for each function in and out of the plugin API we define
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    68
                    typedef NPP_FooUPP
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    69
					#define NewNPP_FooProc
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    70
					#define CallNPP_FooProc
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    71
 *******************************************************************************************/
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    72
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    73
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    74
/* NPP_Initialize */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    75
typedef void (* NP_LOADDS NPP_InitializeUPP)(void);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    76
#define NewNPP_InitializeProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    77
		((NPP_InitializeUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    78
#define CallNPP_InitializeProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    79
		(*(FUNC))()
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    80
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    81
/* NPP_Shutdown */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    82
typedef void (* NP_LOADDS NPP_ShutdownUPP)(void);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    83
#define NewNPP_ShutdownProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    84
		((NPP_ShutdownUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    85
#define CallNPP_ShutdownProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    86
		(*(FUNC))()
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    87
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    88
/* NPP_New */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    89
typedef NPError	(* NP_LOADDS NPP_NewUPP)(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char* argn[], char* argv[], NPSavedData* saved);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    90
#define NewNPP_NewProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    91
		((NPP_NewUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    92
#define CallNPP_NewProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    93
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5), (ARG6), (ARG7))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    94
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    95
/* NPP_Destroy */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    96
typedef NPError	(* NP_LOADDS NPP_DestroyUPP)(NPP instance, NPSavedData** save);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    97
#define NewNPP_DestroyProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    98
		((NPP_DestroyUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
    99
#define CallNPP_DestroyProc(FUNC, ARG1, ARG2)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   100
		(*(FUNC))((ARG1), (ARG2))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   101
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   102
/* NPP_SetWindow */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   103
typedef NPError	(* NP_LOADDS NPP_SetWindowUPP)(NPP instance, NPWindow* window);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   104
#define NewNPP_SetWindowProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   105
		((NPP_SetWindowUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   106
#define CallNPP_SetWindowProc(FUNC, ARG1, ARG2)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   107
		(*(FUNC))((ARG1), (ARG2))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   108
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   109
/* NPP_NewStream */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   110
typedef NPError	(* NP_LOADDS NPP_NewStreamUPP)(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16* stype);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   111
#define NewNPP_NewStreamProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   112
		((NPP_NewStreamUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   113
#define CallNPP_NewStreamProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5) \
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   114
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   115
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   116
/* NPP_DestroyStream */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   117
typedef NPError	(* NP_LOADDS NPP_DestroyStreamUPP)(NPP instance, NPStream* stream, NPReason reason);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   118
#define NewNPP_DestroyStreamProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   119
		((NPP_DestroyStreamUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   120
#define CallNPP_DestroyStreamProc(FUNC,  NPParg, NPStreamPtr, NPReasonArg)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   121
		(*(FUNC))((NPParg), (NPStreamPtr), (NPReasonArg))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   122
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   123
/* NPP_WriteReady */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   124
typedef int32 (* NP_LOADDS NPP_WriteReadyUPP)(NPP instance, NPStream* stream);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   125
#define NewNPP_WriteReadyProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   126
		((NPP_WriteReadyUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   127
#define CallNPP_WriteReadyProc(FUNC,  NPParg, NPStreamPtr)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   128
		(*(FUNC))((NPParg), (NPStreamPtr))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   129
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   130
/* NPP_Write */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   131
typedef int32 (* NP_LOADDS NPP_WriteUPP)(NPP instance, NPStream* stream, int32 offset, int32 len, void* buffer);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   132
#define NewNPP_WriteProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   133
		((NPP_WriteUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   134
#define CallNPP_WriteProc(FUNC,  NPParg, NPStreamPtr, offsetArg, lenArg, bufferPtr)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   135
		(*(FUNC))((NPParg), (NPStreamPtr), (offsetArg), (lenArg), (bufferPtr))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   136
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   137
/* NPP_StreamAsFile */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   138
typedef void (* NP_LOADDS NPP_StreamAsFileUPP)(NPP instance, NPStream* stream, const char* fname);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   139
#define NewNPP_StreamAsFileProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   140
		((NPP_StreamAsFileUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   141
#define CallNPP_StreamAsFileProc(FUNC,  ARG1, ARG2, ARG3)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   142
		(*(FUNC))((ARG1), (ARG2), (ARG3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   143
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   144
/* NPP_Print */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   145
typedef void (* NP_LOADDS NPP_PrintUPP)(NPP instance, NPPrint* platformPrint);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   146
#define NewNPP_PrintProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   147
		((NPP_PrintUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   148
#define CallNPP_PrintProc(FUNC,  NPParg, NPPrintArg)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   149
		(*(FUNC))((NPParg), (NPPrintArg))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   150
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   151
/* NPP_HandleEvent */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   152
typedef int16 (* NP_LOADDS NPP_HandleEventUPP)(NPP instance, void* event);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   153
#define NewNPP_HandleEventProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   154
		((NPP_HandleEventUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   155
#define CallNPP_HandleEventProc(FUNC,  NPParg, voidPtr)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   156
		(*(FUNC))((NPParg), (voidPtr))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   157
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   158
/* NPP_URLNotify */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   159
typedef void (* NP_LOADDS NPP_URLNotifyUPP)(NPP instance, const char* url, NPReason reason, void* notifyData);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   160
#define NewNPP_URLNotifyProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   161
		((NPP_URLNotifyUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   162
#define CallNPP_URLNotifyProc(FUNC,  ARG1, ARG2, ARG3, ARG4)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   163
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   164
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   165
/* NPP_GetValue */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   166
typedef NPError	(* NP_LOADDS NPP_GetValueUPP)(NPP instance, NPPVariable variable, void *ret_alue);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   167
#define NewNPP_GetValueProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   168
		((NPP_GetValueUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   169
#define CallNPP_GetValueProc(FUNC, ARG1, ARG2, ARG3)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   170
		(*(FUNC))((ARG1), (ARG2), (ARG3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   171
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   172
/* NPP_SetValue */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   173
typedef NPError	(* NP_LOADDS NPP_SetValueUPP)(NPP instance, NPNVariable variable, void *ret_alue);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   174
#define NewNPP_SetValueProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   175
		((NPP_SetValueUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   176
#define CallNPP_SetValueProc(FUNC, ARG1, ARG2, ARG3)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   177
		(*(FUNC))((ARG1), (ARG2), (ARG3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   178
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   179
/*
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   180
 *  Netscape entry points
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   181
 */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   182
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   183
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   184
/* NPN_GetValue */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   185
typedef NPError	(* NP_LOADDS NPN_GetValueUPP)(NPP instance, NPNVariable variable, void *ret_alue);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   186
#define NewNPN_GetValueProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   187
		((NPN_GetValueUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   188
#define CallNPN_GetValueProc(FUNC, ARG1, ARG2, ARG3)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   189
		(*(FUNC))((ARG1), (ARG2), (ARG3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   190
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   191
/* NPN_SetValue */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   192
typedef NPError	(* NP_LOADDS NPN_SetValueUPP)(NPP instance, NPPVariable variable, void *ret_alue);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   193
#define NewNPN_SetValueProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   194
		((NPN_SetValueUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   195
#define CallNPN_SetValueProc(FUNC, ARG1, ARG2, ARG3)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   196
		(*(FUNC))((ARG1), (ARG2), (ARG3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   197
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   198
/* NPN_GetUrlNotify */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   199
typedef NPError	(* NP_LOADDS NPN_GetURLNotifyUPP)(NPP instance, const char* url, const char* window, void* notifyData);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   200
#define NewNPN_GetURLNotifyProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   201
		((NPN_GetURLNotifyUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   202
#define CallNPN_GetURLNotifyProc(FUNC, ARG1, ARG2, ARG3, ARG4)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   203
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   204
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   205
/* NPN_PostUrlNotify */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   206
typedef NPError (* NP_LOADDS NPN_PostURLNotifyUPP)(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file, void* notifyData);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   207
#define NewNPN_PostURLNotifyProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   208
		((NPN_PostURLNotifyUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   209
#define CallNPN_PostURLNotifyProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7) \
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   210
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5), (ARG6), (ARG7))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   211
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   212
/* NPN_GetUrl */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   213
typedef NPError	(* NP_LOADDS NPN_GetURLUPP)(NPP instance, const char* url, const char* window);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   214
#define NewNPN_GetURLProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   215
		((NPN_GetURLUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   216
#define CallNPN_GetURLProc(FUNC, ARG1, ARG2, ARG3)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   217
		(*(FUNC))((ARG1), (ARG2), (ARG3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   218
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   219
/* NPN_PostUrl */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   220
typedef NPError (* NP_LOADDS NPN_PostURLUPP)(NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   221
#define NewNPN_PostURLProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   222
		((NPN_PostURLUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   223
#define CallNPN_PostURLProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6) \
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   224
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5), (ARG6))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   225
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   226
/* NPN_RequestRead */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   227
typedef NPError	(* NP_LOADDS NPN_RequestReadUPP)(NPStream* stream, NPByteRange* rangeList);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   228
#define NewNPN_RequestReadProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   229
		((NPN_RequestReadUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   230
#define CallNPN_RequestReadProc(FUNC, stream, range)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   231
		(*(FUNC))((stream), (range))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   232
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   233
/* NPN_NewStream */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   234
typedef NPError	(* NP_LOADDS NPN_NewStreamUPP)(NPP instance, NPMIMEType type, const char* window, NPStream** stream);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   235
#define NewNPN_NewStreamProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   236
		((NPN_NewStreamUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   237
#define CallNPN_NewStreamProc(FUNC, npp, type, window, stream)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   238
		(*(FUNC))((npp), (type), (window), (stream))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   239
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   240
/* NPN_Write */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   241
typedef int32 (* NP_LOADDS NPN_WriteUPP)(NPP instance, NPStream* stream, int32 len, void* buffer);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   242
#define NewNPN_WriteProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   243
		((NPN_WriteUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   244
#define CallNPN_WriteProc(FUNC, npp, stream, len, buffer)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   245
		(*(FUNC))((npp), (stream), (len), (buffer))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   246
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   247
/* NPN_DestroyStream */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   248
typedef NPError (* NP_LOADDS NPN_DestroyStreamUPP)(NPP instance, NPStream* stream, NPReason reason);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   249
#define NewNPN_DestroyStreamProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   250
		((NPN_DestroyStreamUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   251
#define CallNPN_DestroyStreamProc(FUNC, npp, stream, reason)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   252
		(*(FUNC))((npp), (stream), (reason))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   253
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   254
/* NPN_Status */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   255
typedef void (* NP_LOADDS NPN_StatusUPP)(NPP instance, const char* message);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   256
#define NewNPN_StatusProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   257
		((NPN_StatusUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   258
#define CallNPN_StatusProc(FUNC, npp, msg)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   259
		(*(FUNC))((npp), (msg))	
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   260
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   261
/* NPN_UserAgent */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   262
typedef const char*	(* NP_LOADDS NPN_UserAgentUPP)(NPP instance);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   263
#define NewNPN_UserAgentProc(FUNC)              \
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   264
                ((NPN_UserAgentUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   265
#define CallNPN_UserAgentProc(FUNC, ARG1)               \
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   266
                (*(FUNC))((ARG1))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   267
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   268
/* NPN_MemAlloc */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   269
typedef void* (* NP_LOADDS NPN_MemAllocUPP)(uint32 size);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   270
#define NewNPN_MemAllocProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   271
		((NPN_MemAllocUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   272
#define CallNPN_MemAllocProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   273
		(*(FUNC))((ARG1))	
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   274
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   275
/* NPN__MemFree */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   276
typedef void (* NP_LOADDS NPN_MemFreeUPP)(void* ptr);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   277
#define NewNPN_MemFreeProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   278
		((NPN_MemFreeUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   279
#define CallNPN_MemFreeProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   280
		(*(FUNC))((ARG1))	
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   281
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   282
/* NPN_MemFlush */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   283
typedef uint32 (* NP_LOADDS NPN_MemFlushUPP)(uint32 size);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   284
#define NewNPN_MemFlushProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   285
		((NPN_MemFlushUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   286
#define CallNPN_MemFlushProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   287
		(*(FUNC))((ARG1))	
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   288
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   289
/* NPN_ReloadPlugins */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   290
typedef void (* NP_LOADDS NPN_ReloadPluginsUPP)(NPBool reloadPages);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   291
#define NewNPN_ReloadPluginsProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   292
		((NPN_ReloadPluginsUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   293
#define CallNPN_ReloadPluginsProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   294
		(*(FUNC))((ARG1))	
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   295
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   296
/* NPN_GetJavaEnv */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   297
typedef JRIEnv* (* NP_LOADDS NPN_GetJavaEnvUPP)(void);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   298
#define NewNPN_GetJavaEnvProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   299
		((NPN_GetJavaEnvUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   300
#define CallNPN_GetJavaEnvProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   301
		(*(FUNC))()	
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   302
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   303
/* NPN_GetJavaPeer */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   304
typedef jref (* NP_LOADDS NPN_GetJavaPeerUPP)(NPP instance);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   305
#define NewNPN_GetJavaPeerProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   306
		((NPN_GetJavaPeerUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   307
#define CallNPN_GetJavaPeerProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   308
		(*(FUNC))((ARG1))	
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   309
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   310
/* NPN_InvalidateRect */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   311
typedef void (* NP_LOADDS NPN_InvalidateRectUPP)(NPP instance, NPRect *rect);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   312
#define NewNPN_InvalidateRectProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   313
		((NPN_InvalidateRectUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   314
#define CallNPN_InvalidateRectProc(FUNC, ARG1, ARG2)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   315
		(*(FUNC))((ARG1), (ARG2))	
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   316
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   317
/* NPN_InvalidateRegion */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   318
typedef void (* NP_LOADDS NPN_InvalidateRegionUPP)(NPP instance, NPRegion region);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   319
#define NewNPN_InvalidateRegionProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   320
		((NPN_InvalidateRegionUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   321
#define CallNPN_InvalidateRegionProc(FUNC, ARG1, ARG2)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   322
		(*(FUNC))((ARG1), (ARG2))	
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   323
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   324
/* NPN_ForceRedraw */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   325
typedef void (* NP_LOADDS NPN_ForceRedrawUPP)(NPP instance);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   326
#define NewNPN_ForceRedrawProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   327
		((NPN_ForceRedrawUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   328
#define CallNPN_ForceRedrawProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   329
		(*(FUNC))((ARG1))	
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   330
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   331
/* NPN_GetStringIdentifier */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   332
typedef NPIdentifier (* NP_LOADDS NPN_GetStringIdentifierUPP)(const NPUTF8* name);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   333
#define NewNPN_GetStringIdentifierProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   334
		((NPN_GetStringIdentifierUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   335
#define CallNPN_GetStringIdentifierProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   336
		(*(FUNC))((ARG1))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   337
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   338
/* NPN_GetStringIdentifiers */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   339
typedef void (* NP_LOADDS NPN_GetStringIdentifiersUPP)(const NPUTF8** names,
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   340
                                                 int32_t nameCount,
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   341
                                                 NPIdentifier* identifiers);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   342
#define NewNPN_GetStringIdentifiersProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   343
		((NPN_GetStringIdentifiersUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   344
#define CallNPN_GetStringIdentifiersProc(FUNC, ARG1, ARG2, ARG3)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   345
		(*(FUNC))((ARG1), (ARG2), (ARG3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   346
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   347
/* NPN_GetIntIdentifier */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   348
typedef NPIdentifier (* NP_LOADDS NPN_GetIntIdentifierUPP)(int32_t intid);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   349
#define NewNPN_GetIntIdentifierProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   350
		((NPN_GetIntIdentifierUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   351
#define CallNPN_GetIntIdentifierProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   352
		(*(FUNC))((ARG1))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   353
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   354
/* NPN_IdentifierIsString */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   355
typedef bool (* NP_LOADDS NPN_IdentifierIsStringUPP)(NPIdentifier identifier);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   356
#define NewNPN_IdentifierIsStringProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   357
		((NPN_IdentifierIsStringUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   358
#define CallNPN_IdentifierIsStringProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   359
		(*(FUNC))((ARG1))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   360
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   361
/* NPN_UTF8FromIdentifier */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   362
typedef NPUTF8* (* NP_LOADDS NPN_UTF8FromIdentifierUPP)(NPIdentifier identifier);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   363
#define NewNPN_UTF8FromIdentifierProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   364
		((NPN_UTF8FromIdentifierUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   365
#define CallNPN_UTF8FromIdentifierProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   366
		(*(FUNC))((ARG1))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   367
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   368
/* NPN_IntFromIdentifier */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   369
typedef int32_t (* NP_LOADDS NPN_IntFromIdentifierUPP)(NPIdentifier identifier);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   370
#define NewNPN_IntFromIdentifierProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   371
		((NPN_IntFromIdentifierUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   372
#define CallNPN_IntFromIdentifierProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   373
		(*(FUNC))((ARG1))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   374
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   375
/* NPN_CreateObject */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   376
typedef NPObject* (* NP_LOADDS NPN_CreateObjectUPP)(NPP npp, NPClass *aClass);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   377
#define NewNPN_CreateObjectProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   378
		((NPN_CreateObjectUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   379
#define CallNPN_CreateObjectProc(FUNC, ARG1, ARG2)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   380
		(*(FUNC))((ARG1), (ARG2))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   381
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   382
/* NPN_RetainObject */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   383
typedef NPObject* (* NP_LOADDS NPN_RetainObjectUPP)(NPObject *obj);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   384
#define NewNPN_RetainObjectProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   385
		((NPN_RetainObjectUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   386
#define CallNPN_RetainObjectProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   387
		(*(FUNC))((ARG1))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   388
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   389
/* NPN_ReleaseObject */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   390
typedef void (* NP_LOADDS NPN_ReleaseObjectUPP)(NPObject *obj);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   391
#define NewNPN_ReleaseObjectProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   392
		((NPN_ReleaseObjectUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   393
#define CallNPN_ReleaseObjectProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   394
		(*(FUNC))((ARG1))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   395
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   396
/* NPN_Invoke */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   397
typedef bool (* NP_LOADDS NPN_InvokeUPP)(NPP npp, NPObject* obj, NPIdentifier methodName, const NPVariant *args, uint32_t argCount, NPVariant *result);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   398
#define NewNPN_InvokeProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   399
		((NPN_InvokeUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   400
#define CallNPN_InvokeProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   401
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5), (ARG6))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   402
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   403
/* NPN_InvokeDefault */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   404
typedef bool (* NP_LOADDS NPN_InvokeDefaultUPP)(NPP npp, NPObject* obj, const NPVariant *args, uint32_t argCount, NPVariant *result);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   405
#define NewNPN_InvokeDefaultProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   406
		((NPN_InvokeDefaultUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   407
#define CallNPN_InvokeDefaultProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   408
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   409
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   410
/* NPN_Evaluate */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   411
typedef bool (* NP_LOADDS NPN_EvaluateUPP)(NPP npp, NPObject *obj, NPString *script, NPVariant *result);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   412
#define NewNPN_EvaluateProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   413
		((NPN_EvaluateUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   414
#define CallNPN_EvaluateProc(FUNC, ARG1, ARG2, ARG3, ARG4)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   415
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   416
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   417
/* NPN_GetProperty */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   418
typedef bool (* NP_LOADDS NPN_GetPropertyUPP)(NPP npp, NPObject *obj, NPIdentifier propertyName, NPVariant *result);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   419
#define NewNPN_GetPropertyProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   420
		((NPN_GetPropertyUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   421
#define CallNPN_GetPropertyProc(FUNC, ARG1, ARG2, ARG3, ARG4)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   422
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   423
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   424
/* NPN_SetProperty */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   425
typedef bool (* NP_LOADDS NPN_SetPropertyUPP)(NPP npp, NPObject *obj, NPIdentifier propertyName, const NPVariant *value);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   426
#define NewNPN_SetPropertyProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   427
		((NPN_SetPropertyUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   428
#define CallNPN_SetPropertyProc(FUNC, ARG1, ARG2, ARG3, ARG4)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   429
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   430
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   431
/* NPN_RemoveProperty */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   432
typedef bool (* NP_LOADDS NPN_RemovePropertyUPP)(NPP npp, NPObject *obj, NPIdentifier propertyName);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   433
#define NewNPN_RemovePropertyProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   434
		((NPN_RemovePropertyUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   435
#define CallNPN_RemovePropertyProc(FUNC, ARG1, ARG2, ARG3)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   436
		(*(FUNC))((ARG1), (ARG2), (ARG3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   437
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   438
/* NPN_HasProperty */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   439
typedef bool (* NP_LOADDS NPN_HasPropertyUPP)(NPP npp, NPObject *obj, NPIdentifier propertyName);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   440
#define NewNPN_HasPropertyProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   441
		((NPN_HasPropertyUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   442
#define CallNPN_HasPropertyProc(FUNC, ARG1, ARG2, ARG3)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   443
		(*(FUNC))((ARG1), (ARG2), (ARG3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   444
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   445
/* NPN_HasMethod */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   446
typedef bool (* NP_LOADDS NPN_HasMethodUPP)(NPP npp, NPObject *obj, NPIdentifier propertyName);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   447
#define NewNPN_HasMethodProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   448
		((NPN_HasMethodUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   449
#define CallNPN_HasMethodProc(FUNC, ARG1, ARG2, ARG3)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   450
		(*(FUNC))((ARG1), (ARG2), (ARG3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   451
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   452
/* NPN_ReleaseVariantValue */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   453
typedef void (* NP_LOADDS NPN_ReleaseVariantValueUPP)(NPVariant *variant);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   454
#define NewNPN_ReleaseVariantValueProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   455
		((NPN_ReleaseVariantValueUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   456
#define CallNPN_ReleaseVariantValueProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   457
		(*(FUNC))((ARG1))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   458
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   459
/* NPN_SetException */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   460
typedef void (* NP_LOADDS NPN_SetExceptionUPP)(NPObject *obj, const NPUTF8 *message);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   461
#define NewNPN_SetExceptionProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   462
		((NPN_SetExceptionUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   463
#define CallNPN_SetExceptionProc(FUNC, ARG1, ARG2)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   464
		(*(FUNC))((ARG1), (ARG2))	
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   465
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   466
/* NPN_PushPopupsEnabledStateUPP */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   467
typedef bool (* NP_LOADDS NPN_PushPopupsEnabledStateUPP)(NPP npp, NPBool enabled);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   468
#define NewNPN_PushPopupsEnabledStateProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   469
		((NPN_PushPopupsEnabledStateUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   470
#define CallNPN_PushPopupsEnabledStateProc(FUNC, ARG1, ARG2)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   471
		(*(FUNC))((ARG1), (ARG2))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   472
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   473
/* NPN_PopPopupsEnabledState */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   474
typedef bool (* NP_LOADDS NPN_PopPopupsEnabledStateUPP)(NPP npp);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   475
#define NewNPN_PopPopupsEnabledStateProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   476
		((NPN_PopPopupsEnabledStateUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   477
#define CallNPN_PopPopupsEnabledStateProc(FUNC, ARG1)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   478
		(*(FUNC))((ARG1))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   479
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   480
/* NPN_Enumerate */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   481
typedef bool (* NP_LOADDS NPN_EnumerateUPP)(NPP npp, NPObject *obj, NPIdentifier **identifier, uint32_t *count);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   482
#define NewNPN_EnumerateProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   483
		((NPN_EnumerateUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   484
#define CallNPN_EnumerateProc(FUNC, ARG1, ARG2, ARG3, ARG4)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   485
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   486
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   487
/* NPN_PluginThreadAsyncCall */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   488
typedef void (* NP_LOADDS NPN_PluginThreadAsyncCallUPP)(NPP instance, void (*func)(void *), void *userData);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   489
#define NewNPN_PluginThreadAsyncCallProc(FUNC) \
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   490
		((NPN_PluginThreadAsyncCallUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   491
#define CallNPN_PluginThreadAsyncCallProc(FUNC, ARG1, ARG2, ARG3) \
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   492
		(*(FUNC))((ARG1), (ARG2), (ARG3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   493
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   494
/* NPN_Construct */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   495
typedef bool (* NP_LOADDS NPN_ConstructUPP)(NPP npp, NPObject* obj, const NPVariant *args, uint32_t argCount, NPVariant *result);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   496
#define NewNPN_ConstructProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   497
		((NPN_ConstructUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   498
#define CallNPN_ConstructProc(FUNC, ARG1, ARG2, ARG3, ARG4, ARG5)      \
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   499
		(*(FUNC))((ARG1), (ARG2), (ARG3), (ARG4), (ARG5))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   500
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   501
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   502
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   503
/******************************************************************************************
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   504
 * The actual plugin function table definitions
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   505
 *******************************************************************************************/
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   506
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   507
typedef struct _NPPluginFuncs {
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   508
    uint16 size;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   509
    uint16 version;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   510
    NPP_NewUPP newp;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   511
    NPP_DestroyUPP destroy;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   512
    NPP_SetWindowUPP setwindow;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   513
    NPP_NewStreamUPP newstream;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   514
    NPP_DestroyStreamUPP destroystream;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   515
    NPP_StreamAsFileUPP asfile;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   516
    NPP_WriteReadyUPP writeready;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   517
    NPP_WriteUPP write;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   518
    NPP_PrintUPP print;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   519
    NPP_HandleEventUPP event;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   520
    NPP_URLNotifyUPP urlnotify;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   521
    JRIGlobalRef javaClass;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   522
    NPP_GetValueUPP getvalue;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   523
    NPP_SetValueUPP setvalue;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   524
} NPPluginFuncs;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   525
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   526
typedef struct _NPNetscapeFuncs {
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   527
    uint16 size;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   528
    uint16 version;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   529
    NPN_GetURLUPP geturl;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   530
    NPN_PostURLUPP posturl;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   531
    NPN_RequestReadUPP requestread;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   532
    NPN_NewStreamUPP newstream;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   533
    NPN_WriteUPP write;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   534
    NPN_DestroyStreamUPP destroystream;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   535
    NPN_StatusUPP status;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   536
    NPN_UserAgentUPP uagent;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   537
    NPN_MemAllocUPP memalloc;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   538
    NPN_MemFreeUPP memfree;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   539
    NPN_MemFlushUPP memflush;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   540
    NPN_ReloadPluginsUPP reloadplugins;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   541
    NPN_GetJavaEnvUPP getJavaEnv;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   542
    NPN_GetJavaPeerUPP getJavaPeer;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   543
    NPN_GetURLNotifyUPP geturlnotify;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   544
    NPN_PostURLNotifyUPP posturlnotify;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   545
    NPN_GetValueUPP getvalue;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   546
    NPN_SetValueUPP setvalue;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   547
    NPN_InvalidateRectUPP invalidaterect;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   548
    NPN_InvalidateRegionUPP invalidateregion;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   549
    NPN_ForceRedrawUPP forceredraw;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   550
    NPN_GetStringIdentifierUPP getstringidentifier;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   551
    NPN_GetStringIdentifiersUPP getstringidentifiers;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   552
    NPN_GetIntIdentifierUPP getintidentifier;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   553
    NPN_IdentifierIsStringUPP identifierisstring;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   554
    NPN_UTF8FromIdentifierUPP utf8fromidentifier;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   555
    NPN_IntFromIdentifierUPP intfromidentifier;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   556
    NPN_CreateObjectUPP createobject;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   557
    NPN_RetainObjectUPP retainobject;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   558
    NPN_ReleaseObjectUPP releaseobject;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   559
    NPN_InvokeUPP invoke;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   560
    NPN_InvokeDefaultUPP invokeDefault;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   561
    NPN_EvaluateUPP evaluate;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   562
    NPN_GetPropertyUPP getproperty;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   563
    NPN_SetPropertyUPP setproperty;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   564
    NPN_RemovePropertyUPP removeproperty;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   565
    NPN_HasPropertyUPP hasproperty;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   566
    NPN_HasMethodUPP hasmethod;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   567
    NPN_ReleaseVariantValueUPP releasevariantvalue;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   568
    NPN_SetExceptionUPP setexception;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   569
    NPN_PushPopupsEnabledStateUPP pushpopupsenabledstate;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   570
    NPN_PopPopupsEnabledStateUPP poppopupsenabledstate;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   571
    NPN_EnumerateUPP enumerate;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   572
    NPN_PluginThreadAsyncCallUPP pluginthreadasynccall;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   573
    NPN_ConstructUPP construct;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   574
} NPNetscapeFuncs;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   575
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   576
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   577
#ifdef XP_MACOSX
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   578
/******************************************************************************************
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   579
 * Mac platform-specific plugin glue stuff
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   580
 *******************************************************************************************/
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   581
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   582
/*
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   583
 * Main entry point of the plugin.
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   584
 * This routine will be called when the plugin is loaded. The function
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   585
 * tables are passed in and the plugin fills in the NPPluginFuncs table
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   586
 * and NPPShutdownUPP for Netscape's use.
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   587
 */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   588
typedef NPError (* NP_LOADDS NPP_MainEntryUPP)(NPNetscapeFuncs*, NPPluginFuncs*, NPP_ShutdownUPP*);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   589
#define NewNPP_MainEntryProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   590
		((NPP_MainEntryUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   591
#define CallNPP_MainEntryProc(FUNC,  netscapeFunc, pluginFunc, shutdownUPP)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   592
		(*(FUNC))((netscapeFunc), (pluginFunc), (shutdownUPP))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   593
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   594
/*
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   595
 * Mac OS X version(s) of NP_GetMIMEDescription(const char *)
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   596
 * These can be called to retreive MIME information from the plugin dynamically
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   597
 *
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   598
 * Note: For compatibility with Quicktime, BPSupportedMIMEtypes is another way
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   599
 *       to get mime info from the plugin only on OSX and may not be supported 
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   600
 *       in furture version -- use NP_GetMIMEDescription instead
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   601
 */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   602
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   603
enum
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   604
{
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   605
 kBPSupportedMIMETypesStructVers_1    = 1
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   606
};
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   607
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   608
typedef struct _BPSupportedMIMETypes
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   609
{
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   610
 SInt32    structVersion;      /* struct version */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   611
 Handle    typeStrings;        /* STR# formated handle, allocated by plug-in */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   612
 Handle    infoStrings;        /* STR# formated handle, allocated by plug-in */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   613
} BPSupportedMIMETypes;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   614
OSErr BP_GetSupportedMIMETypes(BPSupportedMIMETypes *mimeInfo, UInt32 flags);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   615
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   616
 /* NP_GetMIMEDescription */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   617
#define NP_GETMIMEDESCRIPTION_NAME "NP_GetMIMEDescription"
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   618
typedef const char* (* NP_LOADDS NP_GetMIMEDescriptionUPP)();
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   619
#define NewNP_GetMIMEDescEntryProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   620
		((NP_GetMIMEDescriptionUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   621
#define CallNP_GetMIMEDescEntryProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   622
		(*(FUNC))()
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   623
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   624
/* BP_GetSupportedMIMETypes */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   625
typedef OSErr (* NP_LOADDS BP_GetSupportedMIMETypesUPP)(BPSupportedMIMETypes*, UInt32);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   626
#define NewBP_GetSupportedMIMETypesEntryProc(FUNC)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   627
		((BP_GetSupportedMIMETypesUPP) (FUNC))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   628
#define CallBP_GetMIMEDescEntryProc(FUNC,  mimeInfo, flags)		\
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   629
		(*(FUNC))((mimeInfo), (flags))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   630
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   631
#endif /* XP_MACOSX */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   632
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   633
#if defined(_WINDOWS)
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   634
#define OSCALL WINAPI
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   635
#else
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   636
#if defined(__OS2__)
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   637
#define OSCALL _System
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   638
#else
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   639
#define OSCALL
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   640
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   641
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   642
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   643
#if defined(XP_UNIX)
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   644
/* GCC 3.3 and later support the visibility attribute. */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   645
#if defined(__GNUC__) && \
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   646
    ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   647
#define NP_VISIBILITY_DEFAULT __attribute__((visibility("default")))
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   648
#else
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   649
#define NP_VISIBILITY_DEFAULT
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   650
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   651
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   652
#define NP_EXPORT(__type) NP_VISIBILITY_DEFAULT __type
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   653
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   654
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   655
#if defined( _WINDOWS ) || defined (__OS2__)
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   656
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   657
#ifdef __cplusplus
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   658
extern "C" {
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   659
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   660
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   661
/* plugin meta member functions */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   662
#if defined(__OS2__)
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   663
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   664
typedef struct _NPPluginData {   /* Alternate OS2 Plugin interface */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   665
    char *pMimeTypes;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   666
    char *pFileExtents;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   667
    char *pFileOpenTemplate;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   668
    char *pProductName;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   669
    char *pProductDescription;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   670
    unsigned long dwProductVersionMS;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   671
    unsigned long dwProductVersionLS;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   672
} NPPluginData;
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   673
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   674
NPError OSCALL NP_GetPluginData(NPPluginData * pPluginData);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   675
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   676
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   677
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   678
NPError OSCALL NP_GetEntryPoints(NPPluginFuncs* pFuncs);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   679
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   680
NPError OSCALL NP_Initialize(NPNetscapeFuncs* pFuncs);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   681
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   682
NPError OSCALL NP_Shutdown();
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   683
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   684
char*	NP_GetMIMEDescription();
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   685
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   686
#ifdef __cplusplus
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   687
}
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   688
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   689
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   690
#endif /* _WINDOWS || __OS2__ */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   691
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   692
#if defined(__OS2__)
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   693
#pragma pack()
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   694
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   695
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   696
#ifdef XP_UNIX
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   697
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   698
#ifdef __cplusplus
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   699
extern "C" {
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   700
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   701
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   702
/* plugin meta member functions */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   703
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   704
#ifdef XP_MAC
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   705
NPError NP_Initialize(NPNetscapeFuncs *browserFuncs);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   706
NPError NP_GetEntryPoints(NPPluginFuncs *pluginFuncs);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   707
void NP_Shutdown(void);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   708
#else
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   709
NP_EXPORT(char*)   NP_GetMIMEDescription(void);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   710
NP_EXPORT(NPError) NP_Initialize(NPNetscapeFuncs*, NPPluginFuncs*);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   711
NP_EXPORT(NPError) NP_Shutdown(void);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   712
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   713
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   714
NP_EXPORT(NPError) NP_GetValue(void *future, NPPVariable aVariable, void *aValue);
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   715
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   716
#ifdef __cplusplus
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   717
}
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   718
#endif
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   719
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   720
#endif /* XP_UNIX */
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   721
e4e5f02787a1 Front IDILL :
bastiena
parents:
diff changeset
   722
#endif /* _NPUPP_H_ */