summaryrefslogtreecommitdiffstats
path: root/src/hcid.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-08-26 13:59:06 -0300
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-08-26 13:59:06 -0300
commit730775d1226a30c37ff551955f093ddfcd18e600 (patch)
tree639d2aa51463f10a5394cfb732bc0d4506aa658b /src/hcid.h
parent978342ab9d2a5175ff9a8e5469abdea75ed1442a (diff)
Cleanup: unnecessary includes and defines, moved some declarations
Diffstat (limited to 'src/hcid.h')
-rw-r--r--src/hcid.h28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/hcid.h b/src/hcid.h
index a367c201..fa62c706 100644
--- a/src/hcid.h
+++ b/src/hcid.h
@@ -23,19 +23,10 @@
*
*/
-#include <time.h>
-#include <sys/types.h>
-
-#include <glib.h>
-
#include <bluetooth/bluetooth.h>
#include <bluetooth/sdp.h>
#include <bluetooth/hci.h>
-#include "logging.h"
-
-#define HCID_CONFIG_FILE CONFIGDIR "/hcid.conf"
-
#define HCID_DEFAULT_DISCOVERABLE_TIMEOUT 180 /* 3 minutes */
/* When all services should trust a remote device */
@@ -100,26 +91,9 @@ struct hcid_opts {
int sock;
};
-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;
-};
+extern struct hcid_opts hcid;
-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_OFFMODE_DEVDOWN 0