Nick Pelly | 5d9927b | 2010-09-23 12:47:58 -0700 | [diff] [blame] | 1 | #ifndef PHDAL4NFC_DEFERREDCALL_H |
| 2 | #define PHDAL4NFC_DEFERREDCALL_H |
| 3 | |
| 4 | #ifdef PH_NFC_CUSTOMINTEGRATION |
| 5 | #include <phNfcCustomInt.h> |
| 6 | #else |
| 7 | |
| 8 | #ifdef _DAL_4_NFC_C |
| 9 | #define _ext_ |
| 10 | #else |
| 11 | #define _ext_ extern |
| 12 | #endif |
| 13 | |
| 14 | typedef pphLibNfc_DeferredCallback_t pphDal4Nfc_Deferred_Call_t; |
| 15 | |
| 16 | typedef phLibNfc_DeferredCall_t phDal4Nfc_DeferredCall_Msg_t; |
| 17 | |
| 18 | #ifndef WIN32 |
| 19 | |
| 20 | #ifdef USE_MQ_MESSAGE_QUEUE |
| 21 | #include <mqueue.h> |
| 22 | #define MQ_NAME_IDENTIFIER "/nfc_queue" |
| 23 | |
| 24 | _ext_ const struct mq_attr MQ_QUEUE_ATTRIBUTES |
| 25 | #ifdef _DAL_4_NFC_C |
| 26 | = { 0, /* flags */ |
| 27 | 10, /* max number of messages on queue */ |
| 28 | sizeof(phDal4Nfc_DeferredCall_Msg_t), /* max message size in bytes */ |
| 29 | 0 /* number of messages currently in the queue */ |
| 30 | } |
| 31 | #endif |
| 32 | ; |
| 33 | #endif |
| 34 | |
| 35 | #endif |
| 36 | |
| 37 | void phDal4Nfc_DeferredCall(pphDal4Nfc_Deferred_Call_t func, void *param); |
| 38 | #endif |
| 39 | #endif |
| 40 | |
| 41 | |