From: Rico Tzschichholz Date: Tue, 16 Mar 2021 16:10:52 +0000 (+0100) Subject: vapi: Fix a couple of attribute typos X-Git-Tag: 0.50.5~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3579c004a4af8f974398903381fc2d2bbb1292f;p=thirdparty%2Fvala.git vapi: Fix a couple of attribute typos --- 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);