[glib-networking] Rename GLibProxyResolver to GLibproxyResolver
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] Rename GLibProxyResolver to GLibproxyResolver
- Date: Mon, 16 Apr 2018 02:27:28 +0000 (UTC)
commit c9359375083cd609d38f58728c3f54f1bc86efc3
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sun Apr 15 21:26:50 2018 -0500
Rename GLibProxyResolver to GLibproxyResolver
Is it GLib's proxy resolver, or is it GLib's libproxy resolver? The
answer is the later, but you'd be forgiven for being very confused.
Let's avoid that.
proxy/libproxy/glibproxyresolver.c | 20 ++++++++++----------
proxy/libproxy/glibproxyresolver.h | 2 +-
2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/proxy/libproxy/glibproxyresolver.c b/proxy/libproxy/glibproxyresolver.c
index bc1379b..402d5a3 100644
--- a/proxy/libproxy/glibproxyresolver.c
+++ b/proxy/libproxy/glibproxyresolver.c
@@ -32,7 +32,7 @@
#include <glib.h>
#include <glib/gi18n-lib.h>
-struct _GLibProxyResolver {
+struct _GLibproxyResolver {
GObject parent_instance;
pxProxyFactory *factory;
};
@@ -41,17 +41,17 @@ static void g_libproxy_resolver_iface_init (GProxyResolverInterface *iface);
#ifdef GLIBPROXY_MODULE
static void
-g_libproxy_resolver_class_finalize (GLibProxyResolverClass *klass)
+g_libproxy_resolver_class_finalize (GLibproxyResolverClass *klass)
{
}
-G_DEFINE_DYNAMIC_TYPE_EXTENDED (GLibProxyResolver,
+G_DEFINE_DYNAMIC_TYPE_EXTENDED (GLibproxyResolver,
g_libproxy_resolver,
G_TYPE_OBJECT, 0,
G_IMPLEMENT_INTERFACE_DYNAMIC (G_TYPE_PROXY_RESOLVER,
g_libproxy_resolver_iface_init))
#else
-G_DEFINE_TYPE_EXTENDED (GLibProxyResolver,
+G_DEFINE_TYPE_EXTENDED (GLibproxyResolver,
g_libproxy_resolver,
G_TYPE_OBJECT, 0,
G_IMPLEMENT_INTERFACE (G_TYPE_PROXY_RESOLVER,
@@ -61,7 +61,7 @@ G_DEFINE_TYPE_EXTENDED (GLibProxyResolver,
static void
g_libproxy_resolver_finalize (GObject *object)
{
- GLibProxyResolver *resolver = G_LIBPROXY_RESOLVER (object);
+ GLibproxyResolver *resolver = G_LIBPROXY_RESOLVER (object);
if (resolver->factory)
{
@@ -74,7 +74,7 @@ g_libproxy_resolver_finalize (GObject *object)
}
static void
-g_libproxy_resolver_init (GLibProxyResolver *resolver)
+g_libproxy_resolver_init (GLibproxyResolver *resolver)
{
resolver->factory = px_proxy_factory_new ();
}
@@ -82,7 +82,7 @@ g_libproxy_resolver_init (GLibProxyResolver *resolver)
static gboolean
g_libproxy_resolver_is_supported (GProxyResolver *object)
{
- GLibProxyResolver *resolver = G_LIBPROXY_RESOLVER (object);
+ GLibproxyResolver *resolver = G_LIBPROXY_RESOLVER (object);
return resolver->factory != NULL;
}
@@ -136,7 +136,7 @@ get_libproxy_proxies (GTask *task,
gpointer task_data,
GCancellable *cancellable)
{
- GLibProxyResolver *resolver = source_object;
+ GLibproxyResolver *resolver = source_object;
const gchar *uri = task_data;
GError *error = NULL;
gchar **proxies;
@@ -167,7 +167,7 @@ g_libproxy_resolver_lookup (GProxyResolver *iresolver,
GCancellable *cancellable,
GError **error)
{
- GLibProxyResolver *resolver = G_LIBPROXY_RESOLVER (iresolver);
+ GLibproxyResolver *resolver = G_LIBPROXY_RESOLVER (iresolver);
GTask *task;
gchar **proxies;
@@ -211,7 +211,7 @@ g_libproxy_resolver_lookup_finish (GProxyResolver *resolver,
}
static void
-g_libproxy_resolver_class_init (GLibProxyResolverClass *resolver_class)
+g_libproxy_resolver_class_init (GLibproxyResolverClass *resolver_class)
{
GObjectClass *object_class;
diff --git a/proxy/libproxy/glibproxyresolver.h b/proxy/libproxy/glibproxyresolver.h
index 3a2e361..bbb9315 100644
--- a/proxy/libproxy/glibproxyresolver.h
+++ b/proxy/libproxy/glibproxyresolver.h
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
#define G_TYPE_LIBPROXY_RESOLVER (g_libproxy_resolver_get_type ())
-G_DECLARE_FINAL_TYPE (GLibProxyResolver, g_libproxy_resolver, G, LIBPROXY_RESOLVER, GObject)
+G_DECLARE_FINAL_TYPE (GLibproxyResolver, g_libproxy_resolver, G, LIBPROXY_RESOLVER, GObject)
void g_libproxy_resolver_register (GIOModule *module);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]