Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

# java_bridge.h

Go to the documentation of this file.

    00001 /*-*- mode: C; tab-width:4 -*-*/
    00002
    00011 #ifndef JAVA_BRIDGE_H
    00012 #define JAVA_BRIDGE_H
    00013
    00014 /* PHP Includes */
    00015 #include "php_wrapper.h"
    00016 #include "zend_compile.h"
    00017 #include "php_ini.h"
    00018 #include "php_globals.h"
    00019
    00020 #include "php_java.h"
    00021
    00022 #define IS_EXCEPTION 86
    00023
    00024 extern void EXT_GLOBAL(result)(pval* arg, short ignoreNonJava, pval*presult TSRMLS_DC);
    00025 extern int EXT_GLOBAL(get_jobject_from_object)(zval *object, long *obj TSRMLS_DC);
    00026 #ifdef ZEND_ENGINE_2
    00027 extern void EXT_GLOBAL(store_jobject)(zval *presult, long id TSRMLS_DC);
    00028 extern zend_object_value EXT_GLOBAL(create_object)(zend_class_entry *class_type TSRMLS_DC);
    00029 extern zend_object_value EXT_GLOBAL(create_exception_object)(zend_class_entry *class_type TSRMLS_DC);
    00030 #endif
    00031 extern short EXT_GLOBAL(invoke)(char*name, long object, int arg_count, zval***arguments, short ignoreNonJava, pval*presult TSRMLS_DC) ;
    00032 enum constructor {CONSTRUCTOR_NONE, CONSTRUCTOR};
    00033 extern short EXT_GLOBAL(call_function_handler)(INTERNAL_FUNCTION_PARAMETERS, char*name, enum constructor constructor, short createInstance, pval *object, int argc, zval***argv);
    00034 extern short EXT_GLOBAL(set_property_handler)(char*name, zval *object, zval *value, zval *return_value);
    00035 extern short EXT_GLOBAL(get_property_handler)(char*name, zval *object, zval *return_value);
    00036
    00037 extern void EXT_GLOBAL(destructor)(zend_rsrc_list_entry *rsrc TSRMLS_DC);
    00038
    00039 extern proxyenv *EXT_GLOBAL(createSecureEnvironment) (int peer, void (*handle_request)(proxyenv *env), void (*handle_cached)(proxyenv *env), char*server, short is_local, struct sockaddr*saddr);
    00040 extern void EXT_GLOBAL(redirect)(proxyenv*env, char*redirect_port, char*channel_in, char*channel_out TSRMLS_DC);
    00041
    00042 extern void EXT_GLOBAL(destroy_channel)(TSRMLS_D);
    00043 extern const char*EXT_GLOBAL(get_channel)(TSRMLS_D);
    00044
    00045 extern void EXT_GLOBAL (begin_async) (proxyenv*env);
    00046 extern void EXT_GLOBAL (end_async) (proxyenv*env);
    00047 extern void EXT_GLOBAL (check_session) (proxyenv *env TSRMLS_DC);
    00048 extern void EXT_GLOBAL (setResultWith_context) (char*key, char*val, char*path);
    00049 extern short EXT_GLOBAL (option_set_by_user) (short option, int where);
    00050
    00051 extern void EXT_GLOBAL(update_hosts)(const char*new_value);
    00052 extern void EXT_GLOBAL(update_servlet)(const char*new_value);
    00053 extern void EXT_GLOBAL(update_socketname)(const char*new_value);
    00054 extern void EXT_GLOBAL(update_persistent_connections)(const char*new_value);
    00055 extern void EXT_GLOBAL(update_compatibility)(const char*new_value);
    00056
    00057 extern void EXT_GLOBAL (init_cfg) (TSRMLS_D);
    00058 extern void EXT_GLOBAL(shutdown_library) (void);
    00059 extern void EXT_GLOBAL(destroy_cfg) (int);
    00060 extern void EXT_GLOBAL(sys_error)(const char *str, int code);
    00061
    00062
    00063 extern unsigned char EXT_GLOBAL (get_mode) (void);
    00064
    00065 #endif