diff options
author | Dan Winship <danw@gnome.org> | 2011-05-19 16:12:03 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2011-08-12 11:10:43 -0400 |
commit | 4dabe20ed5753bccd2abf8ad02e95ce6ab53036c (patch) | |
tree | 493ae7ef585a60e35c9c7b37bbb31b9f98a42e48 /girepository/gitypes.h | |
parent | a588cee7d719e0b1764d2b7687cd90424faec9d0 (diff) | |
download | gobject-introspection-4dabe20ed5753bccd2abf8ad02e95ce6ab53036c.tar.gz |
Deprecate ErrorDomain
The previous ErrorDomain blob was never actually scanned or used, and
it was kind of a lame API conceptually.
To keep some compatibility, rather than removing the enumeration
values, rename them to _INVALID, and don't bump the typelib version.
This should in theory allow a new libgirepository to read an old
typelib.
Based on a patch from Colin Walters
https://bugzilla.gnome.org/show_bug.cgi?id=602516
Diffstat (limited to 'girepository/gitypes.h')
-rw-r--r-- | girepository/gitypes.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/girepository/gitypes.h b/girepository/gitypes.h index d15b121a..cbe43168 100644 --- a/girepository/gitypes.h +++ b/girepository/gitypes.h @@ -151,13 +151,6 @@ typedef GIBaseInfo GIArgInfo; typedef GIBaseInfo GITypeInfo; /** - * GIErrorDomainInfo: - * - * Represents a #GError error domain. - */ -typedef GIBaseInfo GIErrorDomainInfo; - -/** * GIUnresolvedInfo: * * Represents a unresolved type in a typelib. @@ -202,7 +195,6 @@ typedef union _GIArgument GIArgument; * @GI_INFO_TYPE_OBJECT: object, see #GIObjectInfo * @GI_INFO_TYPE_INTERFACE: interface, see #GIInterfaceInfo * @GI_INFO_TYPE_CONSTANT: contant, see #GIConstantInfo - * @GI_INFO_TYPE_ERROR_DOMAIN: error domain for a #GError, see #GIErrorDomainInfo * @GI_INFO_TYPE_UNION: union, see #GIUnionInfo * @GI_INFO_TYPE_VALUE: enum value, see #GIValueInfo * @GI_INFO_TYPE_SIGNAL: signal, see #GISignalInfo @@ -228,7 +220,7 @@ typedef enum GI_INFO_TYPE_OBJECT, GI_INFO_TYPE_INTERFACE, GI_INFO_TYPE_CONSTANT, - GI_INFO_TYPE_ERROR_DOMAIN, /* 10 */ + GI_INFO_TYPE_INVALID_0, /* 10 */ /** DELETED - used to be ERROR_DOMAIN **/ GI_INFO_TYPE_UNION, GI_INFO_TYPE_VALUE, GI_INFO_TYPE_SIGNAL, |