Rename ObFramePlugin to ObFrameEngine
authorBenoit Gschwind <doth.gschwind@gmail.com>
Thu, 21 Feb 2008 19:21:58 +0000 (20:21 +0100)
committerBenoit Gschwind <doth.gschwind@gmail.com>
Thu, 21 Feb 2008 19:21:58 +0000 (20:21 +0100)
engines/default/plugin.c
engines/default/plugin.h
openbox/engine_interface.c
openbox/engine_interface.h
openbox/openbox.c
openbox/openbox.h
render/theme.c
render/theme.h

index 188a98013f00e28a468b884a25d61ee9c8c2c176..69f4730bee9fbdaec78cdcac13f5cdcebfe8984e 100644 (file)
@@ -1838,10 +1838,11 @@ if(!call_trigger_func)
 }
 }
 
-ObFramePlugin plugin = { 0, /* gpointer handler */
-"libdefault.la", /* gchar * filename */
-"Default", /* gchar * name */
-init, //gint (*init) (Display * display, gint screen);
+ObFrameEngine plugin = {
+        0, /* gpointer handler */
+        "libdefault.la", /* gchar * filename */
+        "Default", /* gchar * name */
+        init, //gint (*init) (Display * display, gint screen);
         0, /* */
         frame_new, //gpointer (*frame_new) (struct _ObClient *c);
         frame_free, //void (*frame_free) (gpointer self);
@@ -1897,9 +1898,9 @@ init, //gint (*init) (Display * display, gint screen);
         0, //gchar *config_title_layout;
         FALSE, //gboolean moveresize_in_progress;
         0, //struct _ObMainLoop *ob_main_loop;
-};
+        };
 
-ObFramePlugin * get_info()
+ObFrameEngine * get_info()
 {
     return &plugin;
 }
index 3b8693218c1974c07dabac333d310adb2b234e6b..33d6d9e7e008776f18648a6adac2a32b87c14bd8 100644 (file)
@@ -223,9 +223,9 @@ void frame_trigger(gpointer, ObFrameTrigger);
 /* Global for renderframe.c only */
 extern Display * obp_display;
 extern gint obp_screen;
-extern ObFramePlugin plugin;
+extern ObFrameEngine plugin;
 #define OBDEFAULTFRAME(x) ((ObDefaultFrame *)(x))
 
-ObFramePlugin * get_info();
+ObFrameEngine * get_info();
 
 #endif /*FRAME_DEFAULT_PLUGIN_H_*/
index 6ba3091c392bf3827a9b4f04b83aa4ac19a16a5c..eacd10d6cd8260e36cd53d622934471ad5c5fb9b 100644 (file)
@@ -34,7 +34,7 @@ XrmDatabase loaddb(const gchar *name, gchar **path);
 /* Read string in XrmDatabase */
 gboolean read_string(XrmDatabase db, const gchar *rname, gchar **value);
 
