nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
nrf_cloud_os.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef NRF_CLOUD_OS_H__
8#define NRF_CLOUD_OS_H__
9
14#include <stdlib.h>
15#include <zephyr/kernel.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
23 void *(*malloc_fn)(size_t size);
24 void *(*calloc_fn)(size_t count, size_t size);
25 void (*free_fn)(void *ptr);
26};
27
39
40#ifdef __cplusplus
41}
42#endif
43
46#endif /* NRF_CLOUD_OS_H__ */
void nrf_cloud_os_mem_hooks_init(struct nrf_cloud_os_mem_hooks *hooks)
Initialize the used OS memory hooks. As a default, nRF Cloud library uses OS kernel heap memory (in o...
void(* free_fn)(void *ptr)
Definition nrf_cloud_os.h:25
Custom OS memory hooks for nRF Cloud library.
Definition nrf_cloud_os.h:22