diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-01-16 13:36:11 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-01-16 13:36:11 +0100 |
commit | 5124cf8d71efe0eeba0951969e587cebd46e045e (patch) | |
tree | 52506d9eb03a13f6212e0ee15bbc276d86b8c327 /liblogdiag/ld-diagram.h | |
parent | e9da09f196afccf26c17cb51fd86be9996fd2117 (diff) | |
download | logdiag-5124cf8d71efe0eeba0951969e587cebd46e045e.tar.gz logdiag-5124cf8d71efe0eeba0951969e587cebd46e045e.tar.xz logdiag-5124cf8d71efe0eeba0951969e587cebd46e045e.zip |
Basic implementation of loading.
Add an error domain for the purpose of returning errors.
Diffstat (limited to 'liblogdiag/ld-diagram.h')
-rw-r--r-- | liblogdiag/ld-diagram.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/liblogdiag/ld-diagram.h b/liblogdiag/ld-diagram.h index f364189..d43408c 100644 --- a/liblogdiag/ld-diagram.h +++ b/liblogdiag/ld-diagram.h @@ -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); |