diff options
| author | niubinghui <[email protected]> | 2024-09-06 18:59:12 +0800 |
|---|---|---|
| committer | niubinghui <[email protected]> | 2024-09-06 18:59:12 +0800 |
| commit | f32a799e7d0ebfea23ba9712965c025ec771510c (patch) | |
| tree | fe773ac30ef9d3ee815751bf5cfbab9308aee030 | |
| parent | 1d9e18762499e652af25b943001bc4fc307f989d (diff) | |
【修改】修改名称
| -rwxr-xr-x | example/plugin/simple_stellar_plugin.so | bin | 43312 -> 0 bytes | |||
| -rw-r--r-- | test/Makefile (renamed from example/Makefile) | 0 | ||||
| -rw-r--r-- | test/conf/lua_plugin_manage.toml (renamed from example/conf/lua_plugin_manage.toml) | 0 | ||||
| -rw-r--r-- | test/conf/plugin_manage.toml (renamed from example/conf/plugin_manage.toml) | 0 | ||||
| -rw-r--r-- | test/example.c (renamed from example/example.c) | 0 | ||||
| -rw-r--r-- | test/example_plugin_manage.c (renamed from example/example_plugin_manage.c) | 0 | ||||
| -rw-r--r-- | test/include/plugin_manager.h (renamed from example/include/plugin_manager.h) | 0 | ||||
| -rw-r--r-- | test/include/plugin_manager_gtest_mock.h (renamed from example/include/plugin_manager_gtest_mock.h) | 9 | ||||
| -rw-r--r-- | test/include/plugin_manager_interna.h (renamed from example/include/plugin_manager_interna.h) | 0 | ||||
| -rw-r--r-- | test/include/stellar_internal.h (renamed from example/include/stellar_internal.h) | 0 | ||||
| -rw-r--r-- | test/plugin/example_plugin_load.lua (renamed from example/plugin/example_plugin_load.lua) | 0 | ||||
| -rw-r--r-- | test/plugin/example_plugin_message.lua (renamed from example/plugin/example_plugin_message.lua) | 0 | ||||
| -rw-r--r-- | test/plugin/example_plugin_regist.lua (renamed from example/plugin/example_plugin_regist.lua) | 0 | ||||
| -rw-r--r-- | test/plugin/example_plugin_topic.lua (renamed from example/plugin/example_plugin_topic.lua) | 0 | ||||
| -rw-r--r-- | test/simple_example_plugin.c (renamed from example/simple_example_plugin.c) | 0 |
15 files changed, 2 insertions, 7 deletions
diff --git a/example/plugin/simple_stellar_plugin.so b/example/plugin/simple_stellar_plugin.so Binary files differdeleted file mode 100755 index a374a82..0000000 --- a/example/plugin/simple_stellar_plugin.so +++ /dev/null diff --git a/example/Makefile b/test/Makefile index 4fffc2b..4fffc2b 100644 --- a/example/Makefile +++ b/test/Makefile diff --git a/example/conf/lua_plugin_manage.toml b/test/conf/lua_plugin_manage.toml index 25f4933..25f4933 100644 --- a/example/conf/lua_plugin_manage.toml +++ b/test/conf/lua_plugin_manage.toml diff --git a/example/conf/plugin_manage.toml b/test/conf/plugin_manage.toml index bd1fb72..bd1fb72 100644 --- a/example/conf/plugin_manage.toml +++ b/test/conf/plugin_manage.toml diff --git a/example/example.c b/test/example.c index 09f6e09..09f6e09 100644 --- a/example/example.c +++ b/test/example.c diff --git a/example/example_plugin_manage.c b/test/example_plugin_manage.c index ab8728d..ab8728d 100644 --- a/example/example_plugin_manage.c +++ b/test/example_plugin_manage.c diff --git a/example/include/plugin_manager.h b/test/include/plugin_manager.h index cf07167..cf07167 100644 --- a/example/include/plugin_manager.h +++ b/test/include/plugin_manager.h diff --git a/example/include/plugin_manager_gtest_mock.h b/test/include/plugin_manager_gtest_mock.h index f00866e..da994c9 100644 --- a/example/include/plugin_manager_gtest_mock.h +++ b/test/include/plugin_manager_gtest_mock.h @@ -13,7 +13,7 @@ extern "C" struct stellar { struct plugin_manager_schema *plug_mgr; - struct lua_plugin_manage_schema * lua_plug_mgr; + struct lua_plugin_manage * lua_plug_mgr; int thread_num; }; @@ -59,11 +59,6 @@ int stellar_plugin_manager_schema_set(struct stellar *st, struct plugin_manager_ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" -int session_get_current_thread_id(struct session *sess) -{ - return 0; -} - int stellar_get_worker_thread_num(struct stellar *st) { return st->thread_num; @@ -71,7 +66,7 @@ int stellar_get_worker_thread_num(struct stellar *st) int stellar_get_current_thread_id(struct stellar *st) { - return 0; + return 3; } #pragma GCC diagnostic pop diff --git a/example/include/plugin_manager_interna.h b/test/include/plugin_manager_interna.h index e579e03..e579e03 100644 --- a/example/include/plugin_manager_interna.h +++ b/test/include/plugin_manager_interna.h diff --git a/example/include/stellar_internal.h b/test/include/stellar_internal.h index e42dfed..e42dfed 100644 --- a/example/include/stellar_internal.h +++ b/test/include/stellar_internal.h diff --git a/example/plugin/example_plugin_load.lua b/test/plugin/example_plugin_load.lua index aaa501d..aaa501d 100644 --- a/example/plugin/example_plugin_load.lua +++ b/test/plugin/example_plugin_load.lua diff --git a/example/plugin/example_plugin_message.lua b/test/plugin/example_plugin_message.lua index 6515bdc..6515bdc 100644 --- a/example/plugin/example_plugin_message.lua +++ b/test/plugin/example_plugin_message.lua diff --git a/example/plugin/example_plugin_regist.lua b/test/plugin/example_plugin_regist.lua index 552e4af..552e4af 100644 --- a/example/plugin/example_plugin_regist.lua +++ b/test/plugin/example_plugin_regist.lua diff --git a/example/plugin/example_plugin_topic.lua b/test/plugin/example_plugin_topic.lua index 44f08dd..44f08dd 100644 --- a/example/plugin/example_plugin_topic.lua +++ b/test/plugin/example_plugin_topic.lua diff --git a/example/simple_example_plugin.c b/test/simple_example_plugin.c index 887b8f3..887b8f3 100644 --- a/example/simple_example_plugin.c +++ b/test/simple_example_plugin.c |
