[vala-extra-vapis] vapi: Fix a couple of attribute typos
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala-extra-vapis] vapi: Fix a couple of attribute typos
- Date: Tue, 16 Mar 2021 17:23:05 +0000 (UTC)
commit 43755e178b9d57a8eb39e002230a0268f9900a64
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Mar 16 18:22:45 2021 +0100
vapi: Fix a couple of attribute typos
cups.vapi | 4 ++--
gcrypt.vapi | 1 -
hiredis.vapi | 4 ++--
libcouchbase.vapi | 2 +-
libssh2.vapi | 8 ++++----
sdl2.vapi | 2 +-
sensors.vapi | 2 +-
yaml-0.1.vapi | 6 +++---
8 files changed, 14 insertions(+), 15 deletions(-)
---
diff --git a/cups.vapi b/cups.vapi
index f495c5c..58c13e8 100644
--- a/cups.vapi
+++ b/cups.vapi
@@ -38,8 +38,8 @@ namespace CUPS {
public const int VERSION_PATCH;
public const int DATE_ANY;
- [CCode (canme = "cups_ptype_t")]
- public enum PriterType {
+ [CCode (cname = "cups_ptype_t")]
+ public enum PrinterType {
LOCAL,
CLASS,
REMOTE,
diff --git a/gcrypt.vapi b/gcrypt.vapi
index 82693ca..7fc838a 100644
--- a/gcrypt.vapi
+++ b/gcrypt.vapi
@@ -500,7 +500,6 @@ namespace GCrypt {
}
public Error control (ControlCommand cmd, ...);
- [CCode (lower_case_cname = "cipher_")]
namespace Cipher {
[CCode (cname = "enum gcry_cipher_algos", cprefix = "GCRY_CIPHER_")]
public enum Algorithm {
diff --git a/hiredis.vapi b/hiredis.vapi
index c71dd62..85ef14d 100644
--- a/hiredis.vapi
+++ b/hiredis.vapi
@@ -94,7 +94,7 @@ namespace Redis {
* @param format String to send to Redis, or a printf-style format
* string, followed by arguments.
*/
- [PrintfFunction]
+ [PrintfFormat]
[CCode (cname = "redisCommand", has_target = false, has_type_id = false)]
public Reply command(string format, ...);
@@ -329,7 +329,7 @@ namespace Redis {
* @param format String to send to Redis, or a printf-style format
* string, followed by arguments.
*/
- [PrintfFunction]
+ [PrintfFormat]
[CCode (cname = "redisAsyncCommand", has_target = false, has_type_id = false)]
public Reply command(RedisCallbackFunction fn, string format, ...);
diff --git a/libcouchbase.vapi b/libcouchbase.vapi
index 88e216c..97d77f6 100644
--- a/libcouchbase.vapi
+++ b/libcouchbase.vapi
@@ -574,7 +574,7 @@ namespace LibCouchbase {
* @param options How to create the io ops structure
* @return StatusResponse.SUCCESS on success
*/
- [CCode (cname = "lcb_create_io_ops", destroy_method = "lcb_destroy_io_ops")]
+ [CCode (cname = "lcb_create_io_ops", destroy_function = "lcb_destroy_io_ops")]
public static StatusResponse create_io_options ( ref IO op, ref IOOptions options );
[Compact]
diff --git a/libssh2.vapi b/libssh2.vapi
index 7448b46..62abe4e 100644
--- a/libssh2.vapi
+++ b/libssh2.vapi
@@ -795,7 +795,7 @@ namespace SSH2 {
[CCode (cname = "libssh2_trace")]
public Error set_trace (Trace trace);
[CCode (cname = "libssh2_trace_sethandler", simple_generics = true)]
- public Error set_trace_handler ([CCode (target_pos = 0.1)] TraceFunc<T> handler);
+ public Error set_trace_handler ([CCode (delegate_target_pos = 0.1)] TraceFunc<T> handler);
/**
* Set a handler when an X11 connection has been accepted
* @param callback the handler, or null to ignore this message
@@ -965,7 +965,7 @@ namespace SSH2 {
* it would otherwise block.s
*/
[CCode (cname = "libssh2_sftp_read")]
- public ssize_t read ([CCode (array_length_size = "size_t")] uint8[] buffer);
+ public ssize_t read ([CCode (array_length_type = "size_t")] uint8[] buffer);
/**
* Reads a block of data and returns file entry information for the
* next entry, if any.
@@ -974,7 +974,7 @@ namespace SSH2 {
* @return number of bytes actually populated into buffer (not counting the terminating
zero), or negative on failure. It returns {@link Error.AGAIN} when it would otherwise block.
*/
[CCode (cname = "libssh2_sftp_readdir_ex")]
- public int read_dir ([CCode (array_length_size = "size_t")] uint8[] buffer, [CCode
(array_length_size = "size_t")] uint8[]? longentry, SftpAttributes attrs);
+ public int read_dir ([CCode (array_length_type = "size_t")] uint8[] buffer, [CCode
(array_length_type = "size_t")] uint8[]? longentry, SftpAttributes attrs);
[CCode (cname = "libssh2_sftp_rewind")]
public void rewind ();
/**
@@ -1046,7 +1046,7 @@ namespace SSH2 {
* other end.
*/
[CCode (cname = "libssh2_sftp_write")]
- public ssize_t write ([CCode (array_length_size = "size_t")] uint8[] buffer);
+ public ssize_t write ([CCode (array_length_type = "size_t")] uint8[] buffer);
}
[CCode (cname = "libssh2_publickey_attribute", has_type_id = false, cheader_filename =
"libssh2_publickey.h")]
public struct PublicKeyAttribute {
diff --git a/sdl2.vapi b/sdl2.vapi
index 13ba808..d0a0109 100644
--- a/sdl2.vapi
+++ b/sdl2.vapi
@@ -1526,7 +1526,7 @@ namespace SDL {
}
[CCode (cname = "SDL_SetError")]
- [PrintfFunction]
+ [PrintfFormat]
public static int set_error (string format, ...);
[CCode (cname = "SDL_GetError")]
diff --git a/sensors.vapi b/sensors.vapi
index c322fe1..fa1f3bd 100644
--- a/sensors.vapi
+++ b/sensors.vapi
@@ -240,6 +240,6 @@ namespace Sensors {
public int set_value(ChipName name, int subfeat_nr, double value);
/* Error decoding */
- [CCode (cheader_file = "sensors/error.h")]
+ [CCode (cheader_filename = "sensors/error.h")]
public unowned string strerror(int errnum);
}
diff --git a/yaml-0.1.vapi b/yaml-0.1.vapi
index 8aae43a..22e24ab 100644
--- a/yaml-0.1.vapi
+++ b/yaml-0.1.vapi
@@ -1161,13 +1161,13 @@ namespace Yaml {
/* The indentation levels stack. */
/** The beginning of the indentation levels stack. */
- [CCode (cnme = "indents.start")]
+ [CCode (cname = "indents.start")]
int? indents_start;
/** The end of the indentation levels stack. */
- [CCode (cnme = "indents.end")]
+ [CCode (cname = "indents.end")]
int? indents_end;
/** The top of the indentation levels stack. */
- [CCode (cnme = "indents.top")]
+ [CCode (cname = "indents.top")]
int? indents_top;
/** The current indentation level. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]