summaryrefslogtreecommitdiffstats
path: root/hcid/hcid.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-02-11 11:11:21 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-02-11 11:11:21 +0000
commitdfc20857eb381b464b8fd6efdaac59e4a15f5d6d (patch)
tree573b3ef091cc61d5b81cd17605669641a49d4709 /hcid/hcid.h
parent518bb944173c2036486b25a764966bd738bb5ecf (diff)
Add basic device functions
Diffstat (limited to 'hcid/hcid.h')
-rw-r--r--hcid/hcid.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/hcid/hcid.h b/hcid/hcid.h
index 064ee8c3..1f98c5a6 100644
--- a/hcid/hcid.h
+++ b/hcid/hcid.h
@@ -147,6 +147,18 @@ static inline void hcid_dbus_setname_complete(bdaddr_t *local) {}
static inline void hcid_dbus_setscan_enable_complete(bdaddr_t *local) {}
#endif
+void init_devices(void);
+int add_device(uint16_t dev_id);
+int remove_device(uint16_t dev_id);
+int start_device(uint16_t dev_id);
+int stop_device(uint16_t dev_id);
+
+int get_device_address(uint16_t dev_id, char *address, size_t size);
+int get_device_version(uint16_t dev_id, char *version, size_t size);
+int get_device_revision(uint16_t dev_id, char *revision, size_t size);
+int get_device_manufacturer(uint16_t dev_id, char *manufacturer, size_t size);
+int get_device_company(uint16_t dev_id, char *company, size_t size);
+
int write_device_name(bdaddr_t *local, bdaddr_t *peer, char *name);
int read_device_name(bdaddr_t *local, bdaddr_t *peer, char *name);
int write_version_info(bdaddr_t *local, bdaddr_t *peer, uint16_t manufacturer, uint8_t lmp_ver, uint16_t lmp_subver);