[gnome-games/wip/aplazas/781334-refactor-game-source: 7/37] core: Add Plugin.get_mime_types ()



commit fc1e73d2bd815e386ddfcc8a4b428b9cfc3e5c3a
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.

 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]