This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-stellar/infra/plugin_manager/plugin_manager.h

27 lines
845 B
C
Raw Normal View History

#pragma once
2024-04-11 16:30:21 +08:00
#include "stellar/stellar.h"
2024-04-21 11:30:41 +08:00
#ifdef __cplusplus
2024-04-11 16:30:21 +08:00
extern "C"
{
#endif
struct plugin_manager_schema;
struct plugin_manager_runtime;
2024-04-11 16:30:21 +08:00
struct plugin_manager_schema *plugin_manager_init(struct stellar *st, const char *plugin_spec_file_path);
void plugin_manager_exit(struct plugin_manager_schema *plug_mgr);
2024-04-11 16:30:21 +08:00
void plugin_manager_on_packet_input(struct plugin_manager_schema *plug_mgr, struct packet *pkt);
void plugin_manager_on_packet_output(struct plugin_manager_schema *plug_mgr, struct packet *pkt);
//return polling work state, 0: idle, 1: working
int plugin_manager_on_polling(struct plugin_manager_schema *plug_mgr);
struct stellar_exdata;
struct stellar_exdata *session_exdata_runtime_new(struct plugin_manager_schema *plug_mgr);
void session_exdata_runtime_free(struct stellar_exdata *exdata_rt);
2024-04-11 16:30:21 +08:00
2024-04-21 11:30:41 +08:00
#ifdef __cplusplus
2024-04-11 16:30:21 +08:00
}
#endif