File: java-embed.h

package info (click to toggle)
entity 1.0.1-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,604 kB
  • ctags: 5,394
  • sloc: ansic: 64,242; sh: 7,377; makefile: 776; perl: 319
file content (45 lines) | stat: -rw-r--r-- 1,149 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* 
 * Java binding for Entity
 *
 * Author: Doug McBride <dougm@liberate.com>
 * based on renderers/javascript/js-embed.h by Brian Bassett <bbassett@bbassett.net>
 *
 */

/* 
 * This renderer is free software; please see the LICENSE file for
 * specific information as to licensing conditions.
 */

/* 
 * $Source: /home/cvs/entity/renderers/java/java-embed.h,v $
 * $Id: java-embed.h,v 1.1 2001/05/01 00:21:44 giantpez Exp $
 */

#ifndef __EMBED_JAVA_H__
#define __EMBED_JAVA_H__

#include "entity.h"
#include <jni.h>
#include <jni_md.h>

/* Our renderer entry function */
void java_init (RendererFlags flags);

/*
 *  * Pointers to the needed JNI invocation API, initialized by LoadJavaVM.
 *   */
typedef jint (JNICALL *CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
typedef jint (JNICALL *GetDefaultJavaVMInitArgs_t)(void *args);

typedef struct {
    CreateJavaVM_t CreateJavaVM;
    GetDefaultJavaVMInitArgs_t GetDefaultJavaVMInitArgs;
} InvocationFunctions;


/* XXX don't understand what this is for yet, not implemented (JS handling code)
 * void js_Entity_ENode (JAVAVirtualMachine * js_vm);
 */

#endif				/* __EMBED_JAVA_H__ */