]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[throbgress] Mark plugin interface functions static
authorRay Strode <rstrode@redhat.com>
Thu, 6 Aug 2009 12:59:54 +0000 (08:59 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 6 Aug 2009 13:10:03 +0000 (09:10 -0400)
They should only get accessed via the vtable,
so we don't need to export them directly.

src/plugins/splash/throbgress/plugin.c

index 86471746ce7c730d144a55ecc46b761599e2a8e5..a3ebffaa41524c93a931b9658b4234d0e454111b 100644 (file)
@@ -101,7 +101,8 @@ static void add_handlers (ply_boot_splash_plugin_t *plugin);
 static void remove_handlers (ply_boot_splash_plugin_t *plugin);
 
 static void detach_from_event_loop (ply_boot_splash_plugin_t *plugin);
-ply_boot_splash_plugin_t *
+
+static ply_boot_splash_plugin_t *
 create_plugin (ply_key_file_t *key_file)
 {
   ply_boot_splash_plugin_t *plugin;
@@ -129,7 +130,7 @@ create_plugin (ply_key_file_t *key_file)
   return plugin;
 }
 
-void
+static void
 destroy_plugin (ply_boot_splash_plugin_t *plugin)
 {
   if (plugin == NULL)
@@ -382,21 +383,21 @@ remove_handlers (ply_boot_splash_plugin_t *plugin)
   ply_window_set_erase_handler (plugin->window, NULL, NULL);
 }
 
-void
+static void
 add_window (ply_boot_splash_plugin_t *plugin,
             ply_window_t             *window)
 {
   plugin->window = window;
 }
 
-void
+static void
 remove_window (ply_boot_splash_plugin_t *plugin,
                ply_window_t             *window)
 {
   plugin->window = NULL;
 }
 
-bool
+static bool
 show_splash_screen (ply_boot_splash_plugin_t *plugin,
                     ply_event_loop_t         *loop,
                     ply_buffer_t             *boot_buffer,
@@ -456,14 +457,14 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin,
   return true;
 }
 
-void
+static void
 update_status (ply_boot_splash_plugin_t *plugin,
                const char               *status)
 {
   assert (plugin != NULL);
 }
 
-void
+static void
 on_boot_progress (ply_boot_splash_plugin_t *plugin,
                   double                    duration,
                   double                    percent_done)
@@ -480,7 +481,7 @@ on_boot_progress (ply_boot_splash_plugin_t *plugin,
   ply_progress_bar_draw (plugin->progress_bar);
 }
 
-void
+static void
 hide_splash_screen (ply_boot_splash_plugin_t *plugin,
                     ply_event_loop_t         *loop)
 {
@@ -570,20 +571,21 @@ show_password_prompt (ply_boot_splash_plugin_t *plugin,
 
 }
 
-void
+static void
 on_root_mounted (ply_boot_splash_plugin_t *plugin)
 {
   plugin->root_is_mounted = true;
 }
 
-void
+static void
 become_idle (ply_boot_splash_plugin_t *plugin,
              ply_trigger_t            *idle_trigger)
 {
   stop_animation (plugin, idle_trigger);
 }
 
-void display_normal (ply_boot_splash_plugin_t *plugin)
+static void
+display_normal (ply_boot_splash_plugin_t *plugin)
 {
   if (plugin->state != PLY_BOOT_SPLASH_DISPLAY_NORMAL)
     {
@@ -593,7 +595,7 @@ void display_normal (ply_boot_splash_plugin_t *plugin)
     }
 }
 
-void
+static void
 display_password (ply_boot_splash_plugin_t *plugin,
                   const char               *prompt,
                   int                       bullets)
@@ -607,7 +609,7 @@ display_password (ply_boot_splash_plugin_t *plugin,
   ply_entry_set_bullet_count (plugin->entry, bullets);
 }
 
-void
+static void
 display_question (ply_boot_splash_plugin_t *plugin,
                   const char               *prompt,
                   const char               *entry_text)