[gnome-games] unicode: Make read() and Encoding public
- From: Alexander Mikhaylenko <alexm src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-games] unicode: Make read() and Encoding public
 
- Date: Sat,  7 Nov 2020 16:19:20 +0000 (UTC)
 
commit ccc2fe2076f5b8b5794713a296a3a83a4de41b78
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Nov 3 09:19:58 2020 +0100
    unicode: Make read() and Encoding public
    
    This is needed to access them from plugins.
 src/utils/unicode.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/utils/unicode.vala b/src/utils/unicode.vala
index ad6ad1a0..89ef9200 100644
--- a/src/utils/unicode.vala
+++ b/src/utils/unicode.vala
@@ -1,7 +1,7 @@
 // This file is part of GNOME Games. License: GPL-3.0+.
 
 namespace Games.Unicode {
-       private enum Encoding {
+       public enum Encoding {
                UTF_32BE,
                UTF_32LE,
                UTF_16BE,
@@ -67,7 +67,7 @@ namespace Games.Unicode {
                return Encoding.UTF_8;
        }
 
-       private InputStream read (File file, Encoding encoding) throws Error {
+       public InputStream read (File file, Encoding encoding) throws Error {
                var stream = file.read ();
                int bom_length = 0;
                var src_encoding = parse_encoding (stream, out bom_length);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]