mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
plugins: export a const function pointer interface struct
This commit is contained in:
parent
37266ae419
commit
452c4b6015
22 changed files with 255 additions and 230 deletions
7
plugin.h
7
plugin.h
|
@ -36,6 +36,12 @@ struct plugin {
|
|||
|
||||
void *lib;
|
||||
union {
|
||||
const struct module_iface *module;
|
||||
const struct particle_iface *particle;
|
||||
const struct deco_iface *decoration;
|
||||
const void *dummy;
|
||||
|
||||
#if 0
|
||||
struct {
|
||||
void *sym1;
|
||||
void *sym2;
|
||||
|
@ -44,6 +50,7 @@ struct plugin {
|
|||
struct module_iface module;
|
||||
struct particle_iface particle;
|
||||
struct deco_iface decoration;
|
||||
#endif
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue