[gnome-games] core: Add GameUriAdapter



commit 37d6f409ae6347cd7aa54c02b002d823e3c430c2
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Aug 16 14:55:42 2016 +0200

    core: Add GameUriAdapter
    
    This will be used in a subsequent commit to allow asynchrous convertion
    of a game file URI into a game object.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769832

 src/Makefile.am                |    1 +
 src/core/game-uri-adapter.vala |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 1164247..c1d4fc9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -39,6 +39,7 @@ gnome_games_SOURCES = \
        core/cover.vala \
        core/game.vala \
        core/game-source.vala \
+       core/game-uri-adapter.vala \
        core/icon.vala \
        core/plugin.vala \
        core/plugin-register.vala \
diff --git a/src/core/game-uri-adapter.vala b/src/core/game-uri-adapter.vala
new file mode 100644
index 0000000..18b07a5
--- /dev/null
+++ b/src/core/game-uri-adapter.vala
@@ -0,0 +1,5 @@
+// This file is part of GNOME Games. License: GPLv3
+
+public interface Games.GameUriAdapter : Object {
+       public abstract async Game game_for_uri (string uri) throws Error;
+}


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