[gnome-games/wip/aplazas/type-registration: 1/19] retro: Add RetroSimpleType
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/aplazas/type-registration: 1/19] retro: Add RetroSimpleType
- Date: Thu, 25 May 2017 15:51:13 +0000 (UTC)
commit 20c24092f642571c9939ec65c3e4e789cb6f8f24
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.
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]