mirror of
https://github.com/php/pecl-database-mysql_xdevapi.git
synced 2026-03-24 07:12:14 +01:00
- apply MYSQL_XDEVAPI_REGISTER_CLASS - add and apply new macro MYSQL_XDEVAPI_REGISTER_INTERFACE - improve and apply macro MYSQL_XDEVAPI_REGISTER_DERIVED_CLASS
54 lines
1.9 KiB
C++
54 lines
1.9 KiB
C++
/*
|
|
+----------------------------------------------------------------------+
|
|
| PHP Version 7 |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 2006-2020 The PHP Group |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
| available through the world-wide-web at the following url: |
|
|
| http://www.php.net/license/3_01.txt |
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Andrey Hristov <andrey@php.net> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
#include "php_api.h"
|
|
#include "mysqlx_executable.h"
|
|
#include "util/object.h"
|
|
|
|
namespace mysqlx {
|
|
|
|
namespace devapi {
|
|
|
|
zend_class_entry * mysqlx_executable_interface_entry;
|
|
|
|
ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqlx_executable__execute, 0, ZEND_RETURN_VALUE, 0)
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
static const zend_function_entry mysqlx_executable_methods[] = {
|
|
PHP_ABSTRACT_ME(mysqlx_executable, execute, arginfo_mysqlx_executable__execute)
|
|
{nullptr, nullptr, nullptr}
|
|
};
|
|
|
|
void
|
|
mysqlx_register_executable_interface(UNUSED_INIT_FUNC_ARGS, zend_object_handlers* /*mysqlx_std_object_handlers*/)
|
|
{
|
|
MYSQL_XDEVAPI_REGISTER_INTERFACE(
|
|
mysqlx_executable_interface_entry,
|
|
"Executable",
|
|
mysqlx_executable_methods);
|
|
}
|
|
|
|
void
|
|
mysqlx_unregister_executable_interface(UNUSED_SHUTDOWN_FUNC_ARGS)
|
|
{
|
|
}
|
|
|
|
} // namespace devapi
|
|
|
|
} // namespace mysqlx
|