diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2012-12-04 15:24:49 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2012-12-04 15:24:49 +1300 |
commit | c9759cfd8c6b7803277bd5feb657a79fe8ddc66e (patch) | |
tree | e8aeccc063cd41673ce9a12a0358c18ac0c7a61f /src/gnome-bluetooth-1.0.vapi | |
parent | de247720b4c7261d96dd99edd42f5ea898ab09b5 (diff) | |
download | ayatana-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.vapi | 59 |
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); + +} |