+ /* List of ObActions */
+ GSList *actions;
+
+ /* Icon shit */
+ gint icon_width;
+ gint icon_height;
+ RrPixel32 *icon_data;
+};
+
+struct _ObSubmenuMenuEntry {
+ gchar *name;
+ ObMenu *submenu;
+};
+
+struct _ObSeparatorMenuEntry {
+ gchar foo; /* placeholder */
+};
+
+struct _ObMenuEntry
+{
+ ObMenuEntryType type;
+ ObMenu *menu;
+
+ gint id;
+
+ union u {
+ ObNormalMenuEntry normal;
+ ObSubmenuMenuEntry submenu;
+ ObSeparatorMenuEntry separator;
+ } data;
+};
+
+void menu_startup();
+void menu_shutdown();
+
+void menu_parse();
+
+gboolean menu_new(gchar *name, gchar *title, gpointer data);
+void menu_free(gchar *name);
+
+gboolean menu_open_plugin(ObParseInst *i, gchar *name, gchar *plugin);
+
+void menu_set_update_func(gchar *name, ObMenuUpdateFunc func);
+void menu_set_execute_func(gchar *name, ObMenuExecuteFunc func);
+void menu_set_destroy_func(gchar *name, ObMenuDestroyFunc func);
+
+void menu_show(gchar *name, gint x, gint y, struct _ObClient *client);