|
Blender
V2.59
|
00001 /* 00002 * $Id: blender_plugin_types.h 35106 2011-02-23 10:52:22Z jesterking $ 00003 * 00004 * ***** BEGIN GPL LICENSE BLOCK ***** 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00021 * All rights reserved. 00022 * 00023 * The Original Code is: all of this file. 00024 * 00025 * Contributor(s): none yet. 00026 * 00027 * ***** END GPL LICENSE BLOCK ***** 00028 * Plugin-instance related data 00029 */ 00030 00031 #ifndef BLENDER_PLUGIN_TYPES_H 00032 #define BLENDER_PLUGIN_TYPES_H 00033 00034 #include <stdio.h> 00035 00036 #ifdef _WIN32 00037 /* Windows stuff goes here: */ 00038 #include <windows.h> 00039 00040 #elif defined(__APPLE__) 00041 /* Apple stuff goes here: */ 00042 00043 #else 00044 /* Unix stuff goes here: */ 00045 #include <GL/glx.h> 00046 #include <X11/Intrinsic.h> 00047 #endif 00048 00049 #include "npapi.h" /* NS related types*/ 00050 #include "prlock.h" /* NSPR locking */ 00051 00052 #ifdef __cplusplus 00053 extern "C" { 00054 #endif 00055 00056 struct netscape_plugin_Plugin; 00057 00058 typedef struct _BlenderPluginInstance 00059 { 00062 NPP browser_instance; 00063 00065 NPStream* main_file_stream; 00066 00068 int stream_total; 00069 00071 int stream_retrieved; 00072 00074 void* main_file_store; 00075 00077 char* blend_file; 00078 00080 pid_t pID; 00081 00083 Window window; 00084 00086 Display* display; 00087 00088 00090 char* temp_mail_file_name; 00091 00092 } BlenderPluginInstance; 00093 00094 #ifdef __cplusplus 00095 } 00096 #endif 00097 00098 # endif 00099