Blorb Errors

Blorb Errors — Error codes returned by the Blorb layer functions

Types and Values

Includes

#include <libchimara/glk.h>
#include <libchimara/gi-blorb.h>

Description

All Blorb layer functions, including giblorb_set_resource_map(), return the following error codes.

Functions

Types and Values

giblorb_err_t

typedef glui32 giblorb_err_t;

An integer type that can hold the Blorb error codes.


giblorb_err_None

#define giblorb_err_None (0)

No error.


giblorb_err_CompileTime

#define giblorb_err_CompileTime (1)

Something is compiled wrong in the Blorb layer.


giblorb_err_Alloc

#define giblorb_err_Alloc (2)

Memory could not be allocated.

Chimara

The Blorb layer in the Chimara library should not return this error code; instead, the program aborts if memory allocation fails, in keeping with GLib practices.


giblorb_err_Read

#define giblorb_err_Read (3)

Data could not be read from the file.


giblorb_err_NotAMap

#define giblorb_err_NotAMap (4)

The map parameter is invalid.


giblorb_err_Format

#define giblorb_err_Format (5)

The Blorb file is corrupted or invalid.


giblorb_err_NotFound

#define giblorb_err_NotFound (6)

The requested data could not be found.