33 lines
550 B
C
33 lines
550 B
C
#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 |