FreeRDP
json.h File Reference
#include <winpr/winpr.h>
#include <winpr/string.h>
#include <winpr/wtypes.h>
This graph shows which files directly or indirectly include this file:

Typedefs

typedef void WINPR_JSON
 

Functions

WINPR_API int WINPR_JSON_version (char *buffer, size_t len)
 
WINPR_API WINPR_JSONWINPR_JSON_Parse (const char *value)
 
WINPR_API WINPR_JSONWINPR_JSON_ParseWithLength (const char *value, size_t buffer_length)
 
WINPR_API void WINPR_JSON_Delete (WINPR_JSON *item)
 
WINPR_API size_t WINPR_JSON_GetArraySize (const WINPR_JSON *array)
 
WINPR_API WINPR_JSONWINPR_JSON_GetArrayItem (const WINPR_JSON *array, size_t index)
 
WINPR_API WINPR_JSONWINPR_JSON_GetObjectItem (const WINPR_JSON *object, const char *string)
 
WINPR_API WINPR_JSONWINPR_JSON_GetObjectItemCaseSensitive (const WINPR_JSON *object, const char *string)
 
WINPR_API BOOL WINPR_JSON_HasObjectItem (const WINPR_JSON *object, const char *string)
 
WINPR_API const char * WINPR_JSON_GetErrorPtr (void)
 
WINPR_API const char * WINPR_JSON_GetStringValue (WINPR_JSON *item)
 
WINPR_API double WINPR_JSON_GetNumberValue (const WINPR_JSON *item)
 
WINPR_API BOOL WINPR_JSON_IsInvalid (const WINPR_JSON *item)
 
WINPR_API BOOL WINPR_JSON_IsFalse (const WINPR_JSON *item)
 
WINPR_API BOOL WINPR_JSON_IsTrue (const WINPR_JSON *item)
 
WINPR_API BOOL WINPR_JSON_IsBool (const WINPR_JSON *item)
 
WINPR_API BOOL WINPR_JSON_IsNull (const WINPR_JSON *item)
 
WINPR_API BOOL WINPR_JSON_IsNumber (const WINPR_JSON *item)
 
WINPR_API BOOL WINPR_JSON_IsString (const WINPR_JSON *item)
 
WINPR_API BOOL WINPR_JSON_IsArray (const WINPR_JSON *item)
 
WINPR_API BOOL WINPR_JSON_IsObject (const WINPR_JSON *item)
 
WINPR_API WINPR_JSONWINPR_JSON_CreateNull (void)
 
WINPR_API WINPR_JSONWINPR_JSON_CreateTrue (void)
 
WINPR_API WINPR_JSONWINPR_JSON_CreateFalse (void)
 
WINPR_API WINPR_JSONWINPR_JSON_CreateBool (BOOL boolean)
 
WINPR_API WINPR_JSONWINPR_JSON_CreateNumber (double num)
 
WINPR_API WINPR_JSONWINPR_JSON_CreateString (const char *string)
 
WINPR_API WINPR_JSONWINPR_JSON_CreateArray (void)
 
WINPR_API WINPR_JSONWINPR_JSON_CreateObject (void)
 
WINPR_API WINPR_JSONWINPR_JSON_AddNullToObject (WINPR_JSON *object, const char *name)
 
WINPR_API WINPR_JSONWINPR_JSON_AddTrueToObject (WINPR_JSON *object, const char *name)
 
WINPR_API WINPR_JSONWINPR_JSON_AddFalseToObject (WINPR_JSON *object, const char *name)
 
WINPR_API WINPR_JSONWINPR_JSON_AddBoolToObject (WINPR_JSON *object, const char *name, BOOL boolean)
 
WINPR_API WINPR_JSONWINPR_JSON_AddNumberToObject (WINPR_JSON *object, const char *name, double number)
 
WINPR_API WINPR_JSONWINPR_JSON_AddStringToObject (WINPR_JSON *object, const char *name, const char *string)
 
