[vala/0.48] vapi: Fix a couple of attribute typos



commit 3b96c14898d99877ae79722bd6d1f18f3d7d8cd1
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Mar 16 17:10:52 2021 +0100

    vapi: Fix a couple of attribute typos

 vapi/gnet-2.0.vapi | 8 ++++----
 vapi/libftdi.vapi  | 2 +-
 vapi/linux.vapi    | 2 +-
 vapi/posix.vapi    | 6 +++---
 vapi/zlib.vapi     | 2 +-
 5 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/vapi/gnet-2.0.vapi b/vapi/gnet-2.0.vapi
index b15338cbf..9bafd317e 100644
--- a/vapi/gnet-2.0.vapi
+++ b/vapi/gnet-2.0.vapi
@@ -115,17 +115,17 @@ namespace GNet {
        }
 
        public class IOChannel {
-               [CCode(name = "gnet_io_channel_writen")]
+               [CCode(cname = "gnet_io_channel_writen")]
                public static GLib.IOError writen(GLib.IOChannel chan, string buf,
                                                                                  size_t len, out size_t 
bytes_written);
 
-               [CCode(name = "gnet_io_channel_readn")]
+               [CCode(cname = "gnet_io_channel_readn")]
                public static GLib.IOError readn(GLib.IOChannel chan, string buf,
                                                                                 size_t len, out size_t 
bytes_read);
-               [CCode(name = "gnet_io_channel_readline")]
+               [CCode(cname = "gnet_io_channel_readline")]
                public static GLib.IOError readline(GLib.IOChannel chan, string buf,
                                                                                        size_t len, out 
size_t bytes_read);
-               [CCode(name = "gnet_io_channel_readline_strdup")]
+               [CCode(cname = "gnet_io_channel_readline_strdup")]
                public static GLib.IOError readline_strdup(GLib.IOChannel chan,
                                                                                                   out string 
buf,
                                                                                                   size_t 
bytes_read);
diff --git a/vapi/libftdi.vapi b/vapi/libftdi.vapi
index 7008985a0..b98f097e0 100644
--- a/vapi/libftdi.vapi
+++ b/vapi/libftdi.vapi
@@ -1,4 +1,4 @@
-[CCode (cprefix = "FTDI_", lower_case_prefix = "ftdi_", cheader_filename = "ftdi.h")]
+[CCode (cprefix = "FTDI_", lower_case_cprefix = "ftdi_", cheader_filename = "ftdi.h")]
 namespace FTDI {
 
        public const int DEFAULT_EEPROM_SIZE;
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 2984dfa33..37441b0fa 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -664,7 +664,7 @@ namespace Linux {
                 SET_TEARSYNC
             }
 
-            [Flags, CCode (cname = "int", has_type_id = false, prefix = "OMAPFB_CAPS_")]
+            [Flags, CCode (cname = "int", has_type_id = false, cprefix = "OMAPFB_CAPS_")]
             public enum Caps {
                 GENERIC_MASK,
                 LCDC_MASK,
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 24c07b326..3bc992d55 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -2496,11 +2496,11 @@ namespace Posix {
        [CCode (cheader_filename = "unistd.h")]
        public int execlp (string path, params string[] arg);
        [CCode (cheader_filename = "unistd.h")]
-       public int execv (string path, [CCode (array_length = false, null_terminated = true)] string[] arg);
+       public int execv (string path, [CCode (array_length = false, array_null_terminated = true)] string[] 
arg);
        [CCode (cheader_filename = "unistd.h")]
-       public int execvp (string path, [CCode (array_length = false, null_terminated = true)] string[] arg);
+       public int execvp (string path, [CCode (array_length = false, array_null_terminated = true)] string[] 
arg);
        [CCode (cheader_filename = "unistd.h")]
-       public int pipe ([CCode (array_length = false, null_terminated = false)] int[] pipefd);
+       public int pipe ([CCode (array_length = false, array_null_terminated = false)] int[] pipefd);
        [CCode (cheader_filename = "unistd.h")]
        public ssize_t read (int fd, void* buf, size_t count);
        [CCode (cheader_filename = "unistd.h")]
diff --git a/vapi/zlib.vapi b/vapi/zlib.vapi
index 2ce34ad16..6f76ba941 100644
--- a/vapi/zlib.vapi
+++ b/vapi/zlib.vapi
@@ -139,7 +139,7 @@ namespace ZLib {
                public int inflate (int flush);
                [CCode (cname = "inflateSetDictionary")]
                public int set_dictionary ([CCode (array_length_type = "guint")] uint8[] dictionary);
-               [CCode (cnmae = "inflateSync")]
+               [CCode (cname = "inflateSync")]
                public int sync ();
                public int reset ();
                public int prime (int bits, int value);


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