Blender V2.61 - r43446

blender_plugin_types.h

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