ezfc_error_t

ezfc_error_t — An enumerated type for error handling in libeasyfc.

Synopsis

#define             EZFC_ERROR
GQuark              ezfc_error_get_quark                (void);
enum                ezfc_error_t;

Description

This type defines an error type being used for GError.

Details

EZFC_ERROR

#define EZFC_ERROR (ezfc_error_get_quark())

A GQuark value being used in libeasyfc.


ezfc_error_get_quark ()

GQuark              ezfc_error_get_quark                (void);

Obtains a GQuark being used for GError.

Returns :

a GQuark.

enum ezfc_error_t

enum ezfc_error_t {
	EZFC_ERR_UNKNOWN = -1,
	EZFC_ERR_SUCCESS = 0,
	EZFC_ERR_OOM,
	EZFC_ERR_FAIL_ON_FC,
	EZFC_ERR_NO_VALID_FONT,
	EZFC_ERR_NO_FAMILY,
	EZFC_ERR_NO_CONFIG_DIR,
	EZFC_ERR_NO_ELEMENTS,
	EZFC_ERR_NO_CONFIG_FILE,
	EZFC_ERR_FAIL_ON_XML,
	EZFC_ERR_FAIL_ON_LIBC,
	EZFC_ERR_END
};

Error code used in libeasyfc.

EZFC_ERR_UNKNOWN

unknown error happened.

EZFC_ERR_SUCCESS

an operation is succeeded.

EZFC_ERR_OOM

Out of memory occurred.

EZFC_ERR_FAIL_ON_FC

an error happened in fontconfig.

EZFC_ERR_NO_VALID_FONT

no valid font is available on the system.

EZFC_ERR_NO_FAMILY

no font family name found in a class.

EZFC_ERR_NO_CONFIG_DIR

no valid configuration directory found.

EZFC_ERR_NO_ELEMENTS

no elements found to write.

EZFC_ERR_NO_CONFIG_FILE

no configuration file was available on the filesystem.

EZFC_ERR_FAIL_ON_XML

an error happened in libxml2.

EZFC_ERR_FAIL_ON_LIBC

an error happened in libc.

EZFC_ERR_END

No real error, but just a terminator.