diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-12 15:45:19 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-12 15:45:19 +0100 |
commit | 21edee4d584dbf757b006349e903ff7a3b398a1d (patch) | |
tree | 2532ec92649726a2ff59ba440c4090e80c679d9d /include/namespace.h | |
parent | 4415b472ae57e367e1fcece4c04355b55a868a1b (diff) |
support for static methods
Diffstat (limited to 'include/namespace.h')
-rw-r--r-- | include/namespace.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/include/namespace.h b/include/namespace.h index 4cbf43e..9d6e6f2 100644 --- a/include/namespace.h +++ b/include/namespace.h @@ -14,16 +14,6 @@ namespace Php { /** - * A couple of predefined native callback functions that can be registered. - * These are functions that optional accept a Request and/or Parameters object, - * and that either return void or a Value object. - */ -typedef void (*native_callback_0)(); -typedef void (*native_callback_1)(Parameters &); -typedef Value (*native_callback_2)(); -typedef Value (*native_callback_3)(Parameters &); - -/** * Forward declaration */ class Function; @@ -71,10 +61,10 @@ public: * @param function The function to add * @param arguments Optional argument specification */ - void add(const char *name, native_callback_0 function, const Arguments &arguments = {}); - void add(const char *name, native_callback_1 function, const Arguments &arguments = {}); - void add(const char *name, native_callback_2 function, const Arguments &arguments = {}); - void add(const char *name, native_callback_3 function, const Arguments &arguments = {}); + void add(const char *name, const native_callback_0 &function, const Arguments &arguments = {}); + void add(const char *name, const native_callback_1 &function, const Arguments &arguments = {}); + void add(const char *name, const native_callback_2 &function, const Arguments &arguments = {}); + void add(const char *name, const native_callback_3 &function, const Arguments &arguments = {}); /** * Add a native class to the extension by moving it |