summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-10-16 21:24:45 -0400
committerRyan Lortie <desrt@desrt.ca>2011-10-16 21:41:15 -0400
commit09429e2c820118918e6132d32884eb02203136d4 (patch)
tree45aff7f05ba69dd965ecbb3d117f1a5fe90c06f5
parent740eacbfcacb4acdc09a5ef93cb2840d1648ce28 (diff)
downloadglib-09429e2c820118918e6132d32884eb02203136d4.tar.gz
gio static fixups
-rw-r--r--gio/gapplicationimpl-dbus.c2
-rw-r--r--gio/giomodule.c2
-rw-r--r--gio/gkeyfilesettingsbackend.c2
-rw-r--r--gio/gnetworkaddress.c1
-rw-r--r--gio/gnetworkservice.c1
-rw-r--r--gio/gsettingsschema.c2
-rw-r--r--gio/gsimpleaction.c2
-rw-r--r--gio/gsocketaddress.c1
-rw-r--r--gio/gsocketclient.c2
-rw-r--r--gio/gsrvtarget.c2
-rw-r--r--gio/gtlscertificate.c4
11 files changed, 13 insertions, 8 deletions
diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c
index 7be562775..9eeb34446 100644
--- a/gio/gapplicationimpl-dbus.c
+++ b/gio/gapplicationimpl-dbus.c
@@ -434,7 +434,7 @@ unwrap_fake_maybe (GVariant **value)
*value = tmp;
}
-RemoteActionInfo *
+static RemoteActionInfo *
remote_action_info_new_from_iter (GVariantIter *iter)
{
RemoteActionInfo *info;
diff --git a/gio/giomodule.c b/gio/giomodule.c
index fa8aea265..eb8b35f73 100644
--- a/gio/giomodule.c
+++ b/gio/giomodule.c
@@ -1028,7 +1028,7 @@ g_io_extension_point_get_required_type (GIOExtensionPoint *extension_point)
return extension_point->required_type;
}
-void
+static void
lazy_load_modules (GIOExtensionPoint *extension_point)
{
GIOModule *module;
diff --git a/gio/gkeyfilesettingsbackend.c b/gio/gkeyfilesettingsbackend.c
index f61bb8b7c..05bb10da2 100644
--- a/gio/gkeyfilesettingsbackend.c
+++ b/gio/gkeyfilesettingsbackend.c
@@ -168,7 +168,7 @@ convert_path (GKeyfileSettingsBackend *kfsb,
return TRUE;
}
-gboolean
+static gboolean
path_is_valid (GKeyfileSettingsBackend *kfsb,
const gchar *path)
{
diff --git a/gio/gnetworkaddress.c b/gio/gnetworkaddress.c
index e9a9b9865..78ee08b06 100644
--- a/gio/gnetworkaddress.c
+++ b/gio/gnetworkaddress.c
@@ -794,6 +794,7 @@ typedef struct {
} GNetworkAddressAddressEnumeratorClass;
+static GType _g_network_address_address_enumerator_get_type (void);
G_DEFINE_TYPE (GNetworkAddressAddressEnumerator, _g_network_address_address_enumerator, G_TYPE_SOCKET_ADDRESS_ENUMERATOR)
static void
diff --git a/gio/gnetworkservice.c b/gio/gnetworkservice.c
index a31433da9..febe11b37 100644
--- a/gio/gnetworkservice.c
+++ b/gio/gnetworkservice.c
@@ -405,6 +405,7 @@ typedef struct {
} GNetworkServiceAddressEnumeratorClass;
+static GType _g_network_service_address_enumerator_get_type (void);
G_DEFINE_TYPE (GNetworkServiceAddressEnumerator, _g_network_service_address_enumerator, G_TYPE_SOCKET_ADDRESS_ENUMERATOR)
static GSocketAddress *
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
index c881ebe01..bf3243b35 100644
--- a/gio/gsettingsschema.c
+++ b/gio/gsettingsschema.c
@@ -20,6 +20,8 @@
#include "config.h"
#include "gsettingsschema.h"
+#include "gsettings.h"
+
#include "gvdb/gvdb-reader.h"
#include <glibintl.h>
diff --git a/gio/gsimpleaction.c b/gio/gsimpleaction.c
index 2456b1678..b87f80289 100644
--- a/gio/gsimpleaction.c
+++ b/gio/gsimpleaction.c
@@ -80,7 +80,7 @@ g_simple_action_get_name (GAction *action)
return simple->name;
}
-const GVariantType *
+static const GVariantType *
g_simple_action_get_parameter_type (GAction *action)
{
GSimpleAction *simple = G_SIMPLE_ACTION (action);
diff --git a/gio/gsocketaddress.c b/gio/gsocketaddress.c
index 72fdd788c..477f7203b 100644
--- a/gio/gsocketaddress.c
+++ b/gio/gsocketaddress.c
@@ -315,6 +315,7 @@ typedef struct {
} GSocketAddressAddressEnumeratorClass;
+static GType _g_socket_address_address_enumerator_get_type (void);
G_DEFINE_TYPE (GSocketAddressAddressEnumerator, _g_socket_address_address_enumerator, G_TYPE_SOCKET_ADDRESS_ENUMERATOR)
static void
diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c
index 814f0e815..821bcd2be 100644
--- a/gio/gsocketclient.c
+++ b/gio/gsocketclient.c
@@ -138,7 +138,7 @@ create_socket (GSocketClient *client,
return socket;
}
-gboolean
+static gboolean
can_use_proxy (GSocketClient *client)
{
GSocketClientPrivate *priv = client->priv;
diff --git a/gio/gsrvtarget.c b/gio/gsrvtarget.c
index 21c057504..3422750fe 100644
--- a/gio/gsrvtarget.c
+++ b/gio/gsrvtarget.c
@@ -203,7 +203,7 @@ g_srv_target_get_weight (GSrvTarget *target)
return target->weight;
}
-gint
+static gint
compare_target (gconstpointer a, gconstpointer b)
{
GSrvTarget *ta = (GSrvTarget *)a;
diff --git a/gio/gtlscertificate.c b/gio/gtlscertificate.c
index 6e8eaf73e..56382d5af 100644
--- a/gio/gtlscertificate.c
+++ b/gio/gtlscertificate.c
@@ -209,7 +209,7 @@ g_tls_certificate_new_internal (const gchar *certificate_pem,
#define PEM_PRIVKEY_HEADER "-----BEGIN RSA PRIVATE KEY-----"
#define PEM_PRIVKEY_FOOTER "-----END RSA PRIVATE KEY-----"
-gchar *
+static gchar *
parse_private_key (const gchar *data,
gsize data_len,
gboolean required,
@@ -243,7 +243,7 @@ parse_private_key (const gchar *data,
}
-gchar *
+static gchar *
parse_next_pem_certificate (const gchar **data,
const gchar *data_end,
gboolean required,