summaryrefslogtreecommitdiffstats
path: root/src/nfc_osal_deferred_call.h
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2010-09-23 12:47:58 -0700
committerNick Pelly <npelly@google.com>2010-09-23 13:53:18 -0700
commit5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a (patch)
tree190f9251c6db03d3550ec7f30b51a2561c01d9cf /src/nfc_osal_deferred_call.h
parent4ff7c86a2c706b150078274455406f1b04966e1a (diff)
downloadexternal_libnfc-nxp-5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a.zip
external_libnfc-nxp-5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a.tar.gz
external_libnfc-nxp-5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a.tar.bz2
Initial libnfc checkin
Source: Trusted_NFC_Device_Host_AA03.01e02_google.zip code drop (23-Sep-2010) Change-Id: Ie47f18423f949a8d3e0815d13f55c814312add24 Signed-off-by: Nick Pelly <npelly@google.com>
Diffstat (limited to 'src/nfc_osal_deferred_call.h')
-rw-r--r--src/nfc_osal_deferred_call.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/nfc_osal_deferred_call.h b/src/nfc_osal_deferred_call.h
new file mode 100644
index 0000000..08396dc
--- /dev/null
+++ b/src/nfc_osal_deferred_call.h
@@ -0,0 +1,32 @@
+#ifndef __NFC_OSAL_DEFERRED_CALL_H_
+#define __NFC_OSAL_DEFERRED_CALL_H_
+
+/**
+ * \ingroup grp_osal_nfc
+ *\brief Deferred call declaration.
+ * This type of API is called from ClientApplication ( main thread) to notify
+ * specific callback.
+ */
+typedef pphLibNfc_DeferredCallback_t nfc_osal_def_call_t;
+
+/**
+ * \ingroup grp_osal_nfc
+ *\brief Deferred message specific info declaration.
+ * This type information packed as WPARAM when \ref PHOSALNFC_MESSAGE_BASE type
+ *windows message is posted to main thread.
+ */
+typedef phLibNfc_DeferredCall_t nfc_osal_def_call_msg_t;
+
+/**
+ * \ingroup grp_osal_nfc
+ *\brief Deferred call declaration.
+ * This Deferred call post message of type \ref PH_OSALNFC_TIMER_MSG along with
+ * timer specific details.ain thread,which is responsible for timer callback notification
+ * consumes of this message and notifies respctive timer callback.
+ *\note: This API packs upper timer specific callback notification information and post
+ *ref\PHOSALNFC_MESSAGE_BASE to main thread via windows post messaging mechanism.
+ */
+
+void nfc_osal_deferred_call(nfc_osal_def_call_t func, void *param);
+
+#endif \ No newline at end of file