nRF Connect SDK API
3.4.99
Toggle main menu visibility
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
13
14
#include <stdlib.h>
15
#include <zephyr/kernel.h>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
22
struct
nrf_cloud_os_mem_hooks
{
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
38
void
nrf_cloud_os_mem_hooks_init
(
struct
nrf_cloud_os_mem_hooks
*hooks);
39
40
#ifdef __cplusplus
41
}
42
#endif
43
45
46
#endif
/* NRF_CLOUD_OS_H__ */
nrf_cloud_os_mem_hooks_init
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...
nrf_cloud_os_mem_hooks::free_fn
void(* free_fn)(void *ptr)
Definition
nrf_cloud_os.h:25
nrf_cloud_os_mem_hooks
Custom OS memory hooks for nRF Cloud library.
Definition
nrf_cloud_os.h:22
include
net
nrf_cloud_os.h
Generated on
for nRF Connect SDK API by
1.17.0