Cthulhu  0.2.10
Cthulhu compiler collection
query.h File Reference
#include "core/analyze.h"
#include "json/json.h"
#include <stdbool.h>
Include dependency graph for query.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef typedefCT_BEGIN_API struct json_t json_t
 

Functions

CT_JSON_API json_tjson_query (json_t *json, const char *query, logger_t *logger, arena_t *arena)
 query a json object More...
 
CT_JSON_API json_tjson_query_type (json_t *json, const char *query, json_kind_t kind, logger_t *logger, arena_t *arena)
 query a json object and ensure it is of a specific type More...
 

Typedef Documentation

◆ json_t

typedef struct json_t json_t

Definition at line 10 of file query.h.

Function Documentation

◆ json_query()

CT_JSON_API json_t* json_query ( json_t json,
const char *  query,
logger_t logger,
arena_t arena 
)

query a json object

Parameters
jsonthe object to query
querythe query to perform
loggerthe logger to use
arenathe arena to use
Returns
the result of the query

Definition at line 109 of file query.c.

◆ json_query_type()

CT_JSON_API json_t* json_query_type ( json_t json,
const char *  query,
json_kind_t  kind,
logger_t logger,
arena_t arena 
)

query a json object and ensure it is of a specific type

Parameters
jsonthe object to query
querythe query to perform
kindthe kind of json value to expect
loggerthe logger to use
arenathe arena to use
Returns
the result of the query

Definition at line 115 of file query.c.