mirror of
https://github.com/php/pecl-database-mysql_xdevapi.git
synced 2026-03-23 23:02:08 +01:00
56 lines
2.2 KiB
C++
56 lines
2.2 KiB
C++
/*
|
|
+----------------------------------------------------------------------+
|
|
| PHP Version 7 |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 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_crud_operation_limitable.h"
|
|
#include "php_mysqlx.h"
|
|
#include "mysqlx_class_properties.h"
|
|
#include "util/object.h"
|
|
|
|
namespace mysqlx {
|
|
|
|
namespace devapi {
|
|
|
|
zend_class_entry * mysqlx_crud_operation_limitable_interface_entry;
|
|
|
|
ZEND_BEGIN_ARG_INFO_EX(mysqlx_crud_operation_limitable__limit, 0, ZEND_RETURN_VALUE, 1)
|
|
ZEND_ARG_TYPE_INFO(no_pass_by_ref, rows, IS_LONG, dont_allow_null)
|
|
ZEND_END_ARG_INFO()
|
|
|
|
static const zend_function_entry mysqlx_crud_operation_limitable_methods[] = {
|
|
PHP_ABSTRACT_ME(mysqlx_crud_operation_limitable, limit, mysqlx_crud_operation_limitable__limit)
|
|
{nullptr, nullptr, nullptr}
|
|
};
|
|
|
|
void
|
|
mysqlx_register_crud_operation_limitable_interface(UNUSED_INIT_FUNC_ARGS, zend_object_handlers* /*mysqlx_std_object_handlers*/)
|
|
{
|
|
MYSQL_XDEVAPI_REGISTER_INTERFACE(
|
|
mysqlx_crud_operation_limitable_interface_entry,
|
|
"CrudOperationLimitable",
|
|
mysqlx_crud_operation_limitable_methods);
|
|
}
|
|
|
|
void
|
|
mysqlx_unregister_crud_operation_limitable_interface(UNUSED_SHUTDOWN_FUNC_ARGS)
|
|
{
|
|
}
|
|
|
|
} // namespace devapi
|
|
|
|
} // namespace mysqlx
|