Now some error reporting has been implemented.
However, it needs improving.
The current plan is to introduce stream error type (hidrd_strm_err) from which to derive specific errors (like hidrd_xml_snk_err or hidrd_natv_src_err).
Such error type should have a method to format a user-readable message.
The dynamically allocated instances of these errors should be returned from any relevant source/sink instance calls.
NULL should be returned if there is no error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Now some error reporting has been implemented.
However, it needs improving.
The current plan is to introduce stream error type (hidrd_strm_err) from which to derive specific errors (like hidrd_xml_snk_err or hidrd_natv_src_err).
Such error type should have a method to format a user-readable message.
The dynamically allocated instances of these errors should be returned from any relevant source/sink instance calls.
NULL should be returned if there is no error.