[gnome-photos] Make LOCAL_COLLECTIONS_IDENTIFIER extern



commit e4a5f31707387b852c597c16fd135f15c61973ff
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Mar 31 04:17:15 2013 +0200

    Make LOCAL_COLLECTIONS_IDENTIFIER extern

 src/photos-query-builder.c |    5 +----
 src/photos-query.c         |    5 ++++-
 src/photos-query.h         |    4 +++-
 3 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/photos-query-builder.c b/src/photos-query-builder.c
index f5ab2f2..5439a3d 100644
--- a/src/photos-query-builder.c
+++ b/src/photos-query-builder.c
@@ -34,9 +34,6 @@
 #include "photos-search-type-manager.h"
 
 
-static const gchar * LOCAL_COLLECTIONS_IDENTIFIER = "photos:collection:local:";
-
-
 static gchar *
 photos_query_builder_convert_path_to_uri (const gchar *path)
 {
@@ -180,7 +177,7 @@ photos_query_builder_create_collection_query (const gchar *name)
   sparql = g_strconcat ("INSERT { _:res a nfo:DataContainer ; a nie:DataObject ; ",
                         "nie:contentLastModified \"", time, "\" ; ",
                         "nie:title \"", name, "\" ; ",
-                        "nao:identifier \"", LOCAL_COLLECTIONS_IDENTIFIER, name, "\" }",
+                        "nao:identifier \"", PHOTOS_QUERY_LOCAL_COLLECTIONS_IDENTIFIER, name, "\" }",
                         NULL);
   g_free (time);
 
diff --git a/src/photos-query.c b/src/photos-query.c
index 26cf4cc..dc4c59c 100644
--- a/src/photos-query.c
+++ b/src/photos-query.c
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2013 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -29,6 +29,9 @@
 #include "photos-source-manager.h"
 
 
+const gchar *PHOTOS_QUERY_LOCAL_COLLECTIONS_IDENTIFIER = "photos:collection:local:";
+
+
 PhotosQuery *
 photos_query_new (gchar *sparql)
 {
diff --git a/src/photos-query.h b/src/photos-query.h
index 5d21452..6ae9460 100644
--- a/src/photos-query.h
+++ b/src/photos-query.h
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2013 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -56,6 +56,8 @@ typedef enum
   PHOTOS_QUERY_FLAGS_FAVORITES = 1 << 1
 } PhotosQueryFlags;
 
+extern const gchar *PHOTOS_QUERY_LOCAL_COLLECTIONS_IDENTIFIER;
+
 typedef struct _PhotosQuery PhotosQuery;
 
 struct _PhotosQuery


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