aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/glib_fixes.vapi
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-11-22 20:06:50 +0100
committerfiaxh <git@mx.ax.lt>2017-11-23 01:28:29 +0100
commit9165c4db278b2d3da636d53e89c3b80cff66977f (patch)
tree84f227a12389ec2b3c3c7a578f913bc763760b53 /xmpp-vala/src/glib_fixes.vapi
parentde133218dab0ac1729dbfc32177979133c15f53b (diff)
downloaddino-9165c4db278b2d3da636d53e89c3b80cff66977f.tar.gz
dino-9165c4db278b2d3da636d53e89c3b80cff66977f.zip
Async service lookup, connect and write
Diffstat (limited to 'xmpp-vala/src/glib_fixes.vapi')
-rw-r--r--xmpp-vala/src/glib_fixes.vapi42
1 files changed, 42 insertions, 0 deletions
diff --git a/xmpp-vala/src/glib_fixes.vapi b/xmpp-vala/src/glib_fixes.vapi
new file mode 100644
index 00000000..9d31fba1
--- /dev/null
+++ b/xmpp-vala/src/glib_fixes.vapi
@@ -0,0 +1,42 @@
+[CCode (cprefix = "G", gir_namespace = "Gio", gir_version = "2.0", lower_case_cprefix = "g_")]
+namespace GLibFixes {
+
+ [CCode (cheader_filename = "gio/gio.h", type_id = "g_resolver_get_type ()")]
+ public class Resolver : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected Resolver();
+
+ [Version (since = "2.22")]
+ public static Resolver get_default();
+
+ [Version (since = "2.22")]
+ public virtual string lookup_by_address(GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error ;
+
+ [Version (since = "2.22")]
+ public virtual async string lookup_by_address_async(GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error ;
+
+ [Version (since = "2.22")]
+ public virtual GLib.List<GLib.InetAddress> lookup_by_name(string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error ;
+
+ [Version (since = "2.22")]
+ public virtual async GLib.List<GLib.InetAddress> lookup_by_name_async(string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error ;
+
+ [Version (since = "2.34")]
+ public virtual GLib.List<GLib.Variant> lookup_records(string rrname, GLib.ResolverRecordType record_type, GLib.Cancellable? cancellable = null) throws GLib.Error ;
+
+ [Version (since = "2.34")]
+ public virtual async GLib.List<GLib.Variant> lookup_records_async(string rrname, GLib.ResolverRecordType record_type, GLib.Cancellable? cancellable = null) throws GLib.Error ;
+
+ [Version (since = "2.22")]
+ public virtual GLib.List<GLib.SrvTarget> lookup_service(string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error ;
+
+ [CCode (finish_vfunc_name = "lookup_service_finish", vfunc_name = "lookup_service_async")]
+ public async GLib.List<GLib.SrvTarget> lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
+
+ [Version (since = "2.22")]
+ public void set_default();
+
+ public virtual signal void reload ();
+ }
+
+}