diff options
author | Viktor Mladenovski <viktor.mladenovski@stericsson.com> | 2011-05-20 14:10:59 +0200 |
---|---|---|
committer | Viktor Mladenovski <viktor.mladenovski@stericsson.com> | 2011-05-20 14:10:59 +0200 |
commit | f7e95217e936da34d7124aaced590692eb515923 (patch) | |
tree | 2d9ef4750a67d9d1dd3fe9180a4fef2929fad54b /source/LCM/include/t_queue.h |
Initial contribution of loader_communication
ST-Ericsson ID: 326913
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10204
Change-Id: I171cfc2ee458a8a0a91a1916137d131f0f7ecee5
Diffstat (limited to 'source/LCM/include/t_queue.h')
-rw-r--r-- | source/LCM/include/t_queue.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/source/LCM/include/t_queue.h b/source/LCM/include/t_queue.h new file mode 100644 index 0000000..f6250b6 --- /dev/null +++ b/source/LCM/include/t_queue.h @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (C) ST-Ericsson SA 2011 + * License terms: 3-clause BSD license + ******************************************************************************/ +#ifndef _T_QUEUE_H_ +#define _T_QUEUE_H_ + +/** + * @addtogroup ldr_utilities + * @{ + * @addtogroup queue + * @{ + */ + +/******************************************************************************* + * Includes + ******************************************************************************/ +#include "t_basicdefinitions.h" + +/******************************************************************************* + * Types, constants + ******************************************************************************/ + +/** type of queue callback functions. */ +typedef enum { + QUEUE_EMPTY, + QUEUE_NONEMPTY +} QueueCallbackType_e; + +/** + * Typedef of callback function used for the queue. + * One callback function is used when the fifo is empty, + * and another when the fifo is nonempty. + * These function are set by calling Do_Fifo_SetCallback. + * + * @param [in] Queue_p pointer to a valid queue(One that is created using + * Do_Fifo_Create). + * @param [in] Param_p additional parameters to the function. + * @return None. + */ +typedef void (*QueueCallback_fn)(const void *const Queue_p, void *Param_p); + +/** @} */ +/** @} */ +#endif /*T_QUEUE_H_*/ |