From 52116dbc660c218a7b45c776cbd4dbd1a47fd2c2 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 15 Aug 2006 01:50:17 +0000 Subject: - renamed variables for clarity - added section to test the new instance tracking in output messages svn path=/trunk/externals/hcs/hid/; revision=5600 --- hid_linux.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'hid_linux.c') diff --git a/hid_linux.c b/hid_linux.c index 93b3b3b..7147dd6 100644 --- a/hid_linux.c +++ b/hid_linux.c @@ -43,14 +43,14 @@ /* LINUX-SPECIFIC SUPPORT FUNCTIONS */ /* ------------------------------------------------------------------------------ */ -/* JMZ: i changed the convert functions (and the get-event function too!) to return - * t_symbol* instead of writing into a fixed-sized buffer (which was way too - * small and those made this object crash) - * in order to change as little lines as possible the callback functions to the - * hid-object still use (char*): so we convert a char[] into a symbol and then - * extract the (char*) out of it to make it a symbol again - * LATER: use t_symbol's all over, since it is very flexible (with respect to length) - * and sooner or later the strings are converted to t_symbol anyhow... +/* JMZ: i changed the convert functions (and the get-event function too!) to + * return t_symbol* instead of writing into a fixed-sized buffer (which was + * way too small and those made this object crash) in order to change as + * little lines as possible the callback functions to the hid-object still use + * (char*): so we convert a char[] into a symbol and then extract the (char*) + * out of it to make it a symbol again LATER: use t_symbol's all over, since + * it is very flexible (with respect to length) and sooner or later the + * strings are converted to t_symbol anyhow... * * Why? bug-fixing */ @@ -510,7 +510,7 @@ t_int get_device_number_by_id(unsigned short vendor_id, unsigned short product_i return -1; } -t_int get_device_number_from_usage_list(t_int device_number, +t_int get_device_number_from_usage(t_int device_number, unsigned short usage_page, unsigned short usage) { -- cgit v1.2.1