-ObFramePlugin * init_frame_plugin(const gchar *name, gboolean allow_fallback,
+ObFrameEngine * init_frame_plugin(const gchar *name, gboolean allow_fallback,
         RrFont *active_window_font, RrFont *inactive_window_font,
         RrFont *menu_title_font, RrFont *menu_item_font, RrFont *osd_font)
 {
@@ -71,7 +71,7 @@ ObFramePlugin * init_frame_plugin(const gchar *name, gboolean allow_fallback,
     ob_debug("Try to init : %s", plugin_filename);
     gchar * absolute_plugin_filename = g_build_filename(g_get_home_dir(),
             ".config", "openbox", "engines", plugin_filename, NULL);
-    ObFramePlugin * p = load_frame_plugin(absolute_plugin_filename);
+    ObFrameEngine * p = load_frame_plugin(absolute_plugin_filename);
     g_free(absolute_plugin_filename);
 
     update_frame_plugin(p);
@@ -85,7 +85,7 @@ ObFramePlugin * init_frame_plugin(const gchar *name, gboolean allow_fallback,
     return p;
 }
 
-void update_frame_plugin(ObFramePlugin * self)
+void update_frame_plugin(ObFrameEngine * self)
 {
     self->init (obt_display, ob_screen);
     //self->ob_display = obt_display;
@@ -96,7 +96,7 @@ void update_frame_plugin(ObFramePlugin * self)
     self->ob_main_loop = ob_main_loop;
 }
 
-ObFramePlugin * load_frame_plugin(const gchar * filename)
+ObFrameEngine * load_frame_plugin(const gchar * filename)
 {
     GModule *module;
     gpointer func;
@@ -108,7 +108,7 @@ ObFramePlugin * load_frame_plugin(const gchar * filename)
     }
 
     if (g_module_symbol(module, "get_info", &func)) {
-        ObFramePlugin *plugin = (ObFramePlugin *) ((ObFramePluginFunc) func)();
+        ObFrameEngine *plugin = (ObFrameEngine *) ((ObFrameEngineFunc) func)();
         return plugin;
     }
     else {
index b23d6adf659e034ec3e15b5c7ed252f75bbe4372..6406b8c6deeac030873e68422ed5c8185245b569 100644 (file)
@@ -118,7 +118,7 @@ typedef enum
     OB_TRIGGER_PLUGIN9, /* ... */
 } ObFrameTrigger;
 
-struct _ObFramePlugin
+struct _ObFrameEngine
 {
     gpointer handler; // Currently not used.
 
@@ -217,22 +217,22 @@ enum _ObStyle
 };
 
 typedef enum _ObStyle ObStyle;
-typedef struct _ObFramePlugin ObFramePlugin;
-typedef ObFramePlugin * (*ObFramePluginFunc)(void);
+typedef struct _ObFrameEngine ObFrameEngine;
+typedef ObFrameEngine * (*ObFrameEngineFunc)(void);
 
 #define OBFRAME(x) (ObFrame *) (x);
 
 /* initialize theme plugin, it read themerc and load
  * the plugin needed */
-ObFramePlugin * init_frame_plugin(const gchar *name, gboolean allow_fallback,
+ObFrameEngine * init_frame_plugin(const gchar *name, gboolean allow_fallback,
         RrFont *active_window_font, RrFont *inactive_window_font,
         RrFont *menu_title_font, RrFont *menu_item_font, RrFont *osd_font);
 
 /* Update plugin data */
-void update_frame_plugin(ObFramePlugin *);
+void update_frame_plugin(ObFrameEngine *);
 
 /* Load modules specified in filename */
-ObFramePlugin * load_frame_plugin(const gchar * filename);
+ObFrameEngine * load_frame_plugin(const gchar * filename);
 
 /* Give context from string, it's used to parse config file */
 ObFrameContext frame_context_from_string(const gchar *name);
index 018dff210befa9001bc737199264d68a564f59a2..8cbae592e4b6fe8da13c5c6bb7cade5abe1e3700 100644 (file)
@@ -92,7 +92,7 @@ gchar       *ob_sm_id = NULL;
 gchar       *ob_sm_save_file = NULL;
 gboolean     ob_sm_restore = TRUE;
 gboolean     ob_debug_xinerama = FALSE;
-ObFramePlugin *render_plugin = NULL;
+ObFrameEngine * render_plugin = NULL;
 
 static ObState   state;
 static gboolean  xsync = FALSE;
index bc6bf21b3359121437fa062d6f49398f5347d388..fb90887f0db2803801ac6b96db6f318be3aabe82 100644 (file)
@@ -48,7 +48,7 @@ extern gboolean ob_replace_wm;
 extern gboolean ob_debug_xinerama;
 
 /* render function */
-extern ObFramePlugin *render_plugin;
+extern ObFrameEngine * render_plugin;
 
 /* The state of execution of the window manager */
 ObState ob_state();
index f44d68a020b6fea970a1bda02d095e92e4e2d4c1..e69bdeb50a035ea21f4f7c6fea1f18a77c67f361 100644 (file)
@@ -47,7 +47,7 @@ static int parse_inline_number(const char *p);
 static RrPixel32* read_c_image(gint width, gint height, const guint8 *data);
 static void set_default_appearance(RrAppearance *a);
 
-gint LoadThemeConfig(ObFramePlugin * p, const RrInstance *inst,
+gint LoadThemeConfig(ObFrameEngine * p, const RrInstance *inst,
     const gchar *name, gboolean allow_fallback, RrFont *active_window_font,
     RrFont *inactive_window_font, RrFont *menu_title_font,
     RrFont *menu_item_font, RrFont *osd_font)
index 0363050f856f4a03fe63b807525fd90d5ce07277..ce96532103aa9304f925068464888b817407549c 100644 (file)
@@ -241,10 +241,10 @@ struct _RrTheme {
     gchar *name;
 };
 
-struct _ObFramePlugin;
+struct _ObFrameEngine;
 /*! The font values are all optional. If a NULL is used for any of them, then
  the default font will be used. */
-gint LoadThemeConfig(struct _ObFramePlugin * p, const RrInstance *inst,
+gint LoadThemeConfig(struct _ObFrameEngine * p, const RrInstance *inst,
     const gchar *name, gboolean allow_fallback, RrFont *active_window_font,
     RrFont *inactive_window_font, RrFont *menu_title_font,
     RrFont *menu_item_font, RrFont *osd_font);