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

29 lines
887 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
#define MAX_MSG_PER_STAGE 256
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, unsigned int max_msg_per_stage);
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 exdata_runtime;
struct exdata_runtime *session_exdata_runtime_new(struct stellar *st);
void session_exdata_runtime_free(struct exdata_runtime *exdata_h);
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