rename packet_io_loop to stellar_event_base_loop
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "packet.h"
|
||||
#include "event.h"
|
||||
#include <stdint.h>
|
||||
|
||||
struct session;
|
||||
struct session_event;
|
||||
struct stellar_session;
|
||||
|
||||
enum session_type
|
||||
enum stellar_session_type
|
||||
{
|
||||
SESSION_TYPE_CUSTOM,
|
||||
SESSION_TYPE_IP,
|
||||
@@ -23,7 +23,7 @@ enum session_type
|
||||
SESSION_TYPE_MAX,
|
||||
};
|
||||
|
||||
enum session_event_type
|
||||
enum stellar_session_event_type
|
||||
{
|
||||
SESSION_EVENT_OPENING=0x01,
|
||||
SESSION_EVENT_RAW_PKT=0x02,
|
||||
@@ -32,19 +32,13 @@ enum session_event_type
|
||||
SESSION_EVENT_CLOSING=0x10,
|
||||
};
|
||||
|
||||
struct stellar_session_event_extras;
|
||||
|
||||
typedef int (*fn_session_event_callback)(const struct session *s, int what, struct packet *p, const char *payload, uint32_t len, void **pme);
|
||||
typedef int (*fn_session_timer)(const struct session *s, void **pme);
|
||||
typedef int (*fn_session_event_callback)(const struct stellar_session *s, int what, struct stellar_packet *p, const char *payload, uint32_t len, void **pme);
|
||||
|
||||
void session_manager_trigger_event(struct session *s, session_event_type event, void *event_info);
|
||||
void session_manager_trigger_event(struct stellar_session *s,
|
||||
stellar_session_event_type type,
|
||||
struct stellar_session_event_extras *info);
|
||||
|
||||
|
||||
struct session_event *session_manager_commit(struct packet *p);
|
||||
|
||||
struct custom_session_event;
|
||||
|
||||
struct custom_session_event *session_manager_custom_session_event_register(const char *event_name, int available_event);
|
||||
struct session *session_manager_custom_session_derive(const struct session *cur_session, struct custom_session_event *event);
|
||||
|
||||
|
||||
struct session_event *session_manager_fetch_event();
|
||||
struct stellar_session *session_manager_session_derive(const struct stellar_session *this_session,
|
||||
const char *new_session_name);
|
||||
Reference in New Issue
Block a user