Basic implementation of loading.

Add an error domain for the purpose of returning errors.
This commit is contained in:
2011-01-16 13:36:11 +01:00
parent e9da09f196
commit 5124cf8d71
2 changed files with 129 additions and 6 deletions

View File

@@ -56,6 +56,28 @@ struct _LdDiagramClass
};
GQuark ld_diagram_error_quark (void);
/**
* LD_DIAGRAM_ERROR:
*
* Uset to get the #GError quark for #LdDiagram errors.
*/
#define LD_DIAGRAM_ERROR (ld_diagram_error_quark ())
/**
* LdDiagramError:
* @LD_DIAGRAM_ERROR_DIAGRAM_CORRUPT: The input diagram is corrupt.
*
* These identify errors that can occur while calling #LdDiagram functions.
*/
typedef enum
{
LD_DIAGRAM_ERROR_DIAGRAM_CORRUPT
}
LdDiagramError;
GType ld_diagram_get_type (void) G_GNUC_CONST;
LdDiagram *ld_diagram_new (void);