aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bthci_cmd.h
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2015-05-19 11:55:01 +0200
committerMichal Labedzki <michal.labedzki@tieto.com>2016-06-10 13:50:35 +0000
commit237f2d400669aec77dabfba29c9d4cbbd75d246e (patch)
treeec463009d669f7add0cf46f786d9628da08fa17d /epan/dissectors/packet-bthci_cmd.h
parent2df337d5385ddbb501c11b3d22080060d054436d (diff)
Qt/Bluetooth: Add Device dialog
Device dialog appears when user double clicks on device in Devices dialog (Bluetooth->Devices). It provides summary of device, like BD_ADDR, name, timeouts, etc. Base on information from HCI layer, so this feature is more interesting for local devices (capturing on its side). Each field has changes counter, what mean that value at specified field changes in time, for example: user change device name 3 times. Please note that initial change is not counted. It means that you can see fielkd without any value then change occur and counter is not increased. It will be increased next time. Reason for that is in most cases field value is unknown at start. Change-Id: Ife0a6bd454eac00a28f8eb2906e1b395695b0307 Reviewed-on: https://code.wireshark.org/review/15793 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'epan/dissectors/packet-bthci_cmd.h')
-rw-r--r--epan/dissectors/packet-bthci_cmd.h31
1 files changed, 29 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bthci_cmd.h b/epan/dissectors/packet-bthci_cmd.h
index bcb6c5b7dd..81505c423b 100644
--- a/epan/dissectors/packet-bthci_cmd.h
+++ b/epan/dissectors/packet-bthci_cmd.h
@@ -22,6 +22,10 @@
#ifndef __PACKET_BTHCI_CMD_H__
#define __PACKET_BTHCI_CMD_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
extern value_string_ext bthci_cmd_opcode_vals_ext;
extern value_string_ext bthci_cmd_ogf_vals_ext;
extern value_string_ext bthci_cmd_ocf_link_control_vals_ext;
@@ -44,12 +48,17 @@ extern value_string_ext bthci_cmd_appearance_vals_ext;
extern const value_string bthci_cmd_io_capability_vals[];
extern const value_string bthci_cmd_oob_data_present_vals[];
extern const value_string bthci_cmd_address_types_vals[];
-extern const value_string bthci_cmd_scan_enable_values[];
+WS_DLL_PUBLIC const value_string bthci_cmd_scan_enable_values[];
extern const value_string bthci_cmd_page_scan_modes[];
extern const value_string bthci_cmd_page_scan_repetition_modes[];
extern const value_string bthci_cmd_page_scan_period_modes[];
extern const value_string bthci_cmd_notification_types[];
+WS_DLL_PUBLIC const value_string bthci_cmd_encrypt_mode_vals[];
+WS_DLL_PUBLIC const value_string bthci_cmd_authentication_enable_values[];
+WS_DLL_PUBLIC const value_string bthci_cmd_inq_modes[];
+
+
typedef struct _bthci_cmd_data_t {
guint32 opcode;
@@ -61,12 +70,30 @@ typedef struct _bthci_cmd_data_t {
nstime_t response_abs_ts;
union {
- gchar *name;
+ gchar *name;
+ guint8 scan;
+ guint16 page_timeout;
+ guint8 authentication;
+ guint8 encryption;
+ guint32 class_of_device;
+ guint16 voice_setting;
+ guint8 simple_pairing_mode;
+ guint8 inquiry_mode;
+ struct {
+ guint16 acl_mtu;
+ guint8 sco_mtu;
+ guint16 acl_packets;
+ guint16 sco_packets;
+ } mtus;
} data;
} bthci_cmd_data_t;
extern wmem_tree_t *bthci_cmds;
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif
/*