[retro-gtk/wip/aplazas/controller] core: Rename supports_serialization() into get_can_access_state()



commit 69311de6e5fd65842fadd7085a4c65eb171a3016
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Oct 11 20:02:05 2017 +0200

    core: Rename supports_serialization() into get_can_access_state()
    
    This makes this method's name more in line with the related get_state()
    and set_state() methods.

 retro-gtk/retro-core.c |    4 ++--
 retro-gtk/retro-core.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/retro-gtk/retro-core.c b/retro-gtk/retro-core.c
index 82ed568..fed0d9e 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -1457,7 +1457,7 @@ retro_core_run (RetroCore *self)
 }
 
 /**
- * retro_core_supports_serialization:
+ * retro_core_get_can_access_state:
  * @self: a #RetroCore
  *
  * Gets whether the state of @self can be accessed.
@@ -1465,7 +1465,7 @@ retro_core_run (RetroCore *self)
  * Returns: whether the state of @self can be accessed
  */
 gboolean
-retro_core_supports_serialization (RetroCore *self)
+retro_core_get_can_access_state (RetroCore *self)
 {
   RetroSerializeSize serialize_size = NULL;
   gsize size;
diff --git a/retro-gtk/retro-core.h b/retro-gtk/retro-core.h
index 5cf9f9d..4823bf0 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,
                                    GError    **error);
 void retro_core_reset (RetroCore *self);
 void retro_core_run (RetroCore *self);
-gboolean retro_core_supports_serialization (RetroCore *self);
+gboolean retro_core_get_can_access_state (RetroCore *self);
 guint8 *retro_core_get_state (RetroCore  *self,
                               gsize      *length,
                               GError    **error);


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