diff options
author | Nick Pelly <npelly@google.com> | 2010-09-23 12:47:58 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2010-09-23 13:53:18 -0700 |
commit | 5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a (patch) | |
tree | 190f9251c6db03d3550ec7f30b51a2561c01d9cf /src/phDal4Nfc_DeferredCall.h | |
parent | 4ff7c86a2c706b150078274455406f1b04966e1a (diff) | |
download | external_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/phDal4Nfc_DeferredCall.h')
-rw-r--r-- | src/phDal4Nfc_DeferredCall.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/phDal4Nfc_DeferredCall.h b/src/phDal4Nfc_DeferredCall.h new file mode 100644 index 0000000..19d5722 --- /dev/null +++ b/src/phDal4Nfc_DeferredCall.h @@ -0,0 +1,41 @@ +#ifndef PHDAL4NFC_DEFERREDCALL_H +#define PHDAL4NFC_DEFERREDCALL_H + +#ifdef PH_NFC_CUSTOMINTEGRATION +#include <phNfcCustomInt.h> +#else + +#ifdef _DAL_4_NFC_C +#define _ext_ +#else +#define _ext_ extern +#endif + +typedef pphLibNfc_DeferredCallback_t pphDal4Nfc_Deferred_Call_t; + +typedef phLibNfc_DeferredCall_t phDal4Nfc_DeferredCall_Msg_t; + +#ifndef WIN32 + +#ifdef USE_MQ_MESSAGE_QUEUE +#include <mqueue.h> +#define MQ_NAME_IDENTIFIER "/nfc_queue" + +_ext_ const struct mq_attr MQ_QUEUE_ATTRIBUTES +#ifdef _DAL_4_NFC_C + = { 0, /* flags */ + 10, /* max number of messages on queue */ + sizeof(phDal4Nfc_DeferredCall_Msg_t), /* max message size in bytes */ + 0 /* number of messages currently in the queue */ + } +#endif +; +#endif + +#endif + +void phDal4Nfc_DeferredCall(pphDal4Nfc_Deferred_Call_t func, void *param); +#endif +#endif + + |