WINPR_API WINPR_JSONWINPR_JSON_AddObjectToObject (WINPR_JSON *object, const char *name)
 
WINPR_API WINPR_JSONWINPR_JSON_AddArrayToObject (WINPR_JSON *object, const char *name)
 
WINPR_API BOOL WINPR_JSON_AddItemToArray (WINPR_JSON *array, WINPR_JSON *item)
 
WINPR_API char * WINPR_JSON_Print (WINPR_JSON *item)
 
WINPR_API char * WINPR_JSON_PrintUnformatted (WINPR_JSON *item)
 

Typedef Documentation

◆ WINPR_JSON

typedef void WINPR_JSON

FreeRDP: A Remote Desktop Protocol Implementation JSON parser wrapper

Copyright 2024 Armin Novak anova.nosp@m.k@th.nosp@m.incas.nosp@m.t.co.nosp@m.m Copyright 2024 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ WINPR_JSON_AddArrayToObject()

WINPR_API WINPR_JSON* WINPR_JSON_AddArrayToObject ( WINPR_JSON object,
const char *  name 
)

◆ WINPR_JSON_AddBoolToObject()

WINPR_API WINPR_JSON* WINPR_JSON_AddBoolToObject ( WINPR_JSON object,
const char *  name,
BOOL  boolean 
)

◆ WINPR_JSON_AddFalseToObject()

WINPR_API WINPR_JSON* WINPR_JSON_AddFalseToObject ( WINPR_JSON object,
const char *  name 
)

◆ WINPR_JSON_AddItemToArray()

WINPR_API BOOL WINPR_JSON_AddItemToArray ( WINPR_JSON array,
WINPR_JSON item 
)

◆ WINPR_JSON_AddNullToObject()

WINPR_API WINPR_JSON* WINPR_JSON_AddNullToObject ( WINPR_JSON object,
const char *  name 
)

◆ WINPR_JSON_AddNumberToObject()

WINPR_API WINPR_JSON* WINPR_JSON_AddNumberToObject ( WINPR_JSON object,
const char *  name,
double  number 
)

◆ WINPR_JSON_AddObjectToObject()

WINPR_API WINPR_JSON* WINPR_JSON_AddObjectToObject ( WINPR_JSON object,
const char *  name 
)

◆ WINPR_JSON_AddStringToObject()

WINPR_API WINPR_JSON* WINPR_JSON_AddStringToObject ( WINPR_JSON object,
const char *  name,
const char *  string 
)

◆ WINPR_JSON_AddTrueToObject()

WINPR_API WINPR_JSON* WINPR_JSON_AddTrueToObject ( WINPR_JSON object,
const char *  name 
)

◆ WINPR_JSON_CreateArray()

WINPR_API WINPR_JSON* WINPR_JSON_CreateArray ( void  )

◆ WINPR_JSON_CreateBool()

WINPR_API WINPR_JSON* WINPR_JSON_CreateBool ( BOOL  boolean)

◆ WINPR_JSON_CreateFalse()

WINPR_API WINPR_JSON* WINPR_JSON_CreateFalse ( void  )

◆ WINPR_JSON_CreateNull()

WINPR_API WINPR_JSON* WINPR_JSON_CreateNull ( void  )

◆ WINPR_JSON_CreateNumber()

WINPR_API WINPR_JSON* WINPR_JSON_CreateNumber ( double  num)

◆ WINPR_JSON_CreateObject()

WINPR_API WINPR_JSON* WINPR_JSON_CreateObject ( void  )
Here is the caller graph for this function:

◆ WINPR_JSON_CreateString()

WINPR_API WINPR_JSON* WINPR_JSON_CreateString ( const char *  string)

◆ WINPR_JSON_CreateTrue()

WINPR_API WINPR_JSON* WINPR_JSON_CreateTrue ( void  )

◆ WINPR_JSON_Delete()

WINPR_API void WINPR_JSON_Delete ( WINPR_JSON item)
Here is the caller graph for this function:

◆ WINPR_JSON_GetArrayItem()

WINPR_API WINPR_JSON* WINPR_JSON_GetArrayItem ( const WINPR_JSON array,
size_t  index 
)
Here is the caller graph for this function:

◆ WINPR_JSON_GetArraySize()

WINPR_API size_t WINPR_JSON_GetArraySize ( const WINPR_JSON array)
Here is the caller graph for this function:

◆ WINPR_JSON_GetErrorPtr()

WINPR_API const char* WINPR_JSON_GetErrorPtr ( void  )

◆ WINPR_JSON_GetNumberValue()

WINPR_API double WINPR_JSON_GetNumberValue ( const WINPR_JSON item)
Here is the caller graph for this function:

◆ WINPR_JSON_GetObjectItem()

WINPR_API WINPR_JSON* WINPR_JSON_GetObjectItem ( const WINPR_JSON object,
const char *  string 
)
Here is the caller graph for this function:

◆ WINPR_JSON_GetObjectItemCaseSensitive()

WINPR_API WINPR_JSON* WINPR_JSON_GetObjectItemCaseSensitive ( const WINPR_JSON object,
const char *  string 
)

◆ WINPR_JSON_GetStringValue()

WINPR_API const char* WINPR_JSON_GetStringValue ( WINPR_JSON item)

◆ WINPR_JSON_HasObjectItem()

WINPR_API BOOL WINPR_JSON_HasObjectItem ( const WINPR_JSON object,
const char *  string 
)

◆ WINPR_JSON_IsArray()

WINPR_API BOOL WINPR_JSON_IsArray ( const WINPR_JSON item)
Here is the caller graph for this function:

◆ WINPR_JSON_IsBool()

WINPR_API BOOL WINPR_JSON_IsBool ( const WINPR_JSON item)
Here is the caller graph for this function:

◆ WINPR_JSON_IsFalse()

WINPR_API BOOL WINPR_JSON_IsFalse ( const WINPR_JSON item)

◆ WINPR_JSON_IsInvalid()

WINPR_API BOOL WINPR_JSON_IsInvalid ( const WINPR_JSON item)
Here is the call graph for this function:

◆ WINPR_JSON_IsNull()

WINPR_API BOOL WINPR_JSON_IsNull ( const WINPR_JSON item)
Here is the caller graph for this function:

◆ WINPR_JSON_IsNumber()

WINPR_API BOOL WINPR_JSON_IsNumber ( const WINPR_JSON item)
Here is the caller graph for this function:

◆ WINPR_JSON_IsObject()

WINPR_API BOOL WINPR_JSON_IsObject ( const WINPR_JSON item)
Here is the caller graph for this function:

◆ WINPR_JSON_IsString()

WINPR_API BOOL WINPR_JSON_IsString ( const WINPR_JSON item)
Here is the caller graph for this function:

◆ WINPR_JSON_IsTrue()

WINPR_API BOOL WINPR_JSON_IsTrue ( const WINPR_JSON item)
Here is the caller graph for this function:

◆ WINPR_JSON_Parse()

WINPR_API WINPR_JSON* WINPR_JSON_Parse ( const char *  value)
Here is the call graph for this function:

◆ WINPR_JSON_ParseWithLength()

WINPR_API WINPR_JSON* WINPR_JSON_ParseWithLength ( const char *  value,
size_t  buffer_length 
)
Here is the call graph for this function:

◆ WINPR_JSON_Print()

WINPR_API char* WINPR_JSON_Print ( WINPR_JSON item)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WINPR_JSON_PrintUnformatted()

WINPR_API char* WINPR_JSON_PrintUnformatted ( WINPR_JSON item)
Here is the call graph for this function:

◆ WINPR_JSON_version()

WINPR_API int WINPR_JSON_version ( char *  buffer,
size_t  len 
)

FreeRDP: A Remote Desktop Protocol Implementation JSON parser wrapper

Copyright 2024 Armin Novak anova.nosp@m.k@th.nosp@m.incas.nosp@m.t.co.nosp@m.m Copyright 2024 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.