🦄 refactor(plugin manager source suffix): from .cpp to .c

This commit is contained in:
yangwei
2024-08-28 15:13:05 +08:00
parent 848122000a
commit 3b9b6b0a21
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
add_library(plugin_manager plugin_manager.cpp)
add_library(plugin_manager plugin_manager.c)
target_include_directories(plugin_manager PUBLIC ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(plugin_manager PUBLIC ${CMAKE_SOURCE_DIR}/include/)
target_include_directories(plugin_manager PUBLIC ${CMAKE_SOURCE_DIR}/infra/core)

View File

@@ -4,6 +4,8 @@
#include "toml/toml.h"
#include "uthash/utlist.h"
#include <stdbool.h>
#include "stellar_core.h"
#include "tuple.h"
#include "packet_private.h"
@@ -12,7 +14,7 @@
UT_icd plugin_specs_icd = {sizeof(struct plugin_specific), NULL, NULL, NULL};
// TODO: set scratch_sess to per_thread_data
thread_local struct session *per_thread_scratch_sess;
__thread struct session *per_thread_scratch_sess;
inline static void plugin_manager_scratch_session_set(struct session *sess)
{