[gnome-games] sega-saturn: Move SegaSaturnError to its own file



commit 8c9e0a343cb11073b9ad2dde6d16df34e7b5872a
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Jul 28 11:04:46 2016 +0200

    sega-saturn: Move SegaSaturnError to its own file
    
    Move SegaSaturnError to its own file to conform with the coding style
    before editing it in a next commit.

 plugins/sega-saturn/src/Makefile.am             |    1 +
 plugins/sega-saturn/src/sega-saturn-error.vala  |    9 +++++++++
 plugins/sega-saturn/src/sega-saturn-header.vala |    8 --------
 3 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/plugins/sega-saturn/src/Makefile.am b/plugins/sega-saturn/src/Makefile.am
index a53cb7b..32ff1e4 100644
--- a/plugins/sega-saturn/src/Makefile.am
+++ b/plugins/sega-saturn/src/Makefile.am
@@ -6,6 +6,7 @@ libgames_sega_saturn_plugin_la_DEPENDENCIES = \
        $(NULL)
 
 libgames_sega_saturn_plugin_la_SOURCES = \
+       sega-saturn-error.vala \
        sega-saturn-header.vala \
        sega-saturn-plugin.vala \
        sega-saturn-uid.vala \
diff --git a/plugins/sega-saturn/src/sega-saturn-error.vala b/plugins/sega-saturn/src/sega-saturn-error.vala
new file mode 100644
index 0000000..cbc9b97
--- /dev/null
+++ b/plugins/sega-saturn/src/sega-saturn-error.vala
@@ -0,0 +1,9 @@
+// This file is part of GNOME Games. License: GPLv3
+
+errordomain Games.SegaSaturnError {
+       CANT_READ_FILE,
+       INVALID_SIZE,
+       INVALID_HEADER,
+       INVALID_DATE,
+       INVALID_DISK_INFO,
+}
diff --git a/plugins/sega-saturn/src/sega-saturn-header.vala b/plugins/sega-saturn/src/sega-saturn-header.vala
index f634d66..8d4558d 100644
--- a/plugins/sega-saturn/src/sega-saturn-header.vala
+++ b/plugins/sega-saturn/src/sega-saturn-header.vala
@@ -105,11 +105,3 @@ private class Games.SegaSaturnHeader : Object {
                }
        }
 }
-
-errordomain Games.SegaSaturnError {
-       CANT_READ_FILE,
-       INVALID_SIZE,
-       INVALID_HEADER,
-       INVALID_DATE,
-       INVALID_DISK_INFO,
-}


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