Menu

[r635]: / branches / Release-1-0-6 / php-java-bridge / php_java.h  Maximize  Restore  History

Download this file

86 lines (64 with data), 1.6 kB

 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*-*- mode: C; tab-width:4 -*-*/
#ifndef PHP_JAVA_H
#define PHP_JAVA_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "zend_compile.h"
#include "php_ini.h"
#include "php_globals.h"
/* socket */
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <jni.h>
#include "protocol.h"
extern int le_jobject;
extern zend_module_entry java_module_entry;
extern zend_class_entry php_java_class_entry;
extern const char * const java_bridge_version;
extern int java_ini_updated;
#define U_LOGFILE (1<<1)
#define U_LOGLEVEL (1<<2)
#define U_JAVA_HOME (1<<3)
#define U_JAVA (1<<4)
#define U_LIBRARY_PATH (1<<5)
#define U_CLASSPATH (1<<6)
#define U_SOCKNAME (1<<7)
#define phpext_java_ptr &java_module_entry
#ifdef PHP_WIN32
#define PHP_JAVA_API __declspec(dllexport)
#else
#define PHP_JAVA_API
#endif
PHP_MINIT_FUNCTION(java);
PHP_MSHUTDOWN_FUNCTION(java);
PHP_MINFO_FUNCTION(java);
struct cfg {
struct sockaddr_un saddr;
int cid; // server's process id
int err; // file descriptor: server's return code
char*sockname;
char*classpath;
char*ld_library_path;
char*java;
char*java_home;
char*logLevel;
char*logFile;
};
ZEND_BEGIN_MODULE_GLOBALS(java)
proxyenv *jenv;
jobject php_reflect;
jclass reflect_class;
struct cfg cfg;
ZEND_END_MODULE_GLOBALS(java)
#ifdef ZTS
# define JG(v) TSRMG(java_globals_id, zend_java_globals *, v)
#else
# define JG(v) (java_globals.v)
#endif
extern void java_get_server_args(struct cfg*cfg,
char*env[N_SENV],
char*args[N_SARGS]);
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.