feat(module manager): module new add ctx as parameter

This commit is contained in:
yangwei
2024-09-19 15:58:39 +08:00
parent f26ed588da
commit 6af61355e3
3 changed files with 5 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ TEST(module_manager_internal, stellar_module_manager_new_with_toml) {
TEST(stellar_module, basic_new_and_free) {
struct stellar_module *mod = stellar_module_new("test");
struct stellar_module *mod = stellar_module_new("test", NULL);
EXPECT_TRUE(mod!=NULL);
stellar_module_set_name(mod, "test1");
@@ -145,7 +145,7 @@ TEST(stellar_module_manager, register_thread) {
extern "C" struct stellar_module *gtest_module_init(struct stellar_module_manager *mod_mgr)
{
struct stellar_module *mod = stellar_module_new("gtest");
struct stellar_module *mod = stellar_module_new("gtest", NULL);
EXPECT_STREQ(stellar_module_get_name(mod), "gtest");
stellar_module_set_ctx(mod, (void*)1);