summaryrefslogtreecommitdiff
path: root/ext/rpc/rpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/rpc/rpc.h')
-rw-r--r--ext/rpc/rpc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/rpc/rpc.h b/ext/rpc/rpc.h
new file mode 100644
index 0000000000..2d1b0f7697
--- /dev/null
+++ b/ext/rpc/rpc.h
@@ -0,0 +1,11 @@
+#ifndef RPC_H
+#define RPC_H
+
+#define CONSTRUCTOR __construct
+#define CONSTRUCTOR_FN ZEND_FN(__construct)
+
+#define GET_INTERNAL(intern) GET_INTERNAL_EX(intern, object)
+#define GET_INTERNAL_EX(intern, object) rpc_internal **intern; \
+ zend_hash_index_find(RPC_G(instance), object->value.obj.handle, (void **) &intern);
+
+#endif \ No newline at end of file