[vala-extra-vapis/wip/albfan/libssh2] Follow a comon naming scheme for structs/classes
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala-extra-vapis/wip/albfan/libssh2] Follow a comon naming scheme for structs/classes
- Date: Mon, 21 Oct 2019 12:21:43 +0000 (UTC)
commit d2eae24142da154c4d95fbb63774c52047c08cc2
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Oct 21 14:19:19 2019 +0200
Follow a comon naming scheme for structs/classes
libssh2.vapi | 48 ++++++++++++++++++++++++------------------------
1 file changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/libssh2.vapi b/libssh2.vapi
index 23e4295..d4fabe7 100644
--- a/libssh2.vapi
+++ b/libssh2.vapi
@@ -430,21 +430,21 @@ namespace SSH2 {
* @see add_ex
*/
[CCode (cname = "libssh2_publickey_ad")]
- public Error add (string name, [CCode (array_length_type = "unsigned long")] uint8[] blob,
bool overwrite, [CCode (array_length_pos = 3.1)] key_attribute[]? attrs);
+ public Error add (string name, [CCode (array_length_type = "unsigned long")] uint8[] blob,
bool overwrite, [CCode (array_length_pos = 3.1)] PublickeyAttribute[]? attrs);
/**
* Add a new public key entry.
*/
[CCode (cname = "libssh2_publickey_add_ex")]
- public Error add_ex ([CCode (array_length_type = "unsigned long")] uint8[] name, [CCode
(array_length_type = "unsigned long")] uint8[] blob, bool overwrite, [CCode (array_length_pos = 3.1)]
key_attribute[]? attrs);
+ public Error add_ex ([CCode (array_length_type = "unsigned long")] uint8[] name, [CCode
(array_length_type = "unsigned long")] uint8[] blob, bool overwrite, [CCode (array_length_pos = 3.1)]
PublickeyAttribute[]? attrs);
[CCode (cname = "libssh2_publickey_list_free")]
- public void list_free ([CCode (array_length = false)] owned key_list[] pkey_list);
+ public void list_free ([CCode (array_length = false)] owned PublickeyList[] pkey_list);
/**
* Fetch a list of supported public key from a server
*
* You must free the resulting list using {@link list_free}.
*/
[CCode (cname = "libssh2_publickey_list_fetch")]
- public Error list_public_keys ([CCode (array_length_pos = 0.1, array_length_type = "unsigned
long")] out key_list[] pkey_list);
+ public Error list_public_keys ([CCode (array_length_pos = 0.1, array_length_type = "unsigned
long")] out PublickeyList[] pkey_list);
[CCode (cname = "libssh2_publickey_remove")]
public Error remove ([CCode (array_length_type = "unsigned long")] uint8[] name, [CCode
(array_length_type = "unsigned long")] uint8[] blob);
[CCode (cname = "libssh2_publickey_remove_ex")]
@@ -651,7 +651,7 @@ namespace SSH2 {
[CCode (cname = "libssh2_publickey_init")]
public PublicKey? get_public_key ();
[CCode (cname = "libssh2_sftp_init")]
- public SFTP? get_sftp ();
+ public Sftp? get_sftp ();
[CCode (cname = "libssh2_session_supported_algs")]
private int _supported_algs (MethodType method_type, out string[]? algs);
public Error get_supported_algs (MethodType method_type, out string[]? algs) {
@@ -799,7 +799,7 @@ namespace SSH2 {
[CCode (cname = "libssh2_userauth_publickey_sign_delegate", simple_generics = true)]
public delegate Error PublicKeySignFunc<T> (Session<T> session, [CCode (array_length_type =
"size_t")] out uint8[] sig, [CCode (array_length_type = "size_t")] uint8[] data);
[CCode (cname = "libssh2_userauth_kbdint_response_delegate", simple_generics = true,
has_target = false)]
- public delegate void KeyboardInteractiveHandler<T> ([CCode (array_length_type = "int")]
uint8[] name, [CCode (array_length_type = "int")] uint8[] instruction, [CCode (array_length_pos = 2.1)]
keyboard_prompt prompts, [CCode (array_length = false)] keyboard_response responses, ref T user_data);
+ public delegate void KeyboardInteractiveHandler<T> ([CCode (array_length_type = "int")]
uint8[] name, [CCode (array_length_type = "int")] uint8[] instruction, [CCode (array_length_pos = 2.1)]
UserauthKeyboardPrompt prompts, [CCode (array_length = false)] UserauthKeyboardResponse responses, ref T
user_data);
[CCode (cname = "libssh2_recv_func_delegate", simple_generics = true, has_target = false)]
public delegate ssize_t RecvHandler<T> (int socket, [CCode (array_length_type = "size_t")]
uint8[] buffer, int flags, ref T user_data);
[CCode (cname = "libssh2_send_func_delegate", simple_generics = true, has_target = false)]
@@ -816,7 +816,7 @@ namespace SSH2 {
}
[CCode (cname = "LIBSSH2_SFTP", free_function = "libssh2_sftp_shutdown", cheader_filename =
"libssh2_sftp.h")]
[Compact]
- public class SFTP {
+ public class Sftp {
[CCode (cname = "LIBSSH2_SFTP_PACKET_MAXLEN", cheader_filename = "libssh2_sftp.h")]
public const int PACKET_MAXLEN;
/**
@@ -833,7 +833,7 @@ namespace SSH2 {
* Get status of a link
*/
[CCode (cname = "libssh2_sftp_lstat")]
- public Error lstat (string path, out sftp_attributes attrs);
+ public Error lstat (string path, out SftpAttributes attrs);
/**
* Create a directory on the remote file system
* @param path full path of the new directory to create. Note that the new directory's
parents must all exist priot to making this call.
@@ -896,17 +896,17 @@ namespace SSH2 {
* Set status of a file
*/
[CCode (cname = "libssh2_sftp_setstat")]
- public Error set_stat (string path, sftp_attributes attrs);
+ public Error set_stat (string path, SftpAttributes attrs);
/**
* Get status of a file
*/
[CCode (cname = "libssh2_sftp_stat")]
- public Error stat (string path, out sftp_attributes attrs);
+ public Error stat (string path, out SftpAttributes attrs);
/**
* Get file system statistics
*/
[CCode (cname = "libssh2_sftp_statvfs")]
- public Error stat_vfs ([CCode (array_length_type = "size_t")] uint8[] path, out stat_vfs st);
+ public Error SftpStatvfs ([CCode (array_length_type = "size_t")] uint8[] path, out
SftpStatvfs st);
/**
* Create a symbolic link between two filesystem objects.
*/
@@ -948,7 +948,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, sftp_attributes attrs);
+ public int read_dir ([CCode (array_length_size = "size_t")] uint8[] buffer, [CCode
(array_length_size = "size_t")] uint8[]? longentry, SftpAttributes attrs);
[CCode (cname = "libssh2_sftp_rewind")]
public void rewind ();
/**
@@ -966,17 +966,17 @@ namespace SSH2 {
* Set attributes on an SFTP file handle
*/
[CCode (cname = "libssh2_sftp_fsetstat")]
- public Error set_stat (sftp_attributes attrs);
+ public Error set_stat (SftpAttributes attrs);
/**
* Get attributes on an SFTP file handle
*/
[CCode (cname = "libssh2_sftp_fstat")]
- public Error stat (out sftp_attributes attrs);
+ public Error stat (out SftpAttributes attrs);
/**
* Get file system statistics
*/
[CCode (cname = "libssh2_sftp_fstatvfs")]
- public Error stat_vfs (out stat_vfs st);
+ public Error SftpStatvfs (out SftpStatvfs st);
/**
* Get the current read/write position indicator for a file
*/
@@ -1023,9 +1023,9 @@ namespace SSH2 {
public ssize_t write ([CCode (array_length_size = "size_t")] uint8[] buffer);
}
[CCode (cname = "libssh2_publickey_attribute", has_type_id = false, cheader_filename =
"libssh2_publickey.h")]
- public struct key_attribute {
+ public struct PublickeyAttribute {
[CCode (cname = "libssh2_publickey_attribute")]
- public key_attribute (string name, string @value, bool mandatory);
+ public PublickeyAttribute (string name, string @value, bool mandatory);
[CCode (array_length_cname = "name_len", array_length_type = "unsigned long")]
unowned uint8[] name;
[CCode (array_length_cname = "value_len", array_length_type = "unsigned long")]
@@ -1033,27 +1033,27 @@ namespace SSH2 {
bool mandatory;
}
[CCode (cname = "libssh2_publickey_list")]
- public struct key_list {
+ public struct PublickeyList {
[CCode (array_length_cname = "name_len", array_length_type = "unsigned long")]
uint8[] name;
[CCode (array_length_cname = "blob_len", array_length_type = "unsigned long")]
uint8[] blob;
[CCode (array_length_cname = "num_attrs", array_length_type = "unsigned long")]
- key_attribute[] attrs;
+ PublickeyAttribute[] attrs;
}
[CCode (cname = "LIBSSH2_USERAUTH_KBDINT_PROMPT")]
- public struct keyboard_prompt {
+ public struct UserauthKeyboardPrompt {
[CCode (array_length_cname = "length")]
public uint8[] text;
public bool echo;
}
[CCode (cname = "LIBSSH2_USERAUTH_KBDINT_RESPONSE")]
- public struct keyboard_response {
+ public struct UserauthKeyboardResponse {
[CCode (array_length_type = "unsigned int", array_length_cname = "length")]
public uint8[] text;
}
- [CCode (cname = "LIBSSH2_SFTP_ATTRIBUTES", has_type_id = false, cheader_filename = "libssh2_sftp.h")]
- public struct sftp_attributes {
+ [CCode (cname = "LIBSSH2_SftpAttributes", has_type_id = false, cheader_filename = "libssh2_sftp.h")]
+ public struct SftpAttributes {
/**
* If flags contains an attribute, then the value in this
* struct will be meaningful Otherwise it should be ignored
@@ -1082,7 +1082,7 @@ namespace SSH2 {
ulong mtime;
}
[CCode (cname = "LIBSSH2_SFTP_STATVFS", has_type_id = false, cheader_filename = "libssh2_sftp.h")]
- public struct stat_vfs {
+ public struct SftpStatvfs {
/**
* File system block size
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]