idlc 1.5.14
Interface Definition Language Compiler
|
Functions | |
idl_utf8_t | idl_result_to_string (idl_result_t result) |
Converts error code to descriptive string. | |
idl_uint32_t | idl_version (void) |
Current library version as packed 32-bit value. | |
idl_utf8_t | idl_version_string (void) |
Current library version as human-readable string. | |
Functions of Compilation Result. | |
Functions for opaque type idl_compilation_result_t. | |
idl_compilation_result_t | idl_compilation_result_reference (idl_compilation_result_t compilation_result) |
Increments reference count. | |
void | idl_compilation_result_destroy (idl_compilation_result_t compilation_result) |
Releases compilation result instance. | |
idl_bool_t | idl_compilation_result_has_warnings (idl_compilation_result_t compilation_result) |
Checking if there were warnings. | |
idl_bool_t | idl_compilation_result_has_errors (idl_compilation_result_t compilation_result) |
Checking if there were errors. | |
void | idl_compilation_result_get_messages (idl_compilation_result_t compilation_result, idl_uint32_t *message_count, idl_message_t *messages) |
Returns messages with warnings and errors. | |
Functions of Compiler. | |
Functions for opaque type idl_compiler_t. | |
idl_result_t | idl_compiler_create (idl_compiler_t *compiler) |
Creates new compiler instance. | |
idl_compiler_t | idl_compiler_reference (idl_compiler_t compiler) |
Increments reference count. | |
void | idl_compiler_destroy (idl_compiler_t compiler) |
Releases compiler instance. | |
idl_result_t | idl_compiler_compile (idl_compiler_t compiler, idl_generator_t generator, idl_utf8_t file, idl_uint32_t source_count, const idl_source_t *sources, idl_options_t options, idl_compilation_result_t *result) |
Compile IDL. | |
void idl_compilation_result_destroy | ( | idl_compilation_result_t | compilation_result | ) |
Releases compilation result instance.
Destroys when reference count reaches zero.
[in] | compilation_result | Compilation result to destroy. |
void idl_compilation_result_get_messages | ( | idl_compilation_result_t | compilation_result, |
idl_uint32_t * | message_count, | ||
idl_message_t * | messages ) |
Returns messages with warnings and errors.
Returns messages with warnings and errors that occurred during compilation.
[in] | compilation_result | Target compilation result instance. |
[in,out] | message_count | Number of messages. |
[out] | messages | Message array. |
idl_bool_t idl_compilation_result_has_errors | ( | idl_compilation_result_t | compilation_result | ) |
Checking if there were errors.
Check if there were any errors during compilation.
[in] | compilation_result | Target compilation result instance. |
idl_bool_t idl_compilation_result_has_warnings | ( | idl_compilation_result_t | compilation_result | ) |
Checking if there were warnings.
Check if there were any warnings during compilation.
[in] | compilation_result | Target compilation result instance. |
idl_compilation_result_t idl_compilation_result_reference | ( | idl_compilation_result_t | compilation_result | ) |
Increments reference count.
Manages compilation result instance lifetime.
[in] | compilation_result | Target compilation result instance. |
idl_result_t idl_compiler_compile | ( | idl_compiler_t | compiler, |
idl_generator_t | generator, | ||
idl_utf8_t | file, | ||
idl_uint32_t | source_count, | ||
const idl_source_t * | sources, | ||
idl_options_t | options, | ||
idl_compilation_result_t * | result ) |
Compile IDL.
[in] | compiler | Target compiler. |
[in] | generator | Target of generator. |
[in] | file | Path to .idl file for compile. |
[in] | source_count | Number of sources. |
[in] | sources | Sources. |
[in] | options | Compile options, may be null. |
[out] | result | Compilation result. |
idl_result_t idl_compiler_create | ( | idl_compiler_t * | compiler | ) |
Creates new compiler instance.
Creates an object for IDL compilation.
[out] | compiler | New compiler instance. |
void idl_compiler_destroy | ( | idl_compiler_t | compiler | ) |
Releases compiler instance.
Destroys when reference count reaches zero.
[in] | compiler | Compiler to destroy. |
idl_compiler_t idl_compiler_reference | ( | idl_compiler_t | compiler | ) |
Increments reference count.
Manages compiler instance lifetime.
[in] | compiler | Target compiler instance. |
idl_result_t idl_options_create | ( | idl_options_t * | options | ) |
Creates new options instance.
Creates an object for setting compiler options.
[out] | options | New options instance. |
void idl_options_destroy | ( | idl_options_t | options | ) |
Releases options instance.
Destroys when reference count reaches zero.
[in] | options | Options to destroy. |
void idl_options_get_additions | ( | idl_options_t | options, |
idl_uint32_t * | addition_count, | ||
idl_utf8_t * | additions ) |
Get additional parameters.
Returns an array of additional parameters.
[in] | options | Target options. |
[in,out] | addition_count | Number of additions. |
[out] | additions | Additions. |
idl_bool_t idl_options_get_debug_mode | ( | idl_options_t | options | ) |
Get debug mode.
Return TRUE is debug mode enabled.
[in] | options | Target options. |
void idl_options_get_import_dirs | ( | idl_options_t | options, |
idl_uint32_t * | dir_count, | ||
idl_utf8_t * | dirs ) |
Returns an array of directories to search for imports.
These paths are used to search source code when an import is encountered during compilation.
[in] | options | Target options. |
[in,out] | dir_count | Number of directories. |
[out] | dirs | Import directories. |
idl_import_callback_t idl_options_get_importer | ( | idl_options_t | options, |
idl_data_t * | data ) |
Get the current import callback.
Returns a callback if one has been configured.
[in] | options | Target options. |
[out] | data | Returning a callback user data pointer (may be null). |
idl_utf8_t idl_options_get_output_dir | ( | idl_options_t | options | ) |
Get output directory.
Returns the path that the compiler will use to save compilation output.
[in] | options | Target options. |
idl_release_import_callback_t idl_options_get_release_import | ( | idl_options_t | options, |
idl_data_t * | data ) |
Get the current release import callback.
Callback for releasing sources allocated via idl_options_set_importer.
[in] | options | Target options. |
[out] | data | Returning a callback user data pointer (may be null). |
const idl_api_version_t * idl_options_get_version | ( | idl_options_t | options | ) |
Get api version.
Returns the API version or null.
[in] | options | Target options. |
idl_bool_t idl_options_get_warnings_as_errors | ( | idl_options_t | options | ) |
Get warning handling setting.
Return TRUE if warnings are treated as errors.
[in] | options | Target options. |
idl_write_callback_t idl_options_get_writer | ( | idl_options_t | options, |
idl_data_t * | data ) |
Get the current write callback.
Returns a callback if one has been configured.
[in] | options | Target options. |
[out] | data | Returning a callback user data pointer (may be null). |
idl_options_t idl_options_reference | ( | idl_options_t | options | ) |
Increments reference count.
Manages options instance lifetime.
[in] | options | Target options instance. |
void idl_options_set_additions | ( | idl_options_t | options, |
idl_uint32_t | addition_count, | ||
const idl_utf8_t * | additions ) |
Set additional parameters.
Sets additional parameters specific to the generator (idl_generator_t).
[in] | options | Target options. |
[in] | addition_count | Number of additions. |
[in] | additions | Additions. |
+docgroup
to add Doxygen groups;void idl_options_set_debug_mode | ( | idl_options_t | options, |
idl_bool_t | enable ) |
Set debug mode.
Setting debug compilation output to console.
[in] | options | Target options. |
[in] | enable | Enable debug. |
void idl_options_set_import_dirs | ( | idl_options_t | options, |
idl_uint32_t | dir_count, | ||
const idl_utf8_t * | dirs ) |
Configures directories to search for source files.
These paths are used to search source code when an import is encountered during compilation.
[in] | options | Target options. |
[in] | dir_count | Number of directories. |
[in] | dirs | Import directories. |
void idl_options_set_importer | ( | idl_options_t | options, |
idl_import_callback_t | callback, | ||
idl_data_t | data ) |
Set import callback.
Used to resolve code sources, such as when the compiler encounters imports.
[in] | options | Target options. |
[in] | callback | Callback function. |
[in] | data | Callback user data. |
void idl_options_set_output_dir | ( | idl_options_t | options, |
idl_utf8_t | dir ) |
Set output directory.
Configure the path that the compiler will use to save compilation output.
[in] | options | Target options. |
[in] | dir | Directory path. |
void idl_options_set_release_import | ( | idl_options_t | options, |
idl_release_import_callback_t | callback, | ||
idl_data_t | data ) |
Set release import callback.
If the callback set in idl_options_set_importer allocates data on the heap or creates any resources, they can be freed by the callback set here.
[in] | options | Target options. |
[in] | callback | Callback function. |
[in] | data | Callback user data. |
void idl_options_set_version | ( | idl_options_t | options, |
const idl_api_version_t * | version ) |
Set api version.
Sets the API version that will be saved in the compiler output.
[in] | options | Target options. |
[in] | version | Api version. |
[version(major,minor,micro)]
attribute (sample: api Sample [version(2,3,1)]
). If the api does not have a version attribute specified, then the version will be taken as 0.0.0
. void idl_options_set_warnings_as_errors | ( | idl_options_t | options, |
idl_bool_t | enable ) |
Set warning handling setting.
Setting treat warnings as errors.
[in] | options | Target options. |
[in] | enable | Enable treat warnings as errors. |
void idl_options_set_writer | ( | idl_options_t | options, |
idl_write_callback_t | callback, | ||
idl_data_t | data ) |
Set write callback.
Configures a callback to receive compiler output. If the callback is set, no output will be made to the file system (idl_options_set_output_dir will also not be used).
[in] | options | Target options. |
[in] | callback | Callback function. |
[in] | data | Callback user data. |
idl_utf8_t idl_result_to_string | ( | idl_result_t | result | ) |
Converts error code to descriptive string.
Provides a text description for the result code.
[in] | result | Result code. |
idl_uint32_t idl_version | ( | void | ) |
Current library version as packed 32-bit value.
Format: (major << 16) | (minor << 8) | micro.
idl_utf8_t idl_version_string | ( | void | ) |
Current library version as human-readable string.
Format: "major.minor.micro", eg: "1.5.14".