Crate verilization_bindings_c_api_core[][src]

Defines the C API for use in bindings. Most notably for WebAssembly.

Structs

APIResult

Represents a Result<T, String>. If is_error is true, then the error field of data is inhabited. Otherwise, the value field is inhabited.

APIString

Represents a string with a length followed by the UTF-8 data.

LanguageOption

An option defined by the name of the option and the value.

OutputFileEntry

An output file. Contains the file name and the content.

OutputFileMap

A map of output files.

Functions

verilization_destroy

Destroys a verilization model.

verilization_generate_impl

Generates source to handle a file format defined by a verilizaiton model.

verilization_mem_alloc

Allocates a block of memory.

verilization_mem_free

Free a block of memory.

verilization_parse

Parses verilization source files.

Unions

APIResultPtr

Represents either a value or an error message.