[libsoup] SoupSession: mark a static function static (and clarify why it's there)
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] SoupSession: mark a static function static (and clarify why it's there)
- Date: Fri, 2 Nov 2012 16:11:35 +0000 (UTC)
commit 08bc2f346534206a45be0e5ec506cd03feb9d849
Author: Dan Winship <danw gnome org>
Date: Fri Nov 2 11:53:00 2012 -0400
SoupSession: mark a static function static (and clarify why it's there)
libsoup/soup-session.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index d0a0e21..5a3c5f9 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -74,7 +74,7 @@ typedef struct {
SoupSession *session;
} SoupSessionHost;
static guint soup_host_uri_hash (gconstpointer key);
-gboolean soup_host_uri_equal (gconstpointer v1, gconstpointer v2);
+static gboolean soup_host_uri_equal (gconstpointer v1, gconstpointer v2);
typedef struct {
GTlsDatabase *tlsdb;
@@ -734,6 +734,10 @@ soup_session_get_async_context (SoupSession *session)
/* Hosts */
+/* Note that we can't use soup_uri_host_hash() and soup_uri_host_equal()
+ * because we want to ignore the protocol; http://example.com and
+ * webcal://example.com are the same host.
+ */
static guint
soup_host_uri_hash (gconstpointer key)
{
@@ -744,7 +748,7 @@ soup_host_uri_hash (gconstpointer key)
return uri->port + soup_str_case_hash (uri->host);
}
-gboolean
+static gboolean
soup_host_uri_equal (gconstpointer v1, gconstpointer v2)
{
const SoupURI *one = v1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]