1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef PLUGIN_H_
- #define PLUGIN_H_
- typedef struct plugin_t plugin_t;
- #include <library.h>
- #include <plugins/plugin_feature.h>
- struct plugin_t {
-
- char* (*get_name)(plugin_t *this);
-
- int (*get_features)(plugin_t *this, plugin_feature_t *features[]);
-
- bool (*reload)(plugin_t *this);
-
- void (*destroy)(plugin_t *this);
- };
- typedef plugin_t *(*plugin_constructor_t)(void);
- #endif
|