[geocode-glib] lib: Add a way to change the lookup type
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] lib: Add a way to change the lookup type
- Date: Wed, 24 Oct 2012 17:07:13 +0000 (UTC)
commit 7b0fef16cc627a9f7061de3f2bc389e19b623068
Author: Bastien Nocera <hadess hadess net>
Date: Wed Oct 24 19:06:34 2012 +0200
lib: Add a way to change the lookup type
geocode-glib/geocode-glib-private.h | 2 ++
geocode-glib/geocode-glib.c | 9 +++++++++
geocode-glib/geocode-glib.symbols | 1 +
3 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/geocode-glib/geocode-glib-private.h b/geocode-glib/geocode-glib-private.h
index 08fe408..1f44272 100644
--- a/geocode-glib/geocode-glib-private.h
+++ b/geocode-glib/geocode-glib-private.h
@@ -38,6 +38,8 @@ GHashTable *_geocode_parse_resolve_json (const char *contents,
GError **error);
GList * _geocode_parse_search_json (const char *contents,
GError **error);
+void _geocode_object_set_lookup_type (GeocodeObject *object,
+ GeocodeLookupType type);
G_END_DECLS
diff --git a/geocode-glib/geocode-glib.c b/geocode-glib/geocode-glib.c
index 20af3e6..c4c800d 100644
--- a/geocode-glib/geocode-glib.c
+++ b/geocode-glib/geocode-glib.c
@@ -81,6 +81,15 @@ geocode_object_init (GeocodeObject *object)
g_free, g_free);
}
+void
+_geocode_object_set_lookup_type (GeocodeObject *object,
+ GeocodeLookupType type)
+{
+ g_return_if_fail (GEOCODE_IS_OBJECT (object));
+
+ object->priv->type = type;
+}
+
static char *
geocode_object_cache_path_for_query (GFile *query)
{
diff --git a/geocode-glib/geocode-glib.symbols b/geocode-glib/geocode-glib.symbols
index b715cb1..81bf20b 100644
--- a/geocode-glib/geocode-glib.symbols
+++ b/geocode-glib/geocode-glib.symbols
@@ -15,3 +15,4 @@ geocode_object_search
geocode_object_get_coords
_geocode_parse_search_json
_geocode_parse_resolve_json
+_geocode_object_set_lookup_type
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]