From: Jürg Billeter Date: Wed, 15 Apr 2009 19:17:42 +0000 (+0200) Subject: Remove gnet-2.0 bindings X-Git-Tag: 0.7.1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7cc8a45c75b8a4da8787341c00d1d28ff0bce96;p=thirdparty%2Fvala.git Remove gnet-2.0 bindings The generated bindings are broken as the C library does not follow the usual naming conventions. If there is still demand for gnet-2.0 bindings, manual bindings should be added. --- diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 3f276c48c..f6f23415c 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -26,7 +26,6 @@ dist_vapi_DATA = \ gio-unix-2.0.deps \ gio-unix-2.0.vapi \ gmodule-2.0.vapi \ - gnet-2.0.vapi \ gnome-desktop-2.0.deps \ gnome-desktop-2.0.vapi \ gnome-keyring-1.vapi \ diff --git a/vapi/gnet-2.0.vapi b/vapi/gnet-2.0.vapi deleted file mode 100644 index a402f6941..000000000 --- a/vapi/gnet-2.0.vapi +++ /dev/null @@ -1,680 +0,0 @@ -/* gnet-2.0.vapi generated by lt-vapigen, do not modify. */ - -[CCode (cprefix = "G", lower_case_cprefix = "gnet_")] -namespace GNet { - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class Conn { - public weak string buffer; - public uint bytes_read; - public uint bytes_written; - public weak GNet.TcpSocketConnectAsyncID connect_id; - public weak GLib.MainContext context; - public weak GNet.ConnFunc func; - public weak string hostname; - public weak GNet.InetAddr inetaddr; - public weak GLib.IOChannel iochannel; - public uint length; - public weak GNet.TcpSocketNewAsyncID new_id; - public int port; - public int priority; - public uint process_buffer_timeout; - public bool read_eof; - public weak GLib.List read_queue; - public uint ref_count; - public uint ref_count_internal; - public weak GNet.TcpSocket socket; - public uint timer; - public void* user_data; - public uint watch; - public uint watch_flags; - public bool watch_readable; - public bool watch_writable; - public weak GLib.List write_queue; - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class ConnEvent { - public weak string buffer; - public int length; - public GNet.ConnEventType type; - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class ConnHttp { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class ConnHttpEvent { - public void* padding; - public ulong stsize; - public GNet.ConnHttpEventType type; - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class ConnHttpEventData { - public weak string buffer; - public ulong buffer_length; - public uint64 content_length; - public uint64 data_received; - public void* padding; - public weak GNet.ConnHttpEvent parent; - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class ConnHttpEventError { - public GNet.ConnHttpError code; - public weak string message; - public void* padding; - public weak GNet.ConnHttpEvent parent; - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class ConnHttpEventRedirect { - public bool auto_redirect; - public uint max_redirects; - public weak string new_location; - public uint num_redirects; - public void* padding; - public weak GNet.ConnHttpEvent parent; - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class ConnHttpEventResolved { - public weak GNet.InetAddr ia; - public void* padding; - public weak GNet.ConnHttpEvent parent; - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class ConnHttpEventResponse { - public weak string header_fields; - public weak string header_values; - public void* padding; - public weak GNet.ConnHttpEvent parent; - public uint response_code; - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class InetAddr { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class InetAddrGetNameAsyncID { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class InetAddrNewAsyncID { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class InetAddrNewListAsyncID { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class MD5 { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class McastSocket { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class SHA { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class Server { - public weak GNet.ServerFunc func; - public weak GNet.InetAddr iface; - public int port; - public uint ref_count; - public weak GNet.TcpSocket socket; - public void* user_data; - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class TcpSocket { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class TcpSocketConnectAsyncID { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class TcpSocketNewAsyncID { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class URI { - public weak string fragment; - public weak string hostname; - public weak string path; - public int port; - public weak string query; - public weak string scheme; - public weak string userinfo; - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class UdpSocket { - } - [Compact] - [CCode (cheader_filename = "gnet.h")] - public class UnixSocket { - } - [CCode (cheader_filename = "gnet.h")] - public struct NetTOS { - } - [CCode (cprefix = "GNET_CONN_", has_type_id = "0", cheader_filename = "gnet.h")] - public enum ConnEventType { - ERROR, - CONNECT, - CLOSE, - TIMEOUT, - READ, - WRITE, - READABLE, - WRITABLE - } - [CCode (cprefix = "GNET_CONN_HTTP_ERROR_", has_type_id = "0", cheader_filename = "gnet.h")] - public enum ConnHttpError { - UNSPECIFIED, - PROTOCOL_UNSUPPORTED, - HOSTNAME_RESOLUTION - } - [CCode (cprefix = "GNET_CONN_HTTP_", has_type_id = "0", cheader_filename = "gnet.h")] - public enum ConnHttpEventType { - RESOLVED, - CONNECTED, - RESPONSE, - REDIRECT, - DATA_PARTIAL, - DATA_COMPLETE, - TIMEOUT, - ERROR - } - [CCode (cprefix = "GNET_CONN_HTTP_FLAG_SKIP_HEADER_", has_type_id = "0", cheader_filename = "gnet.h")] - public enum ConnHttpHeaderFlags { - CHECK - } - [CCode (cprefix = "GNET_CONN_HTTP_METHOD_", has_type_id = "0", cheader_filename = "gnet.h")] - public enum ConnHttpMethod { - GET, - POST - } - [CCode (cprefix = "GNET_IO_ERROR_", cheader_filename = "gnet.h")] - public enum IOError { - NONE, - AGAIN, - INVAL, - UNKNOWN - } - [CCode (cprefix = "GIPV6_POLICY_", has_type_id = "0", cheader_filename = "gnet.h")] - public enum IPv6Policy { - IPV4_THEN_IPV6, - IPV6_THEN_IPV4, - IPV4_ONLY, - IPV6_ONLY - } - [CCode (cprefix = "GNET_TOS_", has_type_id = "0", cheader_filename = "gnet.h")] - public enum TOS { - NONE, - LOWDELAY, - THROUGHPUT, - RELIABILITY, - LOWCOST - } - [CCode (cprefix = "GTCP_SOCKET_CONNECT_ASYNC_STATUS_", has_type_id = "0", cheader_filename = "gnet.h")] - public enum TcpSocketConnectAsyncStatus { - OK, - INETADDR_ERROR, - TCP_ERROR - } - [CCode (cheader_filename = "gnet.h")] - public delegate void ConnFunc (GNet.Conn conn, GNet.ConnEvent event); - [CCode (cheader_filename = "gnet.h")] - public delegate void ConnHttpFunc (GNet.ConnHttp conn, GNet.ConnHttpEvent event); - [CCode (cheader_filename = "gnet.h")] - public delegate void InetAddrGetNameAsyncFunc (string hostname); - [CCode (cheader_filename = "gnet.h")] - public delegate void InetAddrNewAsyncFunc (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public delegate void InetAddrNewListAsyncFunc (GLib.List list); - [CCode (cheader_filename = "gnet.h")] - public delegate void ServerFunc (GNet.Server server, GNet.Conn conn); - [CCode (cheader_filename = "gnet.h")] - public delegate void TcpSocketAcceptFunc (GNet.TcpSocket server, GNet.TcpSocket client); - [CCode (cheader_filename = "gnet.h")] - public delegate void TcpSocketConnectAsyncFunc (GNet.TcpSocket socket, GNet.TcpSocketConnectAsyncStatus status); - [CCode (cheader_filename = "gnet.h")] - public delegate void TcpSocketNewAsyncFunc (GNet.TcpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public const int INETADDR_MAX_LEN; - [CCode (cheader_filename = "gnet.h")] - public const int MD5_HASH_LENGTH; - [CCode (cheader_filename = "gnet.h")] - public const int SHA_HASH_LENGTH; - [CCode (cheader_filename = "gnet.h")] - public const int SOCKS_PORT; - [CCode (cheader_filename = "gnet.h")] - public const int SOCKS_VERSION; - [CCode (cheader_filename = "gnet.h")] - public static weak string base64_decode (string src, int srclen, int dstlenp); - [CCode (cheader_filename = "gnet.h")] - public static weak string base64_encode (string src, int srclen, int dstlenp, bool strict); - [CCode (cheader_filename = "gnet.h")] - public static int calcsize (string format); - [CCode (cheader_filename = "gnet.h")] - public static void conn_connect (GNet.Conn conn); - [CCode (cheader_filename = "gnet.h")] - public static void conn_delete (GNet.Conn conn); - [CCode (cheader_filename = "gnet.h")] - public static void conn_disconnect (GNet.Conn conn); - [CCode (cheader_filename = "gnet.h")] - public static void conn_http_cancel (GNet.ConnHttp conn); - [CCode (cheader_filename = "gnet.h")] - public static void conn_http_delete (GNet.ConnHttp conn); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.ConnHttp conn_http_new (); - [CCode (cheader_filename = "gnet.h")] - public static bool conn_http_run (GNet.ConnHttp conn, GNet.ConnHttpFunc func); - [CCode (cheader_filename = "gnet.h")] - public static void conn_http_run_async (GNet.ConnHttp conn, GNet.ConnHttpFunc func); - [CCode (cheader_filename = "gnet.h")] - public static bool conn_http_set_escaped_uri (GNet.ConnHttp conn, string uri); - [CCode (cheader_filename = "gnet.h")] - public static bool conn_http_set_header (GNet.ConnHttp conn, string field, string value, GNet.ConnHttpHeaderFlags flags); - [CCode (cheader_filename = "gnet.h")] - public static bool conn_http_set_main_context (GNet.ConnHttp conn, GLib.MainContext context); - [CCode (cheader_filename = "gnet.h")] - public static void conn_http_set_max_redirects (GNet.ConnHttp conn, uint num); - [CCode (cheader_filename = "gnet.h")] - public static bool conn_http_set_method (GNet.ConnHttp conn, GNet.ConnHttpMethod method, string post_data, ulong post_data_len); - [CCode (cheader_filename = "gnet.h")] - public static void conn_http_set_timeout (GNet.ConnHttp conn, uint timeout); - [CCode (cheader_filename = "gnet.h")] - public static bool conn_http_set_uri (GNet.ConnHttp conn, string uri); - [CCode (cheader_filename = "gnet.h")] - public static bool conn_http_set_user_agent (GNet.ConnHttp conn, string agent); - [CCode (cheader_filename = "gnet.h")] - public static bool conn_http_steal_buffer (GNet.ConnHttp conn, string buffer, ulong length); - [CCode (cheader_filename = "gnet.h")] - public static bool conn_is_connected (GNet.Conn conn); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.Conn conn_new (string hostname, int port, GNet.ConnFunc func); - [CCode (cheader_filename = "gnet.h")] - public static void conn_read (GNet.Conn conn); - [CCode (cheader_filename = "gnet.h")] - public static void conn_readline (GNet.Conn conn); - [CCode (cheader_filename = "gnet.h")] - public static void conn_readn (GNet.Conn conn, int length); - [CCode (cheader_filename = "gnet.h")] - public static void conn_ref (GNet.Conn conn); - [CCode (cheader_filename = "gnet.h")] - public static void conn_set_callback (GNet.Conn conn, GNet.ConnFunc func); - [CCode (cheader_filename = "gnet.h")] - public static bool conn_set_main_context (GNet.Conn conn, GLib.MainContext context); - [CCode (cheader_filename = "gnet.h")] - public static void conn_set_watch_error (GNet.Conn conn, bool enable); - [CCode (cheader_filename = "gnet.h")] - public static void conn_set_watch_readable (GNet.Conn conn, bool enable); - [CCode (cheader_filename = "gnet.h")] - public static void conn_set_watch_writable (GNet.Conn conn, bool enable); - [CCode (cheader_filename = "gnet.h")] - public static void conn_timeout (GNet.Conn conn, uint timeout); - [CCode (cheader_filename = "gnet.h")] - public static void conn_unref (GNet.Conn conn); - [CCode (cheader_filename = "gnet.h")] - public static void conn_write (GNet.Conn conn, string buffer, int length); - [CCode (cheader_filename = "gnet.h")] - public static void conn_write_direct (GNet.Conn conn, string buffer, int length, GLib.DestroyNotify buffer_destroy_cb); - [CCode (cname = "gnet_conn_new_inetaddr", cheader_filename = "gnet.h")] - public static weak GNet.Conn from_inetaddr (GNet.InetAddr inetaddr, GNet.ConnFunc func); - [CCode (cname = "gnet_conn_new_socket", cheader_filename = "gnet.h")] - public static weak GNet.Conn from_socket (GNet.TcpSocket socket, GNet.ConnFunc func); - [CCode (cheader_filename = "gnet.h")] - public static bool http_get (string url, string buffer, ulong length, uint response); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr inetaddr_autodetect_internet_interface (); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr inetaddr_clone (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static void inetaddr_delete (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static void inetaddr_delete_list (GLib.List list); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_equal (void* p1, void* p2); - [CCode (cheader_filename = "gnet.h")] - public static void inetaddr_get_bytes (GNet.InetAddr inetaddr, string buffer); - [CCode (cheader_filename = "gnet.h")] - public static weak string inetaddr_get_canonical_name (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr inetaddr_get_host_addr (); - [CCode (cheader_filename = "gnet.h")] - public static weak string inetaddr_get_host_name (); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr inetaddr_get_interface_to (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr inetaddr_get_internet_interface (); - [CCode (cheader_filename = "gnet.h")] - public static int inetaddr_get_length (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static weak string inetaddr_get_name (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddrGetNameAsyncID inetaddr_get_name_async (GNet.InetAddr inetaddr, GNet.InetAddrGetNameAsyncFunc func, void* data); - [CCode (cheader_filename = "gnet.h")] - public static void inetaddr_get_name_async_cancel (GNet.InetAddrGetNameAsyncID id); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddrGetNameAsyncID inetaddr_get_name_async_full (GNet.InetAddr inetaddr, GNet.InetAddrGetNameAsyncFunc func, void* data, GLib.DestroyNotify notify, GLib.MainContext context, int priority); - [CCode (cheader_filename = "gnet.h")] - public static weak string inetaddr_get_name_nonblock (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static int inetaddr_get_port (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static uint inetaddr_hash (void* p); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_is_broadcast (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_is_canonical (string hostname); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_is_internet (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_is_internet_domainname (string name); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_is_ipv4 (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_is_ipv6 (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_is_loopback (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_is_multicast (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_is_private (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_is_reserved (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static weak GLib.List inetaddr_list_interfaces (); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr inetaddr_new (string hostname, int port); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddrNewAsyncID inetaddr_new_async (string hostname, int port, GNet.InetAddrNewAsyncFunc func, void* data); - [CCode (cheader_filename = "gnet.h")] - public static void inetaddr_new_async_cancel (GNet.InetAddrNewAsyncID id); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddrNewAsyncID inetaddr_new_async_full (string hostname, int port, GNet.InetAddrNewAsyncFunc func, void* data, GLib.DestroyNotify notify, GLib.MainContext context, int priority); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr inetaddr_new_bytes (string bytes, uint length); - [CCode (cheader_filename = "gnet.h")] - public static weak GLib.List inetaddr_new_list (string hostname, int port); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddrNewListAsyncID inetaddr_new_list_async (string hostname, int port, GNet.InetAddrNewListAsyncFunc func, void* data); - [CCode (cheader_filename = "gnet.h")] - public static void inetaddr_new_list_async_cancel (GNet.InetAddrNewListAsyncID id); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddrNewListAsyncID inetaddr_new_list_async_full (string hostname, int port, GNet.InetAddrNewListAsyncFunc func, void* data, GLib.DestroyNotify notify, GLib.MainContext context, int priority); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr inetaddr_new_nonblock (string hostname, int port); - [CCode (cheader_filename = "gnet.h")] - public static bool inetaddr_noport_equal (void* p1, void* p2); - [CCode (cheader_filename = "gnet.h")] - public static void inetaddr_ref (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static void inetaddr_set_bytes (GNet.InetAddr inetaddr, string bytes, int length); - [CCode (cheader_filename = "gnet.h")] - public static void inetaddr_set_port (GNet.InetAddr inetaddr, int port); - [CCode (cheader_filename = "gnet.h")] - public static void inetaddr_unref (GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static void init (); - [CCode (cheader_filename = "gnet.h")] - public static GNet.IOError io_channel_readline (GLib.IOChannel channel, string buffer, ulong length, ulong bytes_readp); - [CCode (cheader_filename = "gnet.h")] - public static GNet.IOError io_channel_readline_strdup (GLib.IOChannel channel, string bufferp, ulong bytes_readp); - [CCode (cheader_filename = "gnet.h")] - public static GNet.IOError io_channel_readn (GLib.IOChannel channel, void* buffer, ulong length, ulong bytes_readp); - [CCode (cheader_filename = "gnet.h")] - public static GNet.IOError io_channel_writen (GLib.IOChannel channel, void* buffer, ulong length, ulong bytes_writtenp); - [CCode (cheader_filename = "gnet.h")] - public static GNet.IPv6Policy ipv6_get_policy (); - [CCode (cheader_filename = "gnet.h")] - public static void ipv6_set_policy (GNet.IPv6Policy policy); - [CCode (cheader_filename = "gnet.h")] - public static void mcast_socket_delete (GNet.McastSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GLib.IOChannel mcast_socket_get_io_channel (GNet.McastSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr mcast_socket_get_local_inetaddr (GNet.McastSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static int mcast_socket_get_ttl (GNet.McastSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static bool mcast_socket_has_packet (GNet.McastSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static int mcast_socket_is_loopback (GNet.McastSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static int mcast_socket_join_group (GNet.McastSocket socket, GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static int mcast_socket_leave_group (GNet.McastSocket socket, GNet.InetAddr inetaddr); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.McastSocket mcast_socket_new (); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.McastSocket mcast_socket_new_full (GNet.InetAddr iface, int port); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.McastSocket mcast_socket_new_with_port (int port); - [CCode (cheader_filename = "gnet.h")] - public static int mcast_socket_receive (GNet.McastSocket socket, string buffer, int length, out weak GNet.InetAddr src); - [CCode (cheader_filename = "gnet.h")] - public static void mcast_socket_ref (GNet.McastSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static int mcast_socket_send (GNet.McastSocket socket, string buffer, int length, GNet.InetAddr dst); - [CCode (cheader_filename = "gnet.h")] - public static int mcast_socket_set_loopback (GNet.McastSocket socket, bool enable); - [CCode (cheader_filename = "gnet.h")] - public static int mcast_socket_set_ttl (GNet.McastSocket socket, int ttl); - [CCode (cheader_filename = "gnet.h")] - public static void mcast_socket_unref (GNet.McastSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.MD5 md5_clone (GNet.MD5 md5); - [CCode (cheader_filename = "gnet.h")] - public static void md5_copy_string (GNet.MD5 md5, string buffer); - [CCode (cheader_filename = "gnet.h")] - public static void md5_delete (GNet.MD5 md5); - [CCode (cheader_filename = "gnet.h")] - public static bool md5_equal (void* p1, void* p2); - [CCode (cheader_filename = "gnet.h")] - public static void md5_final (GNet.MD5 md5); - [CCode (cheader_filename = "gnet.h")] - public static weak string md5_get_digest (GNet.MD5 md5); - [CCode (cheader_filename = "gnet.h")] - public static weak string md5_get_string (GNet.MD5 md5); - [CCode (cheader_filename = "gnet.h")] - public static uint md5_hash (void* p); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.MD5 md5_new (string buffer, uint length); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.MD5 md5_new_incremental (); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.MD5 md5_new_string (string str); - [CCode (cheader_filename = "gnet.h")] - public static void md5_update (GNet.MD5 md5, string buffer, uint length); - [CCode (cheader_filename = "gnet.h")] - public static int pack (string format, string buffer, int length); - [CCode (cheader_filename = "gnet.h")] - public static int pack_strdup (string format, string bufferp); - [CCode (cheader_filename = "gnet.h")] - public static void server_delete (GNet.Server server); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.Server server_new (GNet.InetAddr iface, int port, GNet.ServerFunc func); - [CCode (cheader_filename = "gnet.h")] - public static void server_ref (GNet.Server server); - [CCode (cheader_filename = "gnet.h")] - public static void server_unref (GNet.Server server); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.SHA sha_clone (GNet.SHA sha); - [CCode (cheader_filename = "gnet.h")] - public static void sha_copy_string (GNet.SHA sha, string buffer); - [CCode (cheader_filename = "gnet.h")] - public static void sha_delete (GNet.SHA sha); - [CCode (cheader_filename = "gnet.h")] - public static bool sha_equal (void* p1, void* p2); - [CCode (cheader_filename = "gnet.h")] - public static void sha_final (GNet.SHA sha); - [CCode (cheader_filename = "gnet.h")] - public static weak string sha_get_digest (GNet.SHA sha); - [CCode (cheader_filename = "gnet.h")] - public static weak string sha_get_string (GNet.SHA sha); - [CCode (cheader_filename = "gnet.h")] - public static uint sha_hash (void* p); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.SHA sha_new (string buffer, uint length); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.SHA sha_new_incremental (); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.SHA sha_new_string (string str); - [CCode (cheader_filename = "gnet.h")] - public static void sha_update (GNet.SHA sha, string buffer, uint length); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocket tcp_socket_connect (string hostname, int port); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocketConnectAsyncID tcp_socket_connect_async (string hostname, int port, GNet.TcpSocketConnectAsyncFunc func, void* data); - [CCode (cheader_filename = "gnet.h")] - public static void tcp_socket_connect_async_cancel (GNet.TcpSocketConnectAsyncID id); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocketConnectAsyncID tcp_socket_connect_async_full (string hostname, int port, GNet.TcpSocketConnectAsyncFunc func, void* data, GLib.DestroyNotify notify, GLib.MainContext context, int priority); - [CCode (cheader_filename = "gnet.h")] - public static void tcp_socket_delete (GNet.TcpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GLib.IOChannel tcp_socket_get_io_channel (GNet.TcpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr tcp_socket_get_local_inetaddr (GNet.TcpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static int tcp_socket_get_port (GNet.TcpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr tcp_socket_get_remote_inetaddr (GNet.TcpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocket tcp_socket_new (GNet.InetAddr addr); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocketNewAsyncID tcp_socket_new_async (GNet.InetAddr addr, GNet.TcpSocketNewAsyncFunc func, void* data); - [CCode (cheader_filename = "gnet.h")] - public static void tcp_socket_new_async_cancel (GNet.TcpSocketNewAsyncID id); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocketNewAsyncID tcp_socket_new_async_direct (GNet.InetAddr addr, GNet.TcpSocketNewAsyncFunc func, void* data); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocketNewAsyncID tcp_socket_new_async_direct_full (GNet.InetAddr addr, GNet.TcpSocketNewAsyncFunc func, void* data, GLib.DestroyNotify notify, GLib.MainContext context, int priority); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocketNewAsyncID tcp_socket_new_async_full (GNet.InetAddr addr, GNet.TcpSocketNewAsyncFunc func, void* data, GLib.DestroyNotify notify, GLib.MainContext context, int priority); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocket tcp_socket_new_direct (GNet.InetAddr addr); - [CCode (cheader_filename = "gnet.h")] - public static void tcp_socket_ref (GNet.TcpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocket tcp_socket_server_accept (GNet.TcpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static void tcp_socket_server_accept_async (GNet.TcpSocket socket, GNet.TcpSocketAcceptFunc accept_func); - [CCode (cheader_filename = "gnet.h")] - public static void tcp_socket_server_accept_async_cancel (GNet.TcpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocket tcp_socket_server_accept_nonblock (GNet.TcpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocket tcp_socket_server_new (); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocket tcp_socket_server_new_full (GNet.InetAddr iface, int port); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.TcpSocket tcp_socket_server_new_with_port (int port); - [CCode (cheader_filename = "gnet.h")] - public static void tcp_socket_set_tos (GNet.TcpSocket socket, GNet.NetTOS tos); - [CCode (cheader_filename = "gnet.h")] - public static void tcp_socket_unref (GNet.TcpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static void udp_socket_delete (GNet.UdpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GLib.IOChannel udp_socket_get_io_channel (GNet.UdpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.InetAddr udp_socket_get_local_inetaddr (GNet.UdpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static int udp_socket_get_ttl (GNet.UdpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static bool udp_socket_has_packet (GNet.UdpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.UdpSocket udp_socket_new (); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.UdpSocket udp_socket_new_full (GNet.InetAddr iface, int port); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.UdpSocket udp_socket_new_with_port (int port); - [CCode (cheader_filename = "gnet.h")] - public static int udp_socket_receive (GNet.UdpSocket socket, string buffer, int length, out weak GNet.InetAddr src); - [CCode (cheader_filename = "gnet.h")] - public static void udp_socket_ref (GNet.UdpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static int udp_socket_send (GNet.UdpSocket socket, string buffer, int length, GNet.InetAddr dst); - [CCode (cheader_filename = "gnet.h")] - public static int udp_socket_set_ttl (GNet.UdpSocket socket, int ttl); - [CCode (cheader_filename = "gnet.h")] - public static void udp_socket_unref (GNet.UdpSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static void unix_socket_delete (GNet.UnixSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GLib.IOChannel unix_socket_get_io_channel (GNet.UnixSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak string unix_socket_get_path (GNet.UnixSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.UnixSocket unix_socket_new (string path); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.UnixSocket unix_socket_new_abstract (string path); - [CCode (cheader_filename = "gnet.h")] - public static void unix_socket_ref (GNet.UnixSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.UnixSocket unix_socket_server_accept (GNet.UnixSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.UnixSocket unix_socket_server_accept_nonblock (GNet.UnixSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.UnixSocket unix_socket_server_new (string path); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.UnixSocket unix_socket_server_new_abstract (string path); - [CCode (cheader_filename = "gnet.h")] - public static void unix_socket_unref (GNet.UnixSocket socket); - [CCode (cheader_filename = "gnet.h")] - public static int unpack (string format, string buffer, int length); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.URI uri_clone (GNet.URI uri); - [CCode (cheader_filename = "gnet.h")] - public static void uri_delete (GNet.URI uri); - [CCode (cheader_filename = "gnet.h")] - public static bool uri_equal (void* p1, void* p2); - [CCode (cheader_filename = "gnet.h")] - public static void uri_escape (GNet.URI uri); - [CCode (cheader_filename = "gnet.h")] - public static weak string uri_get_string (GNet.URI uri); - [CCode (cheader_filename = "gnet.h")] - public static uint uri_hash (void* p); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.URI uri_new (string uri); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.URI uri_new_fields (string scheme, string hostname, int port, string path); - [CCode (cheader_filename = "gnet.h")] - public static weak GNet.URI uri_new_fields_all (string scheme, string userinfo, string hostname, int port, string path, string query, string fragment); - [CCode (cheader_filename = "gnet.h")] - public static bool uri_parse_inplace (GNet.URI guri, string uri, string hostname, ulong len); - [CCode (cheader_filename = "gnet.h")] - public static void uri_set_fragment (GNet.URI uri, string fragment); - [CCode (cheader_filename = "gnet.h")] - public static void uri_set_hostname (GNet.URI uri, string hostname); - [CCode (cheader_filename = "gnet.h")] - public static void uri_set_path (GNet.URI uri, string path); - [CCode (cheader_filename = "gnet.h")] - public static void uri_set_port (GNet.URI uri, int port); - [CCode (cheader_filename = "gnet.h")] - public static void uri_set_query (GNet.URI uri, string query); - [CCode (cheader_filename = "gnet.h")] - public static void uri_set_scheme (GNet.URI uri, string scheme); - [CCode (cheader_filename = "gnet.h")] - public static void uri_set_userinfo (GNet.URI uri, string userinfo); - [CCode (cheader_filename = "gnet.h")] - public static void uri_unescape (GNet.URI uri); - [CCode (cheader_filename = "gnet.h")] - public static int vcalcsize (string format, void* args); - [CCode (cheader_filename = "gnet.h")] - public static int vpack (string format, string buffer, int length, void* args); - [CCode (cheader_filename = "gnet.h")] - public static int vunpack (string format, string buffer, int length, void* args); -} diff --git a/vapi/packages/gnet-2.0/gnet-2.0-custom.vala b/vapi/packages/gnet-2.0/gnet-2.0-custom.vala deleted file mode 100644 index 7d03b9235..000000000 --- a/vapi/packages/gnet-2.0/gnet-2.0-custom.vala +++ /dev/null @@ -1,12 +0,0 @@ -[CCode (cprefix = "G")] -namespace GNet { - public struct NetTOS {} - - /* Deprecated glib API */ - public enum IOError { - NONE, - AGAIN, - INVAL, - UNKNOWN - } -} diff --git a/vapi/packages/gnet-2.0/gnet-2.0.files b/vapi/packages/gnet-2.0/gnet-2.0.files deleted file mode 100644 index df2dcc8ec..000000000 --- a/vapi/packages/gnet-2.0/gnet-2.0.files +++ /dev/null @@ -1,3 +0,0 @@ -include/gnet-2.0/ -lib/libgnet-2.0.so - diff --git a/vapi/packages/gnet-2.0/gnet-2.0.gi b/vapi/packages/gnet-2.0/gnet-2.0.gi deleted file mode 100644 index e7bb2f26b..000000000 --- a/vapi/packages/gnet-2.0/gnet-2.0.gi +++ /dev/null @@ -1,1642 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vapi/packages/gnet-2.0/gnet-2.0.metadata b/vapi/packages/gnet-2.0/gnet-2.0.metadata deleted file mode 100644 index 627fccc0f..000000000 --- a/vapi/packages/gnet-2.0/gnet-2.0.metadata +++ /dev/null @@ -1,5 +0,0 @@ -GNet cprefix="Gnet,G" cheader_filename="gnet.h" -gnet_conn_new_inetaddr name="from_inetaddr" -gnet_conn_new_socket name="from_socket" - -G* cprefix="G" diff --git a/vapi/packages/gnet-2.0/gnet-2.0.namespace b/vapi/packages/gnet-2.0/gnet-2.0.namespace deleted file mode 100644 index 72624ab7f..000000000 --- a/vapi/packages/gnet-2.0/gnet-2.0.namespace +++ /dev/null @@ -1 +0,0 @@ -GNet