[gnome-games/wip/aplazas/781334-refactor-game-sources: 2/5] libretro: Add LibretroUriSource



commit 7b464e17dfdf9ddc762cb0858233adbc3d2872ee
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun May 7 12:17:18 2017 +0200

    libretro: Add LibretroUriSource
    
    This will be used to iterate through the available Libretro games.

 plugins/libretro/src/Makefile.am              |    1 +
 plugins/libretro/src/libretro-uri-source.vala |    7 +++++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plugins/libretro/src/Makefile.am b/plugins/libretro/src/Makefile.am
index 89e8611..f19edbd 100644
--- a/plugins/libretro/src/Makefile.am
+++ b/plugins/libretro/src/Makefile.am
@@ -12,6 +12,7 @@ libgames_libretro_plugin_la_SOURCES = \
        libretro-title.vala \
        libretro-uid.vala \
        libretro-uri-iterator.vala \
+       libretro-uri-source.vala \
        $(NULL)
 
 libgames_libretro_plugin_la_VALAFLAGS = \
diff --git a/plugins/libretro/src/libretro-uri-source.vala b/plugins/libretro/src/libretro-uri-source.vala
new file mode 100644
index 0000000..a2f62ba
--- /dev/null
+++ b/plugins/libretro/src/libretro-uri-source.vala
@@ -0,0 +1,7 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+public class Games.LibretroUriSource : Object, UriSource {
+       public UriIterator iterator () {
+               return new LibretroUriIterator ();
+       }
+}


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