[retro-gtk] retro-core: Rename run() to iteration()



commit 1c0a16c3c6d9e4d4e920381364e47a15f647a262
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Jan 23 19:44:25 2020 +0500

    retro-core: Rename run() to iteration()
    
    Match GLib's g_main_context_iteration() and just have a less confusing
    name.

 retro-gtk/retro-core.c | 6 +++---
 retro-gtk/retro-core.h | 2 +-
 tests/retro-reftest.c  | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/retro-gtk/retro-core.c b/retro-gtk/retro-core.c
index f3f9d69..aec2f04 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -1576,7 +1576,7 @@ run_main_loop (RetroCore *self)
   if (self->main_loop < 0)
     return FALSE;
 
-  retro_core_run (self);
+  retro_core_iteration (self);
 
   return TRUE;
 }
@@ -1649,13 +1649,13 @@ retro_core_reset (RetroCore *self)
 }
 
 /**
- * retro_core_run:
+ * retro_core_iteration:
  * @self: a #RetroCore
  *
  * Iterate @self for a frame.
  */
 void
-retro_core_run (RetroCore *self)
+retro_core_iteration (RetroCore *self)
 {
   RetroRun run;
   RetroSerializeSize serialize_size = NULL;
diff --git a/retro-gtk/retro-core.h b/retro-gtk/retro-core.h
index 460d86f..c9ff6b5 100644
--- a/retro-gtk/retro-core.h
+++ b/retro-gtk/retro-core.h
@@ -43,7 +43,7 @@ void retro_core_set_current_media (RetroCore  *self,
 void retro_core_start (RetroCore *self);
 void retro_core_stop (RetroCore *self);
 void retro_core_reset (RetroCore *self);
-void retro_core_run (RetroCore *self);
+void retro_core_iteration (RetroCore *self);
 gboolean retro_core_get_can_access_state (RetroCore *self);
 void retro_core_save_state (RetroCore    *self,
                             const gchar  *filename,
diff --git a/tests/retro-reftest.c b/tests/retro-reftest.c
index 414d56c..e099e76 100644
--- a/tests/retro-reftest.c
+++ b/tests/retro-reftest.c
@@ -356,7 +356,7 @@ retro_reftest_test_fast_forward (RetroReftestRun *run)
   g_assert_cmpuint (next_frame, <, target_frame);
 
   for (; next_frame < target_frame; next_frame++)
-    retro_core_run (run->data->core);
+    retro_core_iteration (run->data->core);
 
   run->data->next_frame = next_frame;
 
@@ -399,7 +399,7 @@ retro_reftest_test_run (RetroReftestRun *run)
     }
   }
 
-  retro_core_run (run->data->core);
+  retro_core_iteration (run->data->core);
   next_frame++;
 
   run->data->next_frame = next_frame;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]