Functions | |
cucul_buffer_t * | cucul_export_canvas (cucul_canvas_t *, char const *) |
Export a canvas into a foreign format. | |
char const *const * | cucul_get_export_list (void) |
Get available export formats. | |
cucul_canvas_t * | cucul_import_canvas (cucul_buffer_t *, char const *) |
Import a buffer into a canvas. | |
char const *const * | cucul_get_import_list (void) |
Get available import formats. |
|
This function exports a libcucul canvas into various foreign formats such as ANSI art, HTML, IRC colours, etc. One should use cucul_get_buffer_data() and cucul_get_buffer_size() to access the buffer contents. The allocated data is valid until cucul_free_buffer() is called.
Valid values for
If an error occurs, NULL is returned and errno is set accordingly:
|
|
Return a list of available export formats. The list is a NULL-terminated array of strings, interleaving a string containing the internal value for the export format, to be used with cucul_export_canvas(), and a string containing the natural language description for that export format. This function never fails.
|
|
This function imports a libcucul buffer as returned by cucul_load_memory() or cucul_load_file() into an internal libcucul canvas.
Valid values for
If an error occurs, NULL is returned and errno is set accordingly:
|
|
Return a list of available import formats. The list is a NULL-terminated array of strings, interleaving a string containing the internal value for the import format, to be used with cucul_import_canvas(), and a string containing the natural language description for that import format. This function never fails.
|