[gnome-photos/wip/rishi/thumbnailer: 7/12] pipeline: Add photos_pipeline_get



commit 5bfe71e5a2ab7867c5db4745e707eeeee3a89a14
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Feb 12 17:44:27 2017 +0100

    pipeline: Add photos_pipeline_get

 src/photos-pipeline.c |   16 ++++++++++++++++
 src/photos-pipeline.h |    5 +++++
 2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-pipeline.c b/src/photos-pipeline.c
index da577ce..be9859a 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -492,6 +492,22 @@ photos_pipeline_add_valist (PhotosPipeline *self,
 
 
 gboolean
+photos_pipeline_get (PhotosPipeline *self, const gchar *operation, const gchar *first_property_name, ...)
+{
+  gboolean ret_val;
+  val_list ap;
+
+  g_return_val_if_fail (PHOTOS_IS_PIPELINE (self), FALSE);
+
+  va_start (ap, first_property_name);
+  ret_val = photos_pipeline_get_valist (self, operation, first_property_name, ap);
+  va_end (ap);
+
+  return ret_val;
+}
+
+
+gboolean
 photos_pipeline_get_valist (PhotosPipeline *self,
                             const gchar *operation,
                             const gchar *first_property_name,
diff --git a/src/photos-pipeline.h b/src/photos-pipeline.h
index 88ff6c2..95dce75 100644
--- a/src/photos-pipeline.h
+++ b/src/photos-pipeline.h
@@ -57,6 +57,11 @@ void                   photos_pipeline_add_valist        (PhotosPipeline *self,
                                                           const gchar *first_property_name,
                                                           va_list ap);
 
+gboolean               photos_pipeline_get               (PhotosPipeline *self,
+                                                          const gchar *operation,
+                                                          const gchar *first_property_name,
+                                                          ...) G_GNUC_NULL_TERMINATED 
G_GNUC_WARN_UNUSED_RESULT;
+
 gboolean               photos_pipeline_get_valist        (PhotosPipeline *self,
                                                           const gchar *operation,
                                                           const gchar *first_property_name,


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