[gnome-games] core: Add Plugin.get_mime_types ()



commit 2c07a4235ebfba5a761710322b08cf2f295af177
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu May 4 14:11:00 2017 +0200

    core: Add Plugin.get_mime_types ()
    
    This will allow plugins to describe MIME types which should be
    registered for file URI search.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781334

 src/core/plugin.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/core/plugin.vala b/src/core/plugin.vala
index 0658cc9..3358f04 100644
--- a/src/core/plugin.vala
+++ b/src/core/plugin.vala
@@ -4,4 +4,8 @@ public interface Games.Plugin : Object {
        public virtual GameSource? get_game_source () throws Error {
                return null;
        }
+
+       public virtual string[] get_mime_types () {
+               return {};
+       }
 }


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