Commit fdb3f3f7 authored by Bastien Nocera's avatar Bastien Nocera Committed by Germán Poo-Caamaño

libdocument: Add error for supported format with unsupported contents

Add a more precise error code for when a container format is supported
(eg. CBR, CBZ), but the contents is unsupported (eg. WebP images).
parent 275c8cac
......@@ -451,9 +451,10 @@ ev_document_load_full (EvDocument *document,
* On failure, %FALSE is returned and @error is filled in.
* If the document is encrypted, EV_DEFINE_ERROR_ENCRYPTED is returned.
* If the backend cannot load the specific document, EV_DOCUMENT_ERROR_INVALID
* is returned. Other errors are possible too, depending on the backend
* used to load the document and the URI, e.g. #GIOError, #GFileError, and
* #GConvertError.
* is returned. If the backend does not support the format for the document's
* contents, EV_DOCUMENT_ERROR_UNSUPPORTED_CONTENT is returned. Other errors
* are possible too, depending on the backend used to load the document and
* the URI, e.g. #GIOError, #GFileError, and #GConvertError.
*
* Returns: %TRUE on success, or %FALSE on failure.
*/
......
......@@ -62,6 +62,7 @@ typedef enum /*< flags >*/ {
typedef enum
{
EV_DOCUMENT_ERROR_INVALID,
EV_DOCUMENT_ERROR_UNSUPPORTED_CONTENT,
EV_DOCUMENT_ERROR_ENCRYPTED
} EvDocumentError;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment