diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-08-25 17:40:03 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-08-25 17:40:03 +0200 |
commit | e14055694478d70e58b5fc653b08a9a514bbc455 (patch) | |
tree | ab47d723699a7fe86f47f68c182ab695bf9b3bab /include/extension.h | |
parent | e838e180f5bbcf19e7235f30311645e942ff92d2 (diff) |
{more work in progress: the function that was defined with c++ now gets calls, but it does not yet call the actual implementation
Diffstat (limited to 'include/extension.h')
-rw-r--r-- | include/extension.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/include/extension.h b/include/extension.h index eb7eb4c..701da86 100644 --- a/include/extension.h +++ b/include/extension.h @@ -26,17 +26,23 @@ struct _zend_module_entry; namespace PhpCpp { /** + * Forward definitions + */ +class Functions; + +/** * Class definition */ class Extension { public: /** - * Constructor + * Extension that defines a number of functions right away * @param name Extension name - * @param version EXtension version + * @param version Extension version string + * @param functions The functions that are defined */ - Extension(const char *name, const char *version); + Extension(const char *name, const char *version, const std::initializer_list<Function> &functions = {}); /** * Destructor @@ -151,18 +157,24 @@ private: * @var char* */ const char *_version; + + /** + * The functions that are defined + * @var vector + */ + Functions *_functions; /** * The information that is passed to the Zend engine * @var zend_module_entry */ - _zend_module_entry *_entry; + _zend_module_entry *_entry = NULL; /** * The current request being processed * @var Request */ - Request *_request; + Request *_request = NULL; }; |