X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fplugin.h;h=6d14c64c44986703faabbbbdf5dd6da375220a4c;hb=d7ae443cb44248b8c7a3491a5eb6b4ea4bfd0f4d;hp=d5cb2f6f27747bfbe725fe1af20fc3291030bdbe;hpb=4ed3fb89150d05e6fa134798315269c62de1bed9;p=chaz%2Fopenbox diff --git a/openbox/plugin.h b/openbox/plugin.h index d5cb2f6f..6d14c64c 100644 --- a/openbox/plugin.h +++ b/openbox/plugin.h @@ -1,10 +1,23 @@ #ifndef __plugin_h #define __plugin_h +struct _ObParseInst; + void plugin_startup(); void plugin_shutdown(); -gboolean plugin_open(char *name); +void plugin_loadall(struct _ObParseInst *i); +void plugin_startall(); + +/* default plugin */ +gboolean plugin_open(char *name, struct _ObParseInst *i); +/* load a plugin, but don't warn about reopens. for menus */ +gboolean plugin_open_reopen(char *name, struct _ObParseInst *i); void plugin_close(char *name); +/* call plugin's generic constructor */ +void *plugin_create(char *name, void *data); +/* free memory allocated by plugin_create() */ +void plugin_destroy(char *name, void *object); + #endif