[gnome-games] core: Add Core
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] core: Add Core
- Date: Sun, 14 Jun 2020 13:18:49 +0000 (UTC)
commit 6496374298dea7c0b735b36b2b2c476836e925c9
Author: Adwait Rawat <adwait rawat gmail com>
Date: Thu Jun 11 02:36:48 2020 +0900
core: Add Core
Added Core interface for abstraction of Retro.CoreDescriptor function calls
for the purpose of refactoring firmware related code in RetroSourceCore.
src/core/core.vala | 17 +++++++++++++++++
src/meson.build | 1 +
2 files changed, 18 insertions(+)
---
diff --git a/src/core/core.vala b/src/core/core.vala
new file mode 100644
index 00000000..666a8fbf
--- /dev/null
+++ b/src/core/core.vala
@@ -0,0 +1,17 @@
+// This file is part of GNOME Games. License: GPL-3.0+
+
+public interface Games.Core : Object {
+ public abstract string[] get_all_firmware (Platform platform) throws Error;
+
+ public abstract bool has_firmware_md5 (string firmware) throws Error;
+
+ public abstract bool has_firmware_sha512 (string firmware) throws Error;
+
+ public abstract string? get_firmware_md5 (string firmware) throws Error;
+
+ public abstract string? get_firmware_sha512 (string firmware) throws Error;
+
+ public abstract bool get_is_firmware_mandatory (string firmware) throws Error;
+
+ public abstract string? get_firmware_path (string firmware) throws Error;
+}
diff --git a/src/meson.build b/src/meson.build
index c6126e52..056c46bb 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -14,6 +14,7 @@ vala_sources = [
'command/command-error.vala',
'command/command-runner.vala',
+ 'core/core.vala',
'core/cover.vala',
'core/cover-loader.vala',
'core/game.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]