1
0
Fork 0

cogl: Make BlendStringError private

It is a private API

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3910>
This commit is contained in:
Bilal Elmoussaoui 2024-07-28 10:13:09 +02:00 committed by Marge Bot
parent 4bd974222e
commit 5d7c4bccd8
2 changed files with 27 additions and 28 deletions

View file

@ -127,6 +127,33 @@ typedef struct _CoglBlendStringStatement
CoglBlendStringArgument args[3]; CoglBlendStringArgument args[3];
} CoglBlendStringStatement; } CoglBlendStringStatement;
/**
* COGL_BLEND_STRING_ERROR:
*
* #GError domain for blend string parser errors
*/
#define COGL_BLEND_STRING_ERROR (cogl_blend_string_error_quark ())
/**
* CoglBlendStringError:
* @COGL_BLEND_STRING_ERROR_PARSE_ERROR: Generic parse error
* @COGL_BLEND_STRING_ERROR_ARGUMENT_PARSE_ERROR: Argument parse error
* @COGL_BLEND_STRING_ERROR_INVALID_ERROR: Internal parser error
* @COGL_BLEND_STRING_ERROR_GPU_UNSUPPORTED_ERROR: Blend string not
* supported by the GPU
*
* Error enumeration for the blend strings parser
*/
typedef enum /*< prefix=COGL_BLEND_STRING_ERROR >*/
{
COGL_BLEND_STRING_ERROR_PARSE_ERROR,
COGL_BLEND_STRING_ERROR_ARGUMENT_PARSE_ERROR,
COGL_BLEND_STRING_ERROR_INVALID_ERROR,
COGL_BLEND_STRING_ERROR_GPU_UNSUPPORTED_ERROR
} CoglBlendStringError;
uint32_t
cogl_blend_string_error_quark (void);
gboolean gboolean
_cogl_blend_string_compile (const char *string, _cogl_blend_string_compile (const char *string,

View file

@ -67,34 +67,6 @@ typedef struct _CoglFramebuffer CoglFramebuffer;
*/ */
typedef struct _CoglDmaBufHandle CoglDmaBufHandle; typedef struct _CoglDmaBufHandle CoglDmaBufHandle;
/**
* COGL_BLEND_STRING_ERROR:
*
* #GError domain for blend string parser errors
*/
#define COGL_BLEND_STRING_ERROR (cogl_blend_string_error_quark ())
/**
* CoglBlendStringError:
* @COGL_BLEND_STRING_ERROR_PARSE_ERROR: Generic parse error
* @COGL_BLEND_STRING_ERROR_ARGUMENT_PARSE_ERROR: Argument parse error
* @COGL_BLEND_STRING_ERROR_INVALID_ERROR: Internal parser error
* @COGL_BLEND_STRING_ERROR_GPU_UNSUPPORTED_ERROR: Blend string not
* supported by the GPU
*
* Error enumeration for the blend strings parser
*/
typedef enum /*< prefix=COGL_BLEND_STRING_ERROR >*/
{
COGL_BLEND_STRING_ERROR_PARSE_ERROR,
COGL_BLEND_STRING_ERROR_ARGUMENT_PARSE_ERROR,
COGL_BLEND_STRING_ERROR_INVALID_ERROR,
COGL_BLEND_STRING_ERROR_GPU_UNSUPPORTED_ERROR
} CoglBlendStringError;
COGL_EXPORT uint32_t
cogl_blend_string_error_quark (void);
#define COGL_SYSTEM_ERROR (_cogl_system_error_quark ()) #define COGL_SYSTEM_ERROR (_cogl_system_error_quark ())
/** /**