| 109 | } artifact_file_error_t; |
| 110 | |
| 111 | static void file_error_clear(artifact_file_error_t *out) { |
| 112 | if (out) { |
| 113 | out->err = NULL; |
| 114 | out->err_no = 0; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | static void file_error_set(artifact_file_error_t *out, const char *err, int err_no) { |
| 119 | if (out) { |