✨ feat(stellar mq topic api): add dispatch_cb_arg for dispatch_cb
This commit is contained in:
@@ -27,7 +27,6 @@ struct plugin_manager_per_thread_data
|
||||
struct stellar_message *priority_mq[STELLAR_MQ_PRIORITY_MAX];// message list
|
||||
struct stellar_message *dealth_letter_queue;// dlq list
|
||||
long long pub_packet_msg_cnt;
|
||||
long long pub_polling_msg_cnt;//TODO
|
||||
};
|
||||
|
||||
|
||||
@@ -89,12 +88,13 @@ typedef struct stellar_mq_subscriber
|
||||
struct stellar_mq_topic_schema
|
||||
{
|
||||
char *topic_name;
|
||||
void *free_cb_arg;
|
||||
int topic_id;
|
||||
int subscriber_cnt;
|
||||
int is_destroyed;
|
||||
on_msg_dispatch_cb_func *dispatch_cb;
|
||||
void *dispatch_cb_arg;
|
||||
stellar_msg_free_cb_func *free_cb;
|
||||
void *free_cb_arg;
|
||||
struct stellar_mq_subscriber *subscribers;
|
||||
}__attribute__((aligned(sizeof(void*))));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user