[gnome-games/wip/exalm/issue68: 10/10] playstation: Fix get_playstation_info() signature



commit a871c2c4bb7228ddedfc56a7322f68549aec48e7
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sat Sep 8 21:15:16 2018 +0500

    playstation: Fix get_playstation_info() signature
    
    The 'cancellable' parameter must be explicitly specified on Vala side.

 plugins/playstation/src/playstation-header.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/playstation/src/playstation-header.vala b/plugins/playstation/src/playstation-header.vala
index 24591be4..42c0fd7c 100644
--- a/plugins/playstation/src/playstation-header.vala
+++ b/plugins/playstation/src/playstation-header.vala
@@ -23,7 +23,7 @@ private class Games.PlayStationHeader : Object {
 
                string label;
                string exe;
-               if (!get_playstation_info (file.get_path (), out label, out exe))
+               if (!get_playstation_info (file.get_path (), out label, out exe, null))
                        throw new PlayStationError.INVALID_HEADER (_("Not a PlayStation disc: ā€œ%sā€."), 
file.get_uri ());
 
                _disc_id = parse_id_from_exe (exe);
@@ -73,5 +73,5 @@ private class Games.PlayStationHeader : Object {
        }
 
        [CCode (cname = "get_playstation_info")]
-       private static extern bool get_playstation_info (string filename, out string label, out string exe) 
throws Error;
+       private static extern bool get_playstation_info (string filename, out string label, out string exe, 
Cancellable? cancellable) throws Error;
 }


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