[gnome-bluetooth] Add video type devices
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Add video type devices
- Date: Thu, 28 Jan 2010 18:02:25 +0000 (UTC)
commit 82e699396bb7ce2702975d32042578fc0ef5b899
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 26 15:47:48 2010 +0000
Add video type devices
lib/bluetooth-client.c | 6 ++++++
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 0d3a568..4bca551 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 0d189b4..aafa65d 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]