openbox/openbox/plugin.h
Scott Moynes 22ff8c587d Menu parsing updates for plugins.
FIFO menus are the only plugin that takes advantage of this.
Example:
<menu id="root" label="Openbox 3">
  <menu id="fonk" label="fonk" plugin="fifo_menu">
  </menu>
</menu>

This creates a FIFO ~/.openbox/fifo_menu/fonk to which you can send
menus to. The menus sent to it must be like
<fifo>
  <item>
   etc...
</fifo>

I think. If my memory serves me right.

It is all hideous, but I just wanted to experiment and see if it was
possible.
2003-07-17 01:40:27 +00:00

21 lines
511 B
C

#ifndef __plugin_h
#define __plugin_h
void plugin_startup();
void plugin_shutdown();
void plugin_loadall();
void plugin_startall();
/* default plugin */
gboolean plugin_open(char *name);
/* load a plugin, but don't warn about reopens. for menus */
gboolean plugin_open_reopen(char *name);
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