open_toontown_panda3d/direct/src/plugin_npapi/startup.h

47 lines
1.3 KiB
C

// Filename: startup.h
// Created by: drose (19Jun09)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#ifndef STARTUP_H
#define STARTUP_H
#include "nppanda3d_common.h"
#ifndef OSCALL
#define OSCALL
#endif
extern "C" {
#ifdef _WIN32
NPError OSCALL NP_Initialize(NPNetscapeFuncs *browserFuncs);
#else
NPError OSCALL NP_Initialize(NPNetscapeFuncs *browserFuncs,
NPPluginFuncs *pluginFuncs);
#endif
#if NP_VERSION_MAJOR == 0 && NP_VERSION_MINOR <= 22
// Until at least 0.22, this function was declared to return a char *.
char *NP_GetMIMEDescription(void);
#else
// At some point after 0.22, it was corrected to return a const char *.
const char *NP_GetMIMEDescription(void);
#endif
NPError NP_GetValue(void*, NPPVariable variable, void* value);
NPError OSCALL NP_GetEntryPoints(NPPluginFuncs *pluginFuncs);
NPError OSCALL NP_Shutdown(void);
}
void request_ready(P3D_instance *instance);
#endif