summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth/bthidd/bthid_config.h
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2006-09-07 21:47:49 +0000
committeremax <emax@FreeBSD.org>2006-09-07 21:47:49 +0000
commit0a0c0e69a8b3191ef395c191f4667746e8f79f90 (patch)
tree2d993bc06bdf62dbb75a647125df678ab96cd3be /usr.sbin/bluetooth/bthidd/bthid_config.h
parentd04edc5790dab1504a82e507350c255aac246f8b (diff)
downloadFreeBSD-src-0a0c0e69a8b3191ef395c191f4667746e8f79f90.zip
FreeBSD-src-0a0c0e69a8b3191ef395c191f4667746e8f79f90.tar.gz
Update bthidd(8) code and hook it up to the build.
bthidd(8) now was integrated with vkbd(4) and supports multiple keyboards via vkbd(4)/kbdmux(4). The code was tested with Apple Bluetooth keyboard and SE k700i cell phone (remote control feature). MFC after: 1 month
Diffstat (limited to 'usr.sbin/bluetooth/bthidd/bthid_config.h')
-rw-r--r--usr.sbin/bluetooth/bthidd/bthid_config.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/usr.sbin/bluetooth/bthidd/bthid_config.h b/usr.sbin/bluetooth/bthidd/bthid_config.h
index 6be7c7e..71cb425 100644
--- a/usr.sbin/bluetooth/bthidd/bthid_config.h
+++ b/usr.sbin/bluetooth/bthidd/bthid_config.h
@@ -1,7 +1,9 @@
/*
* bthid_config.h
- *
- * Copyright (c) 2004 Maksim Yevmenkin <m_evmenkin@yahoo.com>
+ */
+
+/*-
+ * Copyright (c) 2006 Maksim Yevmenkin <m_evmenkin@yahoo.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -25,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bthid_config.h,v 1.3 2004/02/17 22:05:02 max Exp $
+ * $Id: bthid_config.h,v 1.4 2006/09/07 21:06:53 max Exp $
* $FreeBSD$
*/
@@ -44,24 +46,25 @@ struct hid_device
unsigned reconnect_initiate : 1;
unsigned battery_power : 1;
unsigned normally_connectable : 1;
- unsigned reserved : 12;
+ unsigned keyboard : 1;
+ unsigned reserved : 11;
report_desc_t desc; /* HID report descriptor */
LIST_ENTRY(hid_device) next; /* link to the next */
};
typedef struct hid_device hid_device_t;
typedef struct hid_device * hid_device_p;
-extern char *config_file;
-extern char *hids_file;
+extern char const *config_file;
+extern char const *hids_file;
-int read_config_file (void);
+int32_t read_config_file (void);
void clean_config (void);
hid_device_p get_hid_device (bdaddr_p bdaddr);
hid_device_p get_next_hid_device (hid_device_p d);
void print_hid_device (hid_device_p hid_device, FILE *f);
-int read_hids_file (void);
-int write_hids_file (void);
+int32_t read_hids_file (void);
+int32_t write_hids_file (void);
#endif /* ndef _BTHID_CONFIG_H_ */
OpenPOWER on IntegriCloud