From dca27172b0f27fd121ee43a7cc62176a84b44fc5 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 17 Feb 2011 11:05:48 +0100 Subject: Add functions to extract number of frames and slots Signed-off-by: Henrik Rydberg --- include/utouch/frame.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/utouch/frame.h') diff --git a/include/utouch/frame.h b/include/utouch/frame.h index 60195ef..318ce4b 100644 --- a/include/utouch/frame.h +++ b/include/utouch/frame.h @@ -189,6 +189,20 @@ struct utouch_frame { */ unsigned int utouch_frame_get_version(void); +/** + * utouch_frame_get_num_frames - get number of supported frames + * + * Returns the number of frames supported by this engine. + */ +unsigned int utouch_frame_get_num_frames(utouch_frame_handle fh); + +/** + * utouch_frame_get_num_slots - get number of supported slots + * + * Returns the number of simultaneous contacts supported by this engine. + */ +unsigned int utouch_frame_get_num_slots(utouch_frame_handle fh); + utouch_frame_handle utouch_frame_new_engine_raw(unsigned int num_frames, unsigned int num_slots, unsigned int frame_rate, -- cgit v1.2.3