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,12 +1,12 @@
#ifndef _PACKET_H
#define _PACKET_H
#ifndef _PACKET_PUB_H
#define _PACKET_PUB_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "tuple.h"
#include "stellar/tuple.h"
enum layer_type
{

View File

@@ -1,5 +1,5 @@
#ifndef _SESSION_H
#define _SESSION_H
#ifndef _SESSION_PUB_H
#define _SESSION_PUB_H
#ifdef __cplusplus
extern "C"
@@ -8,7 +8,7 @@ extern "C"
#include <stdint.h>
#include "packet.h"
#include "stellar/packet.h"
enum session_state
{

17
include/stellar/stellar.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef _STELLAR_PUB_H
#define _STELLAR_PUB_H
#ifdef __cplusplus
extern "C"
{
#endif
#include <stdint.h>
uint8_t stellar_get_current_thread_index();
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -1,5 +1,5 @@
#ifndef _TUPLE_H
#define _TUPLE_H
#ifndef _TUPLE_PUB_H
#define _TUPLE_PUB_H
#ifdef __cplusplus
extern "C"