2003-03-18 03:11:55 +00:00
|
|
|
#ifndef __plugin_h
|
|
|
|
#define __plugin_h
|
|
|
|
|
|
|
|
void plugin_startup();
|
|
|
|
void plugin_shutdown();
|
|
|
|
|
2003-03-22 23:26:43 +00:00
|
|
|
void plugin_loadall();
|
|
|
|
void plugin_startall();
|
|
|
|
|
2003-05-09 23:15:28 +00:00
|
|
|
/* default plugin */
|
2003-03-18 03:11:55 +00:00
|
|
|
gboolean plugin_open(char *name);
|
2003-05-09 23:15:28 +00:00
|
|
|
/* load a plugin, but don't warn about reopens. for menus */
|
|
|
|
gboolean plugin_open_reopen(char *name);
|
2003-03-18 03:11:55 +00:00
|
|
|
void plugin_close(char *name);
|
|
|
|
|
2003-05-09 23:15:28 +00:00
|
|
|
/* call plugin's generic constructor */
|
|
|
|
void *plugin_create(char *name /* TODO */);
|
|
|
|
/* free memory allocated by plugin_create() */
|
|
|
|
void plugin_destroy(char *name, void *object);
|
|
|
|
|
2003-03-18 03:11:55 +00:00
|
|
|
#endif
|