[cairo] [PATCH 05/72] core: helper function for converting cairo_status_t to human-readable text (like strerror)
Chris Wilson
chris at chris-wilson.co.uk
Tue Dec 29 08:08:27 PST 2015
On Tue, Dec 29, 2015 at 10:16:43AM +0100, Enrico Weigelt, metux IT consult wrote:
> Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt at gr13.net>
> ---
> src/cairo-error.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> src/cairo.h | 2 ++
> 2 files changed, 54 insertions(+)
>
> diff --git a/src/cairo-error.c b/src/cairo-error.c
> index 1b9bd76..0ea9864 100644
> --- a/src/cairo-error.c
> +++ b/src/cairo-error.c
> @@ -71,3 +71,55 @@ _cairo_error (cairo_status_t status)
> }
>
> COMPILE_TIME_ASSERT ((int)CAIRO_INT_STATUS_LAST_STATUS == (int)CAIRO_STATUS_LAST_STATUS);
> +
> +const char* cairo_status_text(cairo_status_t status)
May I introduce you to cairo_status_to_string()?
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the cairo
mailing list