summaryrefslogtreecommitdiffstats
path: root/engine_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'engine_api.h')
-rw-r--r--engine_api.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/engine_api.h b/engine_api.h
new file mode 100644
index 0000000..e0948ac
--- /dev/null
+++ b/engine_api.h
@@ -0,0 +1,17 @@
+#ifndef DDTRACE_PHP_5_ENGINE_API_H
+#define DDTRACE_PHP_5_ENGINE_API_H
+
+/* This file is for things that make working with the engine easier. Good
+ * candidates include:
+ * - Wrappers for functions which change signature/semantics over time.
+ * - Wrappers that reduce verbosity when working with zend_* functions.
+ * - Functions that perform high-level language tasks, such as reading and
+ * writing object properties, calling functions, calling methods, etc.
+ */
+
+#include <php.h>
+
+int ddtrace_call_sandboxed_function(const char *name, size_t name_len, zval **retval, int argc,
+ zval **argv[] TSRMLS_DC);
+
+#endif // DDTRACE_PHP_5_ENGINE_API_H