diff options
| author | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2026-01-12 19:04:08 +0000 |
|---|---|---|
| committer | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2026-01-12 19:06:14 +0000 |
| commit | 916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015 (patch) | |
| tree | 1d9d89b5e8cb2d330c03cfdec07e81fb64fa9e75 /include/ql.h | |
| parent | a8c1c1f01c0443e5ed884316da618634c7aebe93 (diff) | |
| download | qlprint-916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015.tar.gz qlprint-916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015.tar.xz qlprint-916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015.zip | |
Improve error code formattingfixes
For text output, allocate exactly the right buffer size.
For JSON output, return error codes as an array, not just a
concatinated text string.
Diffstat (limited to 'include/ql.h')
| -rw-r--r-- | include/ql.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ql.h b/include/ql.h index e1e2b11..bb4dcb6 100644 --- a/include/ql.h +++ b/include/ql.h @@ -149,7 +149,7 @@ bool ql_print_raster_image(ql_ctx_t ctx, const ql_status_t * status, // Caution: ql_decode_*() are *not* multi-thread safe const char *ql_decode_mode(const ql_status_t * status); -const char *ql_decode_errors(const ql_status_t * status); +const char *ql_decode_errors_human(const ql_status_t * status); const char *ql_decode_model(const ql_status_t * status); const char *ql_decode_media_type(const ql_status_t * status); #define QL_DECODE_MODEL 0x01 |
