summaryrefslogtreecommitdiffstats
path: root/hcid/hcid.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-04-18 21:01:11 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-04-18 21:01:11 +0000
commit9575f385006817d43cdd5bacadd0b37f2e02bc9a (patch)
tree085331c32733f1a84acb52815696170819c13a46 /hcid/hcid.h
parentd168dc64106e440a149718436e63912b18e0064e (diff)
Added HCI cmds queue to retrieve remote infos
Diffstat (limited to 'hcid/hcid.h')
-rw-r--r--hcid/hcid.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/hcid/hcid.h b/hcid/hcid.h
index 2f5d74c1..066f9358 100644
--- a/hcid/hcid.h
+++ b/hcid/hcid.h
@@ -84,6 +84,26 @@ struct hcid_opts {
};
extern struct hcid_opts hcid;
+typedef enum {
+ REQ_PENDING,
+ REQ_SENT
+} req_status_t;
+
+struct hci_req_data {
+ int dev_id;
+ int event;
+ req_status_t status;
+ bdaddr_t dba;
+ uint16_t ogf;
+ uint16_t ocf;
+ void *cparam;
+ int clen;
+};
+
+struct hci_req_data *hci_req_data_new(int dev_id, const bdaddr_t *dba, uint16_t ogf, uint16_t ocf, int event, const void *cparam, int clen);
+void hci_req_queue_append(struct hci_req_data *data);
+void hci_req_queue_remove(int dev_id, bdaddr_t *dba);
+
#define HCID_SEC_NONE 0
#define HCID_SEC_AUTO 1
#define HCID_SEC_USER 2