mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 17:08:53 +02:00
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
This commit is contained in:
15
girnode.h
15
girnode.h
@@ -41,7 +41,6 @@ typedef struct _GIrNodeEnum GIrNodeEnum;
|
||||
typedef struct _GIrNodeBoxed GIrNodeBoxed;
|
||||
typedef struct _GIrNodeStruct GIrNodeStruct;
|
||||
typedef struct _GIrNodeConstant GIrNodeConstant;
|
||||
typedef struct _GIrNodeErrorDomain GIrNodeErrorDomain;
|
||||
typedef struct _GIrNodeXRef GIrNodeXRef;
|
||||
typedef struct _GIrNodeUnion GIrNodeUnion;
|
||||
|
||||
@@ -57,7 +56,7 @@ typedef enum
|
||||
G_IR_NODE_OBJECT = 7,
|
||||
G_IR_NODE_INTERFACE = 8,
|
||||
G_IR_NODE_CONSTANT = 9,
|
||||
G_IR_NODE_ERROR_DOMAIN = 10,
|
||||
G_IR_NODE_INVALID_0 = 10, /* DELETED - used to be ERROR_DOMAIN */
|
||||
G_IR_NODE_UNION = 11,
|
||||
G_IR_NODE_PARAM = 12,
|
||||
G_IR_NODE_TYPE = 13,
|
||||
@@ -343,18 +342,6 @@ struct _GIrNodeUnion
|
||||
};
|
||||
|
||||
|
||||
struct _GIrNodeErrorDomain
|
||||
{
|
||||
GIrNode node;
|
||||
|
||||
gboolean deprecated;
|
||||
|
||||
gchar *name;
|
||||
gchar *getquark;
|
||||
gchar *codes;
|
||||
};
|
||||
|
||||
|
||||
GIrNode * _g_ir_node_new (GIrNodeTypeId type,
|
||||
GIrModule *module);
|
||||
void _g_ir_node_free (GIrNode *node);
|
||||
|
Reference in New Issue
Block a user