nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
cJSON_to_mock.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#include <cJSON.h>
8
9/* This file is needed because cmock's generator cannot parse the original header. */
10
11cJSON *cJSON_CreateArray(void);
12cJSON *cJSON_CreateObject(void);
13cJSON *cJSON_CreateString(const char *string);
14void cJSON_Delete(cJSON *item);
15cJSON *cJSON_DetachItemFromObject(cJSON *object, const char *string);
16int cJSON_GetArraySize(const cJSON *array);
17char *cJSON_PrintUnformatted(const cJSON *item);
18void cJSON_Init(void);
19void cJSON_FreeString(char *ptr);
20cJSON *cJSON_AddStringToObjectCS(cJSON * const object, const char * const name,
21 const char * const string);
22cJSON *cJSON_AddNumberToObjectCS(cJSON * const object, const char * const name,
23 const double number);
24void cJSON_DeleteItemFromObject(cJSON *object, const char *string);
25cJSON *cJSON_AddStringToObject(cJSON * const object, const char * const name,
26 const char * const string);
27cJSON *cJSON_AddObjectToObject(cJSON * const object, const char * const name);
void cJSON_DeleteItemFromObject(cJSON *object, const char *string)
cJSON * cJSON_AddStringToObject(cJSON *const object, const char *const name, const char *const string)
cJSON * cJSON_AddStringToObjectCS(cJSON *const object, const char *const name, const char *const string)
void cJSON_FreeString(char *ptr)
cJSON * cJSON_DetachItemFromObject(cJSON *object, const char *string)
int cJSON_GetArraySize(const cJSON *array)
void cJSON_Init(void)
cJSON * cJSON_AddNumberToObjectCS(cJSON *const object, const char *const name, const double number)
char * cJSON_PrintUnformatted(const cJSON *item)
cJSON * cJSON_CreateString(const char *string)
void cJSON_Delete(cJSON *item)
cJSON * cJSON_CreateArray(void)
cJSON * cJSON_AddObjectToObject(cJSON *const object, const char *const name)
cJSON * cJSON_CreateObject(void)