diff options
| author | ruki <[email protected]> | 2025-05-06 22:53:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-28 11:35:53 +0800 |
| commit | f2984b3ba5cc2b9c52891ffb44600be3dec23b52 (patch) | |
| tree | ea3d7a25bcb0b8eb37c05a575e0df64d9dbf8ef8 /core/src | |
| parent | 2088868b56f2c70cd4e9e72803ced3197ceba010 (diff) | |
add engine pool stub
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/engine_pool.c | 48 | ||||
| -rw-r--r-- | core/src/xmake/engine_pool.h | 62 |
2 files changed, 110 insertions, 0 deletions
diff --git a/core/src/xmake/engine_pool.c b/core/src/xmake/engine_pool.c new file mode 100644 index 000000000..0a2102ee1 --- /dev/null +++ b/core/src/xmake/engine_pool.c @@ -0,0 +1,48 @@ +/*!A cross-platform build utility based on Lua + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Copyright (C) 2015-present, TBOOX Open Source Group. + * + * @author ruki + * @file engine_pool.c + * + */ + +/* ////////////////////////////////////////////////////////////////////////////////////// + * trace + */ +#define TB_TRACE_MODULE_NAME "engine_pool" +#define TB_TRACE_MODULE_DEBUG (0) + +/* ////////////////////////////////////////////////////////////////////////////////////// + * includes + */ +#include "xmake.h" +#include "engine.h" +#include "engine_pool.h" + +/* ////////////////////////////////////////////////////////////////////////////////////// + * types + */ + +// the engine pool type +typedef struct __xm_engine_pool_t +{ + +}xm_engine_pool_t; + +/* ////////////////////////////////////////////////////////////////////////////////////// + * implementation + */ + diff --git a/core/src/xmake/engine_pool.h b/core/src/xmake/engine_pool.h new file mode 100644 index 000000000..cc8cf8faf --- /dev/null +++ b/core/src/xmake/engine_pool.h @@ -0,0 +1,62 @@ +/*!A cross-platform build utility based on Lua + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Copyright (C) 2015-present, TBOOX Open Source Group. + * + * @author ruki + * @file engine_pool.h + * + */ +#ifndef XM_ENGINE_POOL_H +#define XM_ENGINE_POOL_H + +/* ////////////////////////////////////////////////////////////////////////////////////// + * includes + */ +#include "prefix.h" + +/* ////////////////////////////////////////////////////////////////////////////////////// + * extern + */ +__tb_extern_c_enter__ + +/* ////////////////////////////////////////////////////////////////////////////////////// + * types + */ + +/// the xmake engine pool type +typedef struct {tb_int_t dummy;} const* xm_engine_pool_ref_t; + +/* ////////////////////////////////////////////////////////////////////////////////////// + * interfaces + */ + +/*! init the engine_pool + * + * @return the engine pool + */ +xm_engine_pool_ref_t xm_engine_pool_init(tb_noargs_t); + +/*! exit the engine_pool + * + * @param engine_pool the engine_pool + */ +tb_void_t xm_engine_pool_exit(xm_engine_pool_ref_t engine_pool); + +/* ////////////////////////////////////////////////////////////////////////////////////// + * extern + */ +__tb_extern_c_leave__ + +#endif |
