npapi.h
上传用户:goldcmy89
上传日期:2017-12-03
资源大小:2246k
文件大小:20k
- /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
- /* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is mozilla.org code.
- *
- * The Initial Developer of the Original Code is
- * Netscape Communications Corporation.
- * Portions created by the Initial Developer are Copyright (C) 1998
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
- /*
- * npapi.h $Revision: 3.40.4.1 $
- * Netscape client plug-in API spec
- */
- #ifndef _NPAPI_H_
- #define _NPAPI_H_
- #ifdef __OS2__
- #pragma pack(1)
- #endif
- #include "prtypes.h"
- /* Copied from xp_core.h */
- /* removed #ifdef for hpux defined in /usr/include/model.h */
- #ifndef XP_MAC
- #ifndef _INT16
- #define _INT16
- #endif
- #ifndef _INT32
- #define _INT32
- #endif
- #ifndef _UINT16
- #define _UINT16
- #endif
- #ifndef _UINT32
- #define _UINT32
- #endif
- #endif
- /*
- * NO_NSPR_10_SUPPORT disables the inclusion
- * of obsolete/protypes.h, whose int16, uint16,
- * int32, and uint32 typedefs conflict with those
- * in this file.
- */
- #ifndef NO_NSPR_10_SUPPORT
- #define NO_NSPR_10_SUPPORT
- #endif
- #ifdef OJI
- #include "jri.h" /* Java Runtime Interface */
- #endif
- #if defined (__OS2__ ) || defined (OS2)
- # ifndef XP_OS2
- # define XP_OS2 1
- # endif /* XP_OS2 */
- #endif /* __OS2__ */
- #ifdef _WINDOWS
- # include <windef.h>
- # ifndef XP_WIN
- # define XP_WIN 1
- # endif /* XP_WIN */
- #endif /* _WINDOWS */
- #ifdef __MWERKS__
- # define _declspec __declspec
- # ifdef macintosh
- # ifndef XP_MAC
- # define XP_MAC 1
- # endif /* XP_MAC */
- # endif /* macintosh */
- # ifdef __INTEL__
- # undef NULL
- # ifndef XP_WIN
- # define XP_WIN 1
- # endif /* XP_WIN */
- # endif /* __INTEL__ */
- #endif /* __MWERKS__ */
- #if defined(XP_MAC) || defined(XP_MACOSX)
- #include <Quickdraw.h>
- #include <Events.h>
- #endif
- #if defined(XP_UNIX)
- # include <stdio.h>
- # if defined(MOZ_X11)
- # include <X11/Xlib.h>
- # include <X11/Xutil.h>
- # endif
- #endif
- /*----------------------------------------------------------------------*/
- /* Plugin Version Constants */
- /*----------------------------------------------------------------------*/
- #define NP_VERSION_MAJOR 0
- #define NP_VERSION_MINOR 16
- /* The OS/2 version of Netscape uses RC_DATA to define the
- mime types, file extensions, etc that are required.
- Use a vertical bar to separate types, end types with