IoT managed integrations End Device SDK
Loading...
Searching...
No Matches
iotmi_pal_SyncQueue.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
3 *
4 * AMAZON PROPRIETARY/CONFIDENTIAL
5 *
6 * You may not use this file except in compliance with the terms and
7 * conditions set forth in the accompanying LICENSE.txt file.
8 *
9 * THESE MATERIALS ARE PROVIDED ON AN "AS IS" BASIS. AMAZON SPECIFICALLY
10 * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,
11 * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,
12 * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
13 */
14
20#ifndef IOTMI_PAL_SYNCQUEUE_H_
21#define IOTMI_PAL_SYNCQUEUE_H_
22
23#include <stdbool.h>
24#include <stdint.h>
25#include <stdlib.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
34struct iotmiPal_SyncQueue;
35typedef struct iotmiPal_SyncQueue* iotmiPal_SyncQueueHandle_t;
36
46iotmiPal_SyncQueueHandle_t iotmiPal_syncQueueCreate(uint32_t numberOfQueueItems,
47 size_t queueItemSize);
48
55void iotmiPal_syncQueueDelete(iotmiPal_SyncQueueHandle_t syncQueueHandle);
56
66bool iotmiPal_syncQueueSend(iotmiPal_SyncQueueHandle_t syncQueueHandle,
67 void* pQueueItemToSend, uint32_t blockTimeMs);
68
79bool iotmiPal_syncQueueReceive(iotmiPal_SyncQueueHandle_t syncQueueHandle,
80 void* pvBuffer, uint32_t blockTimeMs);
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif /* ifndef IOTMI_PAL_SYNCQUEUE_H_ */
bool iotmiPal_syncQueueSend(iotmiPal_SyncQueueHandle_t syncQueueHandle, void *pQueueItemToSend, uint32_t blockTimeMs)
Platform queue send API.
bool iotmiPal_syncQueueReceive(iotmiPal_SyncQueueHandle_t syncQueueHandle, void *pvBuffer, uint32_t blockTimeMs)
Platform queue receive API.
iotmiPal_SyncQueueHandle_t iotmiPal_syncQueueCreate(uint32_t numberOfQueueItems, size_t queueItemSize)
Platform queue create API.
void iotmiPal_syncQueueDelete(iotmiPal_SyncQueueHandle_t syncQueueHandle)
Platform queue delete API.