17 lines
433 B
C
17 lines
433 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "stellar/stellar.h"
|
||
|
|
#include <stellar/session_mq.h>
|
||
|
|
|
||
|
|
struct stellar_packet
|
||
|
|
{
|
||
|
|
size_t payload_sz;
|
||
|
|
uint8_t payload[2048];
|
||
|
|
};
|
||
|
|
|
||
|
|
struct stellar *stellar_init(int worker_thread_num);
|
||
|
|
|
||
|
|
struct session *stellar_session_new(struct stellar *st, int tid);
|
||
|
|
void stellar_session_free(struct session *ss);
|
||
|
|
|
||
|
|
int session_mq_publish_message_by_name(struct session *ss, const char *topic_name, struct stellar_packet *msg);
|