-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking Changes to Imageflow ABI/FFI interface:
* Modify signature of imageflow_io_create_for_file(context, mode, filename) -> * imageflow_job_io (Remove imageflow_cleanup_with parameter) * Modify signature of imageflow_io_create_from_buffer(context, buffer, buffer_byte_coutn, lifteime) (Remove imageflow_cleanup_with parameter) * Remove CleanupWith enumeration (Just don't reuse contexts much) * Mark imageflow_context_error_code(context) as unstabilized (don't depend on this) * Remove imageflow_context_raise_error (no usage scenario) * Remove imageflow_context_add_to_callstack (no usage scenario) * Remove imageflow_context_clear_error(context) -> void (replaced with try_clear) Improvements to ABI * Add panic recovery to all methods * Add null-parameter checking to all methods * And most-significant-bit checking (for size_t) to all methods * Add imageflow_context_error_as_exit_code(context) -> i32 (and stabilize values) * Add imageflow_context_error_as_http_code(context) -> 32 (and stabilize values) * Add imageflow_context_error_try_clear(context) -> bool * Add imageflow_context_error_recoverable(context) -> bool Changes to c_components * add flow_context_set_error_get_message_buffer_info and flow_context_error_status_included_in_message(c) -> bool * Remove status codes 70,71,72,73 * Add status code 90 (Error reporting inconsistency) * Modify error message serialization (prepend with 'CError %d: [status description]: ', unless status_included_in_message=true - in which case prepend nothing) * Reduce callstack_capacity from 14 to 8 * Move flow_error_info to bottom of flow_context, to improve data locality Continue refactoring codebase to improve error handling and clarity
- Loading branch information
Showing
40 changed files
with
2,070 additions
and
1,679 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.