[gnome-games] retro: Add RetroSimpleType



commit 7472dc715385ec3d96434775b3c9ad1ad1ca5975
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu May 25 14:11:47 2017 +0200

    retro: Add RetroSimpleType
    
    This will be used to describe a simple game type, where one MIME type
    match one platform and vice versa. It will help simplifying game type
    declaration.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=783111

 src/Makefile.am                  |    1 +
 src/retro/retro-simple-type.vala |    8 ++++++++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 7940691..28c1f81 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -100,6 +100,7 @@ gnome_games_SOURCES = \
        retro/retro-input-manager.vala \
        retro/retro-platform.vala \
        retro/retro-runner.vala \
+       retro/retro-simple-type.vala \
        \
        tracker/mime-type-tracker-uri-query.vala \
        tracker/tracker-error.vala \
diff --git a/src/retro/retro-simple-type.vala b/src/retro/retro-simple-type.vala
new file mode 100644
index 0000000..ac6e16c
--- /dev/null
+++ b/src/retro/retro-simple-type.vala
@@ -0,0 +1,8 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+private struct Games.RetroSimpleType {
+       string mime_type;
+       bool search_mime_type;
+       string platform;
+       string prefix;
+}


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