[vala/staging: 5/5] vapi: Add libgeoclue-2.0 bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 5/5] vapi: Add libgeoclue-2.0 bindings
- Date: Sun, 18 Mar 2018 22:48:04 +0000 (UTC)
commit bd6f5d7e19e3bca15420d7101018e3b66d0f169d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Mar 15 21:26:38 2018 +0100
vapi: Add libgeoclue-2.0 bindings
https://bugzilla.gnome.org/show_bug.cgi?id=794376
vapi/Makefile.am | 6 ++
vapi/libgeoclue-2.0.deps | 1 +
vapi/libgeoclue-2.0.vapi | 154 ++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 161 insertions(+), 0 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index db994e1..e90e381 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -200,6 +200,8 @@ dist_vapi_DATA = \
libgda-report-4.0.vapi \
libgda-4.0.deps \
libgda-4.0.vapi \
+ libgeoclue-2.0.vapi \
+ libgeoclue-2.0.deps \
libglade-2.0.deps \
libglade-2.0.vapi \
libgnome-2.0.vapi \
@@ -433,6 +435,7 @@ GIR_BINDINGS = \
gudev-1.0 \
javascriptcoregtk-4.0 \
json-glib-1.0 \
+ libgeoclue-2.0 \
libgnome-menu-3.0 \
libgrss \
libnotify \
@@ -735,6 +738,9 @@ libgda-4.0:
libgda-report-4.0:
$(GENVAPI) --library $(srcdir)/libgda-report-4.0 $(PACKAGESDIR)/libgda-report-4.0/libgda-report-4.0.gi
+libgeoclue-2.0:
+ $(GENVAPI) --library $(srcdir)/libgeoclue-2.0 --pkg gio-2.0 --metadatadir $(METADATADIR)
$(GIRDIR)/Geoclue-2.0.gir
+
libglade-2.0:
$(GENVAPI) --library $(srcdir)/libglade-2.0 $(PACKAGESDIR)/libglade-2.0/libglade-2.0.gi
diff --git a/vapi/libgeoclue-2.0.deps b/vapi/libgeoclue-2.0.deps
new file mode 100644
index 0000000..cd10dfd
--- /dev/null
+++ b/vapi/libgeoclue-2.0.deps
@@ -0,0 +1 @@
+gio-2.0
diff --git a/vapi/libgeoclue-2.0.vapi b/vapi/libgeoclue-2.0.vapi
new file mode 100644
index 0000000..e3fda94
--- /dev/null
+++ b/vapi/libgeoclue-2.0.vapi
@@ -0,0 +1,154 @@
+/* libgeoclue-2.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "GClue", gir_namespace = "Geoclue", gir_version = "2.0", lower_case_cprefix = "gclue_")]
+namespace GClue {
+ [CCode (cheader_filename = "geoclue.h", type_id = "gclue_client_proxy_get_type ()")]
+ public class ClientProxy : GLib.DBusProxy, GClue.Client, GLib.AsyncInitable, GLib.DBusInterface,
GLib.Initable {
+ [CCode (cname = "gclue_client_proxy_new", has_construct_function = false)]
+ public async ClientProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string?
name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
+ public static async GClue.ClientProxy create (string desktop_id, GClue.AccuracyLevel
accuracy_level, GLib.Cancellable? cancellable) throws GLib.Error;
+ public static GClue.ClientProxy create_sync (string desktop_id, GClue.AccuracyLevel
accuracy_level, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [CCode (cname = "gclue_client_proxy_new_for_bus", has_construct_function = false)]
+ public async ClientProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string
name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
+ [CCode (has_construct_function = false, type = "GClueClient*")]
+ public ClientProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string
name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [CCode (has_construct_function = false, type = "GClueClient*")]
+ public ClientProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string?
name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ }
+ [CCode (cheader_filename = "geoclue.h", type_id = "gclue_client_skeleton_get_type ()")]
+ public class ClientSkeleton : GLib.DBusInterfaceSkeleton, GClue.Client, GLib.DBusInterface {
+ [CCode (has_construct_function = false, type = "GClueClient*")]
+ public ClientSkeleton ();
+ }
+ [CCode (cheader_filename = "geoclue.h", type_id = "gclue_location_proxy_get_type ()")]
+ public class LocationProxy : GLib.DBusProxy, GClue.Location, GLib.AsyncInitable, GLib.DBusInterface,
GLib.Initable {
+ [CCode (cname = "gclue_location_proxy_new", has_construct_function = false)]
+ public async LocationProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags,
string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
+ [CCode (cname = "gclue_location_proxy_new_for_bus", has_construct_function = false)]
+ public async LocationProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string
name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
+ [CCode (has_construct_function = false, type = "GClueLocation*")]
+ public LocationProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string
name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [CCode (has_construct_function = false, type = "GClueLocation*")]
+ public LocationProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string?
name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ }
+ [CCode (cheader_filename = "geoclue.h", type_id = "gclue_location_skeleton_get_type ()")]
+ public class LocationSkeleton : GLib.DBusInterfaceSkeleton, GClue.Location, GLib.DBusInterface {
+ [CCode (has_construct_function = false, type = "GClueLocation*")]
+ public LocationSkeleton ();
+ }
+ [CCode (cheader_filename = "geoclue.h", type_id = "gclue_manager_proxy_get_type ()")]
+ public class ManagerProxy : GLib.DBusProxy, GClue.Manager, GLib.AsyncInitable, GLib.DBusInterface,
GLib.Initable {
+ [CCode (cname = "gclue_manager_proxy_new", has_construct_function = false)]
+ public async ManagerProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string?
name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
+ [CCode (cname = "gclue_manager_proxy_new_for_bus", has_construct_function = false)]
+ public async ManagerProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string
name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error;
+ [CCode (has_construct_function = false, type = "GClueManager*")]
+ public ManagerProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string
name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [CCode (has_construct_function = false, type = "GClueManager*")]
+ public ManagerProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string?
name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ }
+ [CCode (cheader_filename = "geoclue.h", type_id = "gclue_manager_skeleton_get_type ()")]
+ public class ManagerSkeleton : GLib.DBusInterfaceSkeleton, GClue.Manager, GLib.DBusInterface {
+ [CCode (has_construct_function = false, type = "GClueManager*")]
+ public ManagerSkeleton ();
+ }
+ [CCode (cheader_filename = "geoclue.h", type_id = "gclue_simple_get_type ()")]
+ public class Simple : GLib.Object, GLib.AsyncInitable {
+ [CCode (cname = "gclue_simple_new", has_construct_function = false)]
+ public async Simple (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable?
cancellable) throws GLib.Error;
+ public unowned GClue.ClientProxy get_client ();
+ public unowned GClue.LocationProxy get_location ();
+ [CCode (has_construct_function = false)]
+ public Simple.sync (string desktop_id, GClue.AccuracyLevel accuracy_level, GLib.Cancellable?
cancellable = null) throws GLib.Error;
+ public GClue.ClientProxy client { get; }
+ [NoAccessorMethod]
+ public string desktop_id { construct; }
+ public GClue.LocationProxy location { get; }
+ }
+ [CCode (cheader_filename = "geoclue.h", type_id = "gclue_client_get_type ()")]
+ public interface Client : GLib.Object {
+ public async bool call_start (GLib.Cancellable? cancellable) throws GLib.Error;
+ public bool call_start_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
+ public async bool call_stop (GLib.Cancellable? cancellable) throws GLib.Error;
+ public bool call_stop_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
+ public void complete_start (owned GLib.DBusMethodInvocation invocation);
+ public void complete_stop (owned GLib.DBusMethodInvocation invocation);
+ public void emit_location_updated (string arg_old, string arg_new);
+ public static unowned GLib.DBusInterfaceInfo interface_info ();
+ public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin);
+ [NoAccessorMethod]
+ public abstract bool active { get; set; }
+ [NoAccessorMethod]
+ public abstract string desktop_id { owned get; set; }
+ [NoAccessorMethod]
+ public abstract uint distance_threshold { get; set; }
+ [NoAccessorMethod]
+ public abstract string location { owned get; set; }
+ [NoAccessorMethod]
+ public abstract uint requested_accuracy_level { get; set; }
+ [NoAccessorMethod]
+ public abstract uint time_threshold { get; set; }
+ public virtual signal bool handle_start (GLib.DBusMethodInvocation invocation);
+ public virtual signal bool handle_stop (GLib.DBusMethodInvocation invocation);
+ public virtual signal void location_updated (string arg_old, string arg_new);
+ }
+ [CCode (cheader_filename = "geoclue.h", type_id = "gclue_location_get_type ()")]
+ public interface Location : GLib.Object {
+ public static unowned GLib.DBusInterfaceInfo interface_info ();
+ public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin);
+ [NoAccessorMethod]
+ public abstract double accuracy { get; set; }
+ [NoAccessorMethod]
+ public abstract double altitude { get; set; }
+ [NoAccessorMethod]
+ public abstract string description { owned get; set; }
+ [NoAccessorMethod]
+ public abstract double heading { get; set; }
+ [NoAccessorMethod]
+ public abstract double latitude { get; set; }
+ [NoAccessorMethod]
+ public abstract double longitude { get; set; }
+ [NoAccessorMethod]
+ public abstract double speed { get; set; }
+ [NoAccessorMethod]
+ public abstract GLib.Variant timestamp { owned get; set; }
+ }
+ [CCode (cheader_filename = "geoclue.h", type_id = "gclue_manager_get_type ()")]
+ public interface Manager : GLib.Object {
+ public async bool call_add_agent (string arg_id, GLib.Cancellable? cancellable) throws
GLib.Error;
+ public bool call_add_agent_sync (string arg_id, GLib.Cancellable? cancellable = null) throws
GLib.Error;
+ public async bool call_get_client (GLib.Cancellable? cancellable, out string out_client)
throws GLib.Error;
+ public bool call_get_client_sync (out string out_client, GLib.Cancellable? cancellable =
null) throws GLib.Error;
+ public void complete_add_agent (owned GLib.DBusMethodInvocation invocation);
+ public void complete_get_client (owned GLib.DBusMethodInvocation invocation, string client);
+ public static unowned GLib.DBusInterfaceInfo interface_info ();
+ public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin);
+ [NoAccessorMethod]
+ public abstract uint available_accuracy_level { get; set; }
+ [NoAccessorMethod]
+ public abstract bool in_use { get; set; }
+ public virtual signal bool handle_add_agent (GLib.DBusMethodInvocation invocation, string
arg_id);
+ public virtual signal bool handle_get_client (GLib.DBusMethodInvocation invocation);
+ }
+ [CCode (cheader_filename = "geoclue.h", cprefix = "GCLUE_ACCURACY_LEVEL_", has_type_id = false)]
+ public enum AccuracyLevel {
+ NONE,
+ COUNTRY,
+ CITY,
+ NEIGHBORHOOD,
+ STREET,
+ EXACT
+ }
+ [CCode (cheader_filename = "geoclue.h")]
+ public static unowned GLib.DBusInterfaceInfo client_interface_info ();
+ [CCode (cheader_filename = "geoclue.h")]
+ public static uint client_override_properties (GLib.ObjectClass klass, uint property_id_begin);
+ [CCode (cheader_filename = "geoclue.h")]
+ public static unowned GLib.DBusInterfaceInfo location_interface_info ();
+ [CCode (cheader_filename = "geoclue.h")]
+ public static uint location_override_properties (GLib.ObjectClass klass, uint property_id_begin);
+ [CCode (cheader_filename = "geoclue.h")]
+ public static unowned GLib.DBusInterfaceInfo manager_interface_info ();
+ [CCode (cheader_filename = "geoclue.h")]
+ public static uint manager_override_properties (GLib.ObjectClass klass, uint property_id_begin);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]