2
* ***** BEGIN GPL LICENSE BLOCK *****
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software Foundation,
16
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
19
* All rights reserved.
21
* The Original Code is: all of this file.
23
* Contributor(s): none yet.
25
* ***** END GPL LICENSE BLOCK *****
26
* Plugin-instance related data
29
#ifndef __BLENDER_PLUGIN_TYPES_H__
30
#define __BLENDER_PLUGIN_TYPES_H__
35
/* Windows stuff goes here: */
38
#elif defined(__APPLE__)
39
/* Apple stuff goes here: */
42
/* Unix stuff goes here: */
44
#include <X11/Intrinsic.h>
47
#include "npapi.h" /* NS related types*/
48
#include "prlock.h" /* NSPR locking */
54
struct netscape_plugin_Plugin;
56
typedef struct _BlenderPluginInstance {
57
/** reach back to the browser: needed for file
61
/** The default stream.... */
62
NPStream* main_file_stream;
64
/** Total bytes expected for main file */
67
/** Total bytes retrieved for mail file */
70
/** Mem chunk for the main file */
71
void* main_file_store;
73
/** URL of the .blend you want to show. Must be set. */
76
/** Blenderplayer pid **/
79
/** Window ID (used by embedder) **/
82
/** Display used by browser **/
86
/** Temp filename used to pass animation data to the player */
87
char* temp_mail_file_name;
89
} BlenderPluginInstance;