[gnome-games/wip/aplazas/run-uri: 10/21] generic: Add GenericUriGameFactory.game_for_uri()



commit 2541fe745ffaf74cd6ae031e31facd6d34ebbefd
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Apr 13 15:21:37 2017 +0200

    generic: Add GenericUriGameFactory.game_for_uri()
    
    This will be used in a subsequent commit to make a game from an URI.

 src/generic/generic-uri-game-factory.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/generic/generic-uri-game-factory.vala b/src/generic/generic-uri-game-factory.vala
index 78bd0b8..062173f 100644
--- a/src/generic/generic-uri-game-factory.vala
+++ b/src/generic/generic-uri-game-factory.vala
@@ -15,6 +15,10 @@ public class Games.GenericUriGameFactory : Object, UriGameFactory {
                uris += uri;
        }
 
+       public async Game game_for_uri (string uri) throws Error {
+               return yield game_uri_adapter.game_for_uri (uri);
+       }
+
        public async void foreach_game (GameCallback game_callback) {
                uint handled_uris = 0;
                foreach (var uri in uris) {


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