Refactor(plug_mgr API): remove session_ctx, provide stellar_mq
This commit is contained in:
@@ -16,12 +16,15 @@ inline static void stellar_exdata_free_default(int idx __unused, void *ex_ptr, v
|
||||
if(ex_ptr)FREE(ex_ptr);
|
||||
}
|
||||
|
||||
struct packet;
|
||||
int stellar_exdata_new_index(struct stellar *st, const char *name, stellar_exdata_free *free_func,void *arg);
|
||||
|
||||
//packet exdata api
|
||||
int packet_exdata_set(struct packet *pkt, int idx, void *ex_ptr);
|
||||
void *packet_exdata_get(struct packet *pkt, int idx);
|
||||
|
||||
struct session;
|
||||
|
||||
//session exdata api
|
||||
int session_exdata_set(struct session *sess, int idx, void *ex_ptr);
|
||||
void *session_exdata_get(struct session *sess, int idx);
|
||||
|
||||
Reference in New Issue
Block a user