diff options
Diffstat (limited to 'src/hcid.h')
| -rw-r--r-- | src/hcid.h | 29 | 
1 files changed, 1 insertions, 28 deletions
@@ -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 @@ -177,7 +151,6 @@ int delete_entry(bdaddr_t *src, const char *storage, const char *key);  int store_record(const gchar *src, const gchar *dst, sdp_record_t *rec);  sdp_record_t *fetch_record(const gchar *src, const gchar *dst, const uint32_t handle);  int delete_record(const gchar *src, const gchar *dst, const uint32_t handle); -  gboolean plugin_init(GKeyFile *config);  void plugin_cleanup(void);  void __probe_servers(const char *adapter);  | 
