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_interna.h

33 lines
550 B
C
Raw Normal View History

#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
#include "stellar/stellar.h"
#include "uthash/utarray.h"
/*******************************
* PLUGIN MANAGER INIT & EXIT *
*******************************/
struct plugin_manager_schema
{
struct stellar *st;
UT_array *plugin_load_specs_array;
}__attribute__((aligned(sizeof(void*))));
struct plugin_specific
{
char plugin_name[256];
plugin_on_load_func *load_cb;
plugin_on_unload_func *unload_cb;
void *plugin_ctx;
}__attribute__((aligned(sizeof(void*))));
#ifdef __cplusplus
}
#endif