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/module_manager/module_manager_interna.h

49 lines
777 B
C
Raw Normal View History

#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
#include "stellar/module.h"
#include "stellar/mq.h"
#include <limits.h>
#include <stdbool.h>
struct module
{
char name[NAME_MAX];
void *module_ctx;
};
struct module_spec_load
{
struct module *mod;
struct module_specification spec;
bool init_succ;
}__attribute__((aligned(sizeof(void*))));
struct module_manager
{
char *module_spec_toml_path;
struct module_spec_load *module_specs;
int load_module_num;
int topic_polling_id;
struct
{
int max_thread_num;
struct mq_schema *mq_schema;
struct logger *logger;
}schema;
}__attribute__((aligned(sizeof(void*))));
void stellar_polling_dispatch(struct module_manager *mod_mgr);
#ifdef __cplusplus
}
#endif