summaryrefslogtreecommitdiff
path: root/openbox/plugin.c
diff options
context:
space:
mode:
authorScott Moynes <smoynes@nexus.carleton.ca>2003-07-17 01:40:27 +0000
committerScott Moynes <smoynes@nexus.carleton.ca>2003-07-17 01:40:27 +0000
commit22ff8c587d815c021cad13f46094a31cc79243cf (patch)
tree619056a5881cd5836ca0c47ae673fced623c5745 /openbox/plugin.c
parent5fce782499aa821c3a25bfdbf475066c2c21a7ed (diff)
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.
Diffstat (limited to 'openbox/plugin.c')
-rw-r--r--openbox/plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/plugin.c b/openbox/plugin.c
index 747bde6f..cd17d215 100644
--- a/openbox/plugin.c
+++ b/openbox/plugin.c
@@ -176,7 +176,7 @@ void plugin_loadall()
}
}
-void *plugin_create(char *name /* TODO */)
+void *plugin_create(char *name, void *data)
{
Plugin *p = (Plugin *)g_datalist_get_data(&plugins, name);
@@ -190,7 +190,7 @@ void *plugin_create(char *name /* TODO */)
return NULL;
}
- return p->create();
+ return p->create(data);
}
void plugin_destroy(char *name, void *data)