[geocode-glib] lib: Add a way to differentiate search from resolve



commit f9bd73907701c622108f998e231df1f9f90d9432
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Oct 24 12:08:31 2012 +0200

    lib: Add a way to differentiate search from resolve

 geocode-glib/geocode-glib.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/geocode-glib/geocode-glib.c b/geocode-glib/geocode-glib.c
index d52abc7..a34d15c 100644
--- a/geocode-glib/geocode-glib.c
+++ b/geocode-glib/geocode-glib.c
@@ -30,6 +30,8 @@
 #include <geocode-error.h>
 #include <geocode-glib-private.h>
 
+#define IS_SEARCH "is-search"
+
 /**
  * SECTION:geocode-glib
  * @short_description: Geocode glib main functions
@@ -509,6 +511,14 @@ parse:
 	return NULL;
 }
 
+static gboolean
+query_is_search (GFile *query)
+{
+	g_return_val_if_fail (query != NULL, FALSE);
+
+	return GPOINTER_TO_INT (g_object_get_data (G_OBJECT (query), IS_SEARCH));
+}
+
 static void
 on_query_data_loaded (GObject      *source_object,
 		      GAsyncResult *res,



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