Structs§
- Copperlace
Processor Result - Opaque C ABI result handle passed to custom processor callbacks.
- Copperlace
Rule Set - Opaque C ABI handle for a compiled Copperlace ruleset.
Constants§
- COPPERLACE_
INVALID_ ARGUMENT - Status code for invalid C ABI arguments such as null required pointers.
- COPPERLACE_
OK - Status code for a successful C ABI call.
- COPPERLACE_
PARSE_ ERROR - Status code for config loading, parsing, or compilation failures.
- COPPERLACE_
RENDER_ ERROR - Status code for rule rendering failures.
Functions§
- copperlace_
processor_ ⚠result_ set_ error - Sets the error for a custom processor callback result.
- copperlace_
processor_ ⚠result_ set_ output - Sets the output for a custom processor callback result.
- copperlace_
ruleset_ ⚠free - Releases a ruleset handle returned by the C ABI.
- copperlace_
ruleset_ ⚠from_ file - Loads a configuration file and returns an opaque ruleset handle.
- copperlace_
ruleset_ ⚠from_ file_ with_ processors - Loads a configuration file and returns a ruleset handle with custom processors.
- copperlace_
ruleset_ ⚠from_ string - Compiles a configuration string and returns an opaque ruleset handle.
- copperlace_
ruleset_ ⚠from_ string_ with_ processors - Compiles a configuration string and returns a ruleset handle with custom processors.
- copperlace_
ruleset_ ⚠render - Renders a named rule from a ruleset handle.
- copperlace_
ruleset_ ⚠render_ inferred - Renders a named rule, inferring formatted structured JSON for object-valued rules.
- copperlace_
ruleset_ ⚠render_ inferred_ with_ context - Renders a named rule with initial context, inferring formatted structured JSON for object-valued rules.
- copperlace_
ruleset_ ⚠render_ structured_ json - Renders a named structured rule from a ruleset handle as JSON text.
- copperlace_
ruleset_ ⚠render_ structured_ json_ with_ context - Renders a named structured rule from a ruleset handle with initial context.
- copperlace_
ruleset_ ⚠render_ with_ context - Renders a named rule from a ruleset handle with initial context values.
- copperlace_
string_ ⚠free - Releases a string returned by the C ABI.
Type Aliases§
- Copperlace
Processor Callback - Host callback used by custom C ABI processors.