86 lines
1.6 KiB
C
86 lines
1.6 KiB
C
#include "stellar/stellar.h"
|
|
#include "stellar/session.h"
|
|
#include "stellar/stellar_mq.h"
|
|
#include "stellar/stellar_exdata.h"
|
|
|
|
#define UNUSED(x) (void)(x)
|
|
|
|
void stellar_session_plugin_dettach_current_session(struct session *sess)
|
|
{
|
|
UNUSED(sess);
|
|
}
|
|
|
|
const struct packet *session_get0_current_packet(const struct session *sess)
|
|
{
|
|
UNUSED(sess);
|
|
|
|
return NULL;
|
|
}
|
|
|
|
const char *packet_get_payload(const struct packet *pkt)
|
|
{
|
|
UNUSED(pkt);
|
|
|
|
return NULL;
|
|
}
|
|
|
|
uint16_t packet_get_payload_len(const struct packet *pkt)
|
|
{
|
|
UNUSED(pkt);
|
|
|
|
return 0;
|
|
}
|
|
|
|
struct logger *stellar_get_logger(struct stellar *st)
|
|
{
|
|
UNUSED(st);
|
|
|
|
return NULL;
|
|
}
|
|
|
|
int session_mq_publish_message(struct session *sess, int topic_id, void *msg)
|
|
{
|
|
UNUSED(sess);
|
|
UNUSED(topic_id);
|
|
UNUSED(msg);
|
|
|
|
return 0;
|
|
}
|
|
|
|
int stellar_mq_create_topic(struct stellar *st, const char *topic_name, stellar_msg_free_cb_func *msg_free_cb, void *msg_free_arg)
|
|
{
|
|
UNUSED(st);
|
|
UNUSED(topic_name);
|
|
UNUSED(msg_free_cb);
|
|
UNUSED(msg_free_arg);
|
|
|
|
return 0;
|
|
}
|
|
|
|
int stellar_mq_get_topic_id(struct stellar *st, const char *topic_name)
|
|
{
|
|
UNUSED(st);
|
|
UNUSED(topic_name);
|
|
|
|
return 0;
|
|
}
|
|
|
|
int stellar_session_mq_subscribe(struct stellar *st, int topic_id, on_session_msg_cb_func *plugin_on_msg_cb, int plugin_id)
|
|
{
|
|
UNUSED(st);
|
|
UNUSED(topic_id);
|
|
UNUSED(plugin_on_msg_cb);
|
|
UNUSED(plugin_id);
|
|
|
|
return 0;
|
|
}
|
|
|
|
int stellar_session_plugin_register(struct stellar *st, session_ctx_new_func session_ctx_new, session_ctx_free_func session_ctx_free, void *plugin_env)
|
|
{
|
|
UNUSED(st);
|
|
UNUSED(session_ctx_new);
|
|
UNUSED(session_ctx_free);
|
|
UNUSED(plugin_env);
|
|
|
|
return 0;
|
|
} |