From 034b5a03e6ac38d3ed8023614bd2ce2985901b27 Mon Sep 17 00:00:00 2001 From: Erik Johansson Date: Sat, 17 Mar 2012 18:55:44 +0100 Subject: [PATCH] Document TDRawDeviceEvent --- telldus-core/client/telldus-core.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/telldus-core/client/telldus-core.cpp b/telldus-core/client/telldus-core.cpp index f665d618..e4bb8e07 100644 --- a/telldus-core/client/telldus-core.cpp +++ b/telldus-core/client/telldus-core.cpp @@ -230,8 +230,19 @@ using namespace TelldusCore; * * @typedef TDRawDeviceEvent * The callback type for raw events. + * + * @attention The callback will be called by another thread than the thread + * used by the application and some measures must be taken to synchronize it + * with the main thread. + * + * @param data Raw device data. + * @param controllerId Id of receiving controller. + * @param callbackId The id of the callback. + * @param context The pointer passed when registering for the event. + * * @sa tdRegisterRawDeviceEvent * + * * @typedef TDSensorEvent * The callback type for sensor events. * @sa tdRegisterSensorEvent