aboutsummaryrefslogtreecommitdiff
path: root/src/gnome-bluetooth-1.0.vapi
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2012-12-04 15:24:49 +1300
committerRobert Ancell <robert.ancell@canonical.com>2012-12-04 15:24:49 +1300
commitc9759cfd8c6b7803277bd5feb657a79fe8ddc66e (patch)
treee8aeccc063cd41673ce9a12a0358c18ac0c7a61f /src/gnome-bluetooth-1.0.vapi
parentde247720b4c7261d96dd99edd42f5ea898ab09b5 (diff)
downloadayatana-indicator-bluetooth-c9759cfd8c6b7803277bd5feb657a79fe8ddc66e.tar.gz
ayatana-indicator-bluetooth-c9759cfd8c6b7803277bd5feb657a79fe8ddc66e.tar.bz2
ayatana-indicator-bluetooth-c9759cfd8c6b7803277bd5feb657a79fe8ddc66e.zip
Use GnomeBluetooth instead of bluez directly
Diffstat (limited to 'src/gnome-bluetooth-1.0.vapi')
-rw-r--r--src/gnome-bluetooth-1.0.vapi59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/gnome-bluetooth-1.0.vapi b/src/gnome-bluetooth-1.0.vapi
new file mode 100644
index 0000000..ac60bf0
--- /dev/null
+++ b/src/gnome-bluetooth-1.0.vapi
@@ -0,0 +1,59 @@
+[CCode (cprefix = "Bluetooth", lower_case_cprefix = "bluetooth_")]
+namespace GnomeBluetooth
+{
+
+[CCode (cheader_filename = "bluetooth-client.h")]
+public class Client : GLib.Object
+{
+ public Client ();
+ public Gtk.TreeModel model { get; }
+}
+
+[CCode (cheader_filename = "bluetooth-enums.h", cprefix = "BLUETOOTH_COLUMN_")]
+public enum Column
+{
+ PROXY,
+ ADDRESS,
+ ALIAS,
+ NAME,
+ TYPE,
+ ICON,
+ DEFAULT,
+ PAIRED,
+ TRUSTED,
+ CONNECTED,
+ DISCOVERABLE,
+ DISCOVERING,
+ LEGACYPAIRING,
+ POWERED,
+ SERVICES,
+ UUIDS
+}
+
+[CCode (cheader_filename = "bluetooth-enums.h", cprefix = "BLUETOOTH_TYPE_")]
+public enum Type
+{
+ ANY,
+ PHONE,
+ MODEM,
+ COMPUTER,
+ NETWORK,
+ HEADSET,
+ HEADPHONES,
+ OTHER_AUDIO,
+ KEYBOARD,
+ MOUSE,
+ CAMERA,
+ PRINTER,
+ JOYPAD,
+ TABLET,
+ VIDEO
+}
+
+[CCode (cheader_filename = "bluetooth-utils.h")]
+public void browse_address (GLib.Object? object, string address, uint timestamp, GLib.AsyncReadyCallback? callback);
+
+[CCode (cheader_filename = "bluetooth-utils.h")]
+public void send_to_address (string address, string alias);
+
+}