diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-01-26 15:47:48 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2010-01-28 16:00:45 +0000 |
commit | 82e699396bb7ce2702975d32042578fc0ef5b899 (patch) | |
tree | a04532853b37e1bc90e1fb25be65098ea2523f31 /lib | |
parent | aa0e36ab9c5b032a9d8cb8d7072eaf827c541988 (diff) | |
download | gnome-bluetooth-82e699396bb7ce2702975d32042578fc0ef5b899.tar.gz |
Add video type devices
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bluetooth-client.c | 6 | ||||
-rw-r--r-- | lib/bluetooth-enums.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c index 0d3a5684..4bca5516 100644 --- a/lib/bluetooth-client.c +++ b/lib/bluetooth-client.c @@ -152,6 +152,8 @@ const gchar *bluetooth_type_to_string(BluetoothType type) return _("Joypad"); case BLUETOOTH_TYPE_TABLET: return _("Tablet"); + case BLUETOOTH_TYPE_VIDEO: + return _("Video device"); default: return _("Unknown"); } @@ -223,6 +225,10 @@ bluetooth_class_to_type (guint32 class) return BLUETOOTH_TYPE_HEADSET; case 0x06: return BLUETOOTH_TYPE_HEADPHONES; + case 0x0b: /* VCR */ + case 0x0c: /* Video Camera */ + case 0x0d: /* Camcorder */ + return BLUETOOTH_TYPE_VIDEO; default: return BLUETOOTH_TYPE_OTHER_AUDIO; } diff --git a/lib/bluetooth-enums.h b/lib/bluetooth-enums.h index 0d189b40..aafa65d7 100644 --- a/lib/bluetooth-enums.h +++ b/lib/bluetooth-enums.h @@ -90,9 +90,10 @@ typedef enum { BLUETOOTH_TYPE_PRINTER = 1 << 11, BLUETOOTH_TYPE_JOYPAD = 1 << 12, BLUETOOTH_TYPE_TABLET = 1 << 13, + BLUETOOTH_TYPE_VIDEO = 1 << 14, } BluetoothType; -#define _BLUETOOTH_TYPE_NUM_TYPES 14 +#define _BLUETOOTH_TYPE_NUM_TYPES 15 #define BLUETOOTH_TYPE_INPUT (BLUETOOTH_TYPE_KEYBOARD | BLUETOOTH_TYPE_MOUSE | BLUETOOTH_TYPE_TABLET | BLUETOOTH_TYPE_JOYPAD) #define BLUETOOTH_TYPE_AUDIO (BLUETOOTH_TYPE_HEADSET | BLUETOOTH_TYPE_HEADPHONES | BLUETOOTH_TYPE_OTHER_AUDIO) |