mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
gresolver: Mark GResolver as an abstract class
It only works through its virtual methods, so while it could be instantiated before (and this is technically an API break), any instance of it would previously have crashed as soon as any of its methods were called anyway. If anybody has any problems with this ABI break, please make them known during the 2.51 unstable development cycle and it can be reverted. https://bugzilla.gnome.org/show_bug.cgi?id=772255
This commit is contained in:
parent
bd9e266e11
commit
10bac98185
@ -72,10 +72,13 @@ struct _GResolverPrivate {
|
|||||||
*
|
*
|
||||||
* The object that handles DNS resolution. Use g_resolver_get_default()
|
* The object that handles DNS resolution. Use g_resolver_get_default()
|
||||||
* to get the default resolver.
|
* to get the default resolver.
|
||||||
|
*
|
||||||
|
* This is an abstract type; subclasses of it implement different resolvers for
|
||||||
|
* different platforms and situations.
|
||||||
*/
|
*/
|
||||||
G_DEFINE_TYPE_WITH_CODE (GResolver, g_resolver, G_TYPE_OBJECT,
|
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GResolver, g_resolver, G_TYPE_OBJECT,
|
||||||
G_ADD_PRIVATE (GResolver)
|
G_ADD_PRIVATE (GResolver)
|
||||||
g_networking_init ();)
|
g_networking_init ();)
|
||||||
|
|
||||||
static GList *
|
static GList *
|
||||||
srv_records_to_targets (GList *records)
|
srv_records_to_targets (GList *records)
|
||||||
|
Loading…
Reference in New Issue
Block a user