[gnome-photos] query: Support human-readable annotations for debugging
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] query: Support human-readable annotations for debugging
- Date: Mon, 18 Sep 2017 15:16:01 +0000 (UTC)
commit 90cc9f7901d8eee84b71cf0f131f3dc8bf3d44d2
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Sep 4 15:46:07 2017 +0200
query: Support human-readable annotations for debugging
https://bugzilla.gnome.org/show_bug.cgi?id=787833
src/photos-query.c | 9 +++++++++
src/photos-query.h | 3 +++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-query.c b/src/photos-query.c
index 15f37ce..83320ed 100644
--- a/src/photos-query.c
+++ b/src/photos-query.c
@@ -27,6 +27,7 @@
#include "photos-base-manager.h"
#include "photos-query.h"
+#include "photos-utils.h"
const gchar *PHOTOS_QUERY_COLLECTIONS_IDENTIFIER = "photos:collection:";
@@ -52,9 +53,17 @@ photos_query_new (PhotosSearchContextState *state, gchar *sparql)
void
+photos_query_set_tag (PhotosQuery *query, const gchar *tag)
+{
+ photos_utils_set_string (&query->tag, tag);
+}
+
+
+void
photos_query_free (PhotosQuery *query)
{
g_clear_object (&query->source);
g_free (query->sparql);
+ g_free (query->tag);
g_slice_free (PhotosQuery, query);
}
diff --git a/src/photos-query.h b/src/photos-query.h
index 5f40fa0..0a29e90 100644
--- a/src/photos-query.h
+++ b/src/photos-query.h
@@ -78,10 +78,13 @@ struct _PhotosQuery
{
PhotosSource *source;
gchar *sparql;
+ gchar *tag;
};
PhotosQuery *photos_query_new (PhotosSearchContextState *state, gchar *sparql);
+void photos_query_set_tag (PhotosQuery *query, const gchar *tag);
+
void photos_query_free (PhotosQuery *query);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]