Update Stellar export header and add stellar_get_current_thread_index() function

This commit is contained in:
luwenpeng
2024-04-22 20:01:15 +08:00
parent 8a41a79f06
commit 74f0504d3d
59 changed files with 134 additions and 87 deletions

View File

@@ -1,6 +1,6 @@
#include <assert.h>
#include "session_private.h"
#include "session_priv.h"
#include "tcp_utils.h"
#include "tcp_reassembly.h"

View File

@@ -2,7 +2,7 @@
#include <stdlib.h>
#include <assert.h>
#include "stellar.h"
#include "macro.h"
#include "tcp_utils.h"
#include "udp_utils.h"
#include "id_generator.h"

View File

@@ -6,7 +6,7 @@ extern "C"
{
#endif
#include "session_private.h"
#include "session_priv.h"
#include "log.h"
#define SESSION_LOG_ERROR(format, ...) LOG_ERROR("session", format, ##__VA_ARGS__)

View File

@@ -6,7 +6,7 @@ extern "C"
{
#endif
#include "session_private.h"
#include "session_priv.h"
struct session_pool;
struct session_pool *session_pool_new(uint64_t count);

View File

@@ -1,5 +1,5 @@
#ifndef _SESSION_PRIVATE_H
#define _SESSION_PRIVATE_H
#ifndef _SESSION_PRIV_H
#define _SESSION_PRIV_H
#ifdef __cplusplus
extern "C"
@@ -7,11 +7,11 @@ extern "C"
#endif
#include "list.h"
#include "tuple.h"
#include "packet_private.h"
#include "packet_priv.h"
#include "timeout.h"
#include "uthash.h"
#include "session.h"
#include "stellar/tuple.h"
#include "stellar/session.h"
#include "tcp_reassembly.h"
#include "session_manager.h"

View File

@@ -6,7 +6,7 @@ extern "C"
{
#endif
#include "session_private.h"
#include "session_priv.h"
struct session_table;
struct session_table *session_table_new();

View File

@@ -6,7 +6,7 @@ extern "C"
{
#endif
#include "session_private.h"
#include "session_priv.h"
struct session_timer;
struct session_timer *session_timer_new(uint64_t now);

View File

@@ -7,7 +7,7 @@ extern "C"
#endif
#include "log.h"
#include "session_private.h"
#include "session_priv.h"
#define SESSION_TRANSITION_LOG_INFO(format, ...) LOG_INFO("session transition", format, ##__VA_ARGS__)

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "ipv4_utils.h"

View File

@@ -1,9 +1,9 @@
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "stellar.h"
#include "macro.h"
#include "ipv4_utils.h"
#include "test_packets.h"

View File

@@ -1,9 +1,9 @@
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "stellar.h"
#include "macro.h"
#include "ipv4_utils.h"
#include "test_packets.h"

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "ipv4_utils.h"

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#define SESSION_KEY_IPV4_TCP(name) \
struct tuple6 name; \

View File

@@ -1,7 +1,7 @@
// TCP state machine test: active -> closing
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "tcp_utils.h"

View File

@@ -1,7 +1,7 @@
// TCP state machine test: init -> opening
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "ipv4_utils.h"

View File

@@ -1,7 +1,7 @@
// TCP state machine test: init -> opening -> active -> closing -> closed
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "test_packets.h"

View File

@@ -1,7 +1,7 @@
// TCP state machine test: opening -> active
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "test_packets.h"

View File

@@ -1,7 +1,7 @@
// TCP state machine test: opening -> closing
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "tcp_utils.h"

View File

@@ -1,7 +1,7 @@
// UDP state machine test: init -> opening -> active -> closing
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "test_packets.h"

View File

@@ -1,7 +1,7 @@
// UDP state machine test: init -> opening -> closing
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "test_packets.h"

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "test_packets.h"

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "ipv4_utils.h"

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "ipv4_utils.h"

View File

@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include "session_private.h"
#include "session_priv.h"
#include "session_manager.h"
#include "test_packets.h"