summaryrefslogtreecommitdiff
path: root/ext/rpc/com/php_com.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/rpc/com/php_com.h')
-rw-r--r--ext/rpc/com/php_com.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/ext/rpc/com/php_com.h b/ext/rpc/com/php_com.h
index c2d871fac6..d2a680faff 100644
--- a/ext/rpc/com/php_com.h
+++ b/ext/rpc/com/php_com.h
@@ -1,23 +1,27 @@
#ifndef PHP_COM_H
#define PHP_COM_H
-#if WIN32|WINNT
+#if PHP_WIN32
-#ifdef __cplusplus
-extern "C" {
-#endif
+BEGIN_EXTERN_C()
extern PHP_MINIT_FUNCTION(COM);
extern PHP_MSHUTDOWN_FUNCTION(COM);
-PHP_FUNCTION(COM_load);
-PHP_FUNCTION(COM_invoke);
-PHP_FUNCTION(com_propget);
-PHP_FUNCTION(com_propput);
+extern int php_COM_get_le_idispatch();
+
extern zend_module_entry COM_module_entry;
+extern zend_class_entry com_class_entry;
+
+END_EXTERN_C()
#ifdef __cplusplus
-}
+
+extern pval php_COM_get_property_handler(zend_property_reference *property_reference);
+extern int php_COM_set_property_handler(zend_property_reference *property_reference, pval *value);
+extern char *php_COM_error_message(HRESULT hr);
+extern void php_COM_call_function_handler(INTERNAL_FUNCTION_PARAMETERS, zend_property_reference *property_reference);
+
#endif
#define COM_module_ptr &COM_module_entry
@@ -26,8 +30,6 @@ extern zend_module_entry COM_module_entry;
#define COM_module_ptr NULL
-#endif /* Win32|WINNT */
-
-#define phpext_COM_ptr COM_module_ptr
+#endif /* PHP_WIN32 */
#endif /* PHP_COM_H */