[retro-gtk/wip/aplazas/expose-options: 2/2] Port the variable interface to C
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/wip/aplazas/expose-options: 2/2] Port the variable interface to C
- Date: Tue, 12 Sep 2017 09:52:18 +0000 (UTC)
commit ff229b63a60632d02e28c77042a7b4b094cbfd8e
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu May 18 16:33:22 2017 +0200
Port the variable interface to C
Also tweak the API to make it simpler and drop the useless Variables
interface.
core: Add option accessors
Add the has_option(), get_option_values() and set_option() methods to
Core, allowing some access the options of the core.
retro-gtk/core.vala | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/retro-gtk/core.vala b/retro-gtk/core.vala
index 3778337..d86a9fd 100644
--- a/retro-gtk/core.vala
+++ b/retro-gtk/core.vala
@@ -224,6 +224,30 @@ public class Core : Object {
*/
public extern void set_memory (MemoryType id, uint8[] data);
+ // public bool has_option (string key) {
+ // return options.contains (key);
+ // }
+
+ // public string[] get_options () {
+ // return options.contains (key);
+ // }
+
+ // public unowned string get_option_value (string key) throws Error {
+ // return options.lookup (key);
+ // }
+
+ // public unowned string get_option_description (string key) throws Error {
+ // return options.lookup_description (key);
+ // }
+
+ // public unowned string[] get_option_values (string key) throws Error {
+ // return options.lookup_values (key);
+ // }
+
+ // public void set_option_value (owned string key, owned string value) throws Error {
+ // options.set_option (key, value);
+ // }
+
private extern void init_input ();
private extern void on_input_controller_connected (uint port, InputDevice device);
private extern void on_input_controller_disconnected (uint port);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]