[geocode-glib/wip/reverse-ret-place: 3/6] lib: Export create_place_from_attributes library-wide



commit 26093f241c9543117a0a2ef24647b5de456b1896
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Jul 29 23:36:23 2013 +0300

    lib: Export create_place_from_attributes library-wide
    
    Make create_place_from_attributes available to other files by exporting
    it library-wide as _geocode_create_place_from_attributes().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705112

 geocode-glib/geocode-forward.c      |    6 +++---
 geocode-glib/geocode-glib-private.h |    3 +++
 geocode-glib/geocode-glib.symbols   |    1 +
 3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/geocode-glib/geocode-forward.c b/geocode-glib/geocode-forward.c
index 51325e4..c81af5a 100644
--- a/geocode-glib/geocode-forward.c
+++ b/geocode-glib/geocode-forward.c
@@ -622,8 +622,8 @@ get_place_type_from_attributes (GHashTable *ht)
         return place_type;
 }
 
-static GeocodePlace *
-create_place_from_attributes (GHashTable *ht)
+GeocodePlace *
+_geocode_create_place_from_attributes (GHashTable *ht)
 {
         GeocodePlace *place;
         GeocodeLocation *loc = NULL;
@@ -698,7 +698,7 @@ insert_place_into_tree (GNode *place_tree, GHashTable *ht)
                start = child;
        }
 
-        place = create_place_from_attributes (ht);
+        place = _geocode_create_place_from_attributes (ht);
 
         /* The leaf node of the tree is the GeocodePlace object, containing
          * associated GeocodePlace object */
diff --git a/geocode-glib/geocode-glib-private.h b/geocode-glib/geocode-glib-private.h
index b0409ea..f15fca3 100644
--- a/geocode-glib/geocode-glib-private.h
+++ b/geocode-glib/geocode-glib-private.h
@@ -27,6 +27,7 @@
 #include <libsoup/soup.h>
 #include <json-glib/json-glib.h>
 #include <geocode-glib/geocode-location.h>
+#include <geocode-glib/geocode-place.h>
 
 G_BEGIN_DECLS
 
@@ -46,6 +47,8 @@ void
 _geocode_read_nominatim_attributes (JsonReader *reader,
                                     GHashTable *ht,
                                     gboolean    translate_to_xep);
+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 1604295..9e53e16 100644
--- a/geocode-glib/geocode-glib.symbols
+++ b/geocode-glib/geocode-glib.symbols
@@ -26,6 +26,7 @@ _geocode_parse_search_json
 _geocode_parse_resolve_json
 _geocode_read_nominatim_attributes
 _geocode_ip_json_to_location
+_geocode_create_place_from_attributes
 geocode_ipclient_get_type
 geocode_ipclient_new
 geocode_ipclient_new_for_ip


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]