refactor(session manager): turning the session manager into a stellar module
This commit is contained in:
@@ -5,7 +5,8 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include "packet.h"
|
||||
#include "stellar/exdata.h"
|
||||
#include "stellar/packet.h"
|
||||
|
||||
enum packet_stage
|
||||
{
|
||||
@@ -19,8 +20,10 @@ enum packet_stage
|
||||
|
||||
struct packet_manager;
|
||||
|
||||
int packet_manager_new_packet_exdata_index(struct packet_manager *pkt_mgr, const char *name, exdata_free *func, void *arg);
|
||||
|
||||
typedef void on_packet_stage_callback(enum packet_stage stage, struct packet *pkt, void *args);
|
||||
int packet_manager_subscribe(struct packet_manager *pkt_mgr, enum packet_stage stage, on_packet_stage_callback cb, void *args);
|
||||
int packet_manager_subscribe(struct packet_manager *pkt_mgr, enum packet_stage stage, on_packet_stage_callback *cb, void *args);
|
||||
|
||||
// if two modules claim the same packet at the same stage, the second 'claim' fails.
|
||||
// return 0 on success
|
||||
|
||||
Reference in New Issue
Block a user