[geocode-glib] geocode-glib: Make some private functions static
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] geocode-glib: Make some private functions static
- Date: Fri, 13 Jan 2017 23:12:43 +0000 (UTC)
commit a2306cb8a6ed0f40082469aa1e6967f52dad2af2
Author: Philip Withnall <philip withnall collabora co uk>
Date: Thu Oct 13 14:36:48 2016 +0100
geocode-glib: Make some private functions static
These two functions are no longer needed in any files other than
geocode-nominatim.c, so they can be made private and removed from the
.symbols file.
https://bugzilla.gnome.org/show_bug.cgi?id=756311
geocode-glib/geocode-glib-private.h | 5 -----
geocode-glib/geocode-glib.symbols | 2 --
geocode-glib/geocode-nominatim.c | 7 +++++--
3 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/geocode-glib/geocode-glib-private.h b/geocode-glib/geocode-glib-private.h
index 1be5d2d..6af8fea 100644
--- a/geocode-glib/geocode-glib-private.h
+++ b/geocode-glib/geocode-glib-private.h
@@ -40,11 +40,6 @@ typedef enum {
GList *_geocode_parse_search_json (const char *contents,
GError **error);
-void
-_geocode_read_nominatim_attributes (JsonReader *reader,
- GHashTable *ht);
-GeocodePlace *
-_geocode_create_place_from_attributes (GHashTable *ht);
char *_geocode_object_get_lang (void);
diff --git a/geocode-glib/geocode-glib.symbols b/geocode-glib/geocode-glib.symbols
index 64e86c1..76067de 100644
--- a/geocode-glib/geocode-glib.symbols
+++ b/geocode-glib/geocode-glib.symbols
@@ -36,8 +36,6 @@ geocode_reverse_set_backend
geocode_error_quark
geocode_error_get_type
_geocode_parse_search_json
-_geocode_read_nominatim_attributes
-_geocode_create_place_from_attributes
geocode_place_get_type
geocode_place_type_get_type
geocode_place_osm_type_get_type
diff --git a/geocode-glib/geocode-nominatim.c b/geocode-glib/geocode-nominatim.c
index 78c064a..aade593 100644
--- a/geocode-glib/geocode-nominatim.c
+++ b/geocode-glib/geocode-nominatim.c
@@ -53,6 +53,9 @@ G_DEFINE_TYPE_WITH_CODE (GeocodeNominatim, geocode_nominatim, G_TYPE_OBJECT,
/******************************************************************************/
+static void _geocode_read_nominatim_attributes (JsonReader *reader,
+ GHashTable *ht);
+
static struct {
const char *tp_attr;
const char *gc_attr; /* NULL to ignore */
@@ -406,7 +409,7 @@ get_place_type_from_attributes (GHashTable *ht)
return place_type;
}
-GeocodePlace *
+static GeocodePlace *
_geocode_create_place_from_attributes (GHashTable *ht)
{
GeocodePlace *place;
@@ -1015,7 +1018,7 @@ insert_bounding_box_element (GHashTable *ht,
}
}
-void
+static void
_geocode_read_nominatim_attributes (JsonReader *reader,
GHashTable *ht)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]