11typedef void regoInterpreter;
13typedef void regoOutput;
14typedef unsigned int regoEnum;
15typedef unsigned char regoBoolean;
16typedef unsigned int regoSize;
21#define REGO_ERROR_BUFFER_TOO_SMALL 2
22#define REGO_ERROR_INVALID_LOG_LEVEL 3
23#define REGO_ERROR_MANUAL_TZDATA_NOT_SUPPORTED 4
26#define REGO_NODE_BINDING 1000
27#define REGO_NODE_VAR 1001
28#define REGO_NODE_TERM 1002
29#define REGO_NODE_SCALAR 1003
30#define REGO_NODE_ARRAY 1004
31#define REGO_NODE_SET 1005
32#define REGO_NODE_OBJECT 1006
33#define REGO_NODE_OBJECT_ITEM 1007
34#define REGO_NODE_INT 1008
35#define REGO_NODE_FLOAT 1009
36#define REGO_NODE_STRING 1010
37#define REGO_NODE_TRUE 1011
38#define REGO_NODE_FALSE 1012
39#define REGO_NODE_NULL 1013
40#define REGO_NODE_UNDEFINED 1014
41#define REGO_NODE_TERMS 1015
42#define REGO_NODE_BINDINGS 1016
43#define REGO_NODE_RESULTS 1017
44#define REGO_NODE_RESULT 1018
46#define REGO_NODE_ERROR 1800
47#define REGO_NODE_ERROR_MESSAGE 1801
48#define REGO_NODE_ERROR_AST 1802
49#define REGO_NODE_ERROR_CODE 1803
50#define REGO_NODE_ERROR_SEQ 1804
52#define REGO_NODE_INTERNAL 1999
55#define REGO_LOG_LEVEL_NONE 0
56#define REGO_LOG_LEVEL_ERROR 1
57#define REGO_LOG_LEVEL_OUTPUT 2
58#define REGO_LOG_LEVEL_WARN 3
59#define REGO_LOG_LEVEL_INFO 4
60#define REGO_LOG_LEVEL_DEBUG 5
61#define REGO_LOG_LEVEL_TRACE 6
164 regoInterpreter*
rego,
const char* name,
const char* contents);
293 regoInterpreter*
rego, regoBoolean enabled);
412 regoOutput* output, regoSize index,
const char* name);
void regoSetStrictBuiltInErrors(regoInterpreter *rego, regoBoolean enabled)
regoNode * regoOutputExpressionsAtIndex(regoOutput *output, regoSize index)
const char * regoOutputString(regoOutput *output)
regoBoolean regoGetDebugEnabled(regoInterpreter *rego)
void regoFreeOutput(regoOutput *output)
void regoFree(regoInterpreter *rego)
regoEnum regoNodeValue(regoNode *node, char *buffer, regoSize size)
void regoSetDebugEnabled(regoInterpreter *rego, regoBoolean enabled)
regoEnum regoSetLogLevelFromString(const char *level)
regoOutput * regoQuery(regoInterpreter *rego, const char *query_expr)
regoEnum regoAddModuleFile(regoInterpreter *rego, const char *path)
regoSize regoNodeValueSize(regoNode *node)
regoNode * regoOutputBinding(regoOutput *output, const char *name)
regoSize regoNodeJSONSize(regoNode *node)
regoNode * regoOutputBindingAtIndex(regoOutput *output, regoSize index, const char *name)
regoEnum regoSetInputTerm(regoInterpreter *rego, const char *contents)
const char * regoNodeTypeName(regoNode *node)
regoEnum regoNodeJSON(regoNode *node, char *buffer, regoSize size)
regoBoolean regoOutputOk(regoOutput *output)
regoEnum regoSetInputJSON(regoInterpreter *rego, const char *contents)
regoEnum regoSetInputJSONFile(regoInterpreter *rego, const char *path)
regoInterpreter * regoNew(void)
const char * regoGetError(regoInterpreter *rego)
regoBoolean regoGetStrictBuiltInErrors(regoInterpreter *rego)
void regoSetWellFormedChecksEnabled(regoInterpreter *rego, regoBoolean enabled)
regoEnum regoSetDebugPath(regoInterpreter *rego, const char *path)
regoEnum regoNodeType(regoNode *node)
regoNode * regoOutputExpressions(regoOutput *output)
regoEnum regoSetTZDataPath(const char *path)
regoEnum regoAddDataJSONFile(regoInterpreter *rego, const char *path)
regoNode * regoOutputNode(regoOutput *output)
regoEnum regoAddModule(regoInterpreter *rego, const char *name, const char *contents)
regoBoolean regoGetWellFormedChecksEnabled(regoInterpreter *rego)
regoInterpreter * regoNewV1(void)
regoEnum regoAddDataJSON(regoInterpreter *rego, const char *contents)
regoEnum regoSetLogLevel(regoEnum level)
regoSize regoOutputSize(regoOutput *output)
regoSize regoNodeSize(regoNode *node)
regoNode * regoNodeGet(regoNode *node, regoSize index)