mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 06:13:29 +02:00
Re-run res_init() when resolv.conf changes
libc caches the contents of resolv.conf, so if it changes (eg, because the network state changed), we need re-run res_init(). http://bugzilla.gnome.org/show_bug.cgi?id=584246
This commit is contained in:
@@ -36,15 +36,22 @@ G_BEGIN_DECLS
|
||||
#define G_IS_RESOLVER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_RESOLVER))
|
||||
#define G_RESOLVER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_RESOLVER, GResolverClass))
|
||||
|
||||
typedef struct _GResolverPrivate GResolverPrivate;
|
||||
typedef struct _GResolverClass GResolverClass;
|
||||
|
||||
struct _GResolver {
|
||||
GObject parent_instance;
|
||||
|
||||
GResolverPrivate *priv;
|
||||
};
|
||||
|
||||
typedef struct _GResolverClass GResolverClass;
|
||||
struct _GResolverClass {
|
||||
GObjectClass parent_class;
|
||||
|
||||
/* Signals */
|
||||
void ( *reload) (GResolver *resolver);
|
||||
|
||||
/* Virtual methods */
|
||||
GList * ( *lookup_by_name) (GResolver *resolver,
|
||||
const gchar *hostname,
|
||||
GCancellable *cancellable,
|
||||
|
Reference in New Issue
Block a user