OSDN Git Service

emulator: Add skeleton for LE meta event handler in bthost
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 19 Sep 2013 18:31:05 +0000 (21:31 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 19 Sep 2013 18:39:10 +0000 (21:39 +0300)
emulator/bthost.c

index ae274b4..e80a1f4 100644 (file)
@@ -546,6 +546,20 @@ static void evt_num_completed_packets(struct bthost *bthost, const void *data,
                return;
 }
 
+static void evt_le_meta_event(struct bthost *bthost, const void *data,
+                                                               uint8_t len)
+{
+       const uint8_t *event = data;
+
+       if (len < 1)
+               return;
+
+       switch (*event) {
+       default:
+               break;
+       }
+}
+
 static void process_evt(struct bthost *bthost, const void *data, uint16_t len)
 {
        const struct bt_hci_evt_hdr *hdr = data;
@@ -584,6 +598,10 @@ static void process_evt(struct bthost *bthost, const void *data, uint16_t len)
                evt_num_completed_packets(bthost, param, hdr->plen);
                break;
 
+       case BT_HCI_EVT_LE_META_EVENT:
+               evt_le_meta_event(bthost, param, hdr->plen);
+               break;
+
        default:
                printf("Unsupported event 0x%2.2x\n", hdr->evt);
                break;