[gnome-photos/wip/rishi/double-buffering: 3/7] base-item, pipeline: Rename a function for consistency



commit ad475af8e161ea15d98d3e0c418600d9c22d0746
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jan 20 16:04:09 2017 +0100

    base-item, pipeline: Rename a function for consistency
    
    Methods dealing with va_lists usually have the _valist suffix.

 src/photos-base-item.c |    4 ++--
 src/photos-pipeline.c  |   12 +++++++++---
 src/photos-pipeline.h  |    6 +++---
 3 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 1060045..f89ad1d 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -3340,7 +3340,7 @@ photos_base_item_operation_add_async (PhotosBaseItem *self,
   g_return_if_fail (!priv->collection);
 
   va_start (ap, first_property_name);
-  photos_pipeline_add (priv->pipeline, operation, first_property_name, ap);
+  photos_pipeline_add_valist (priv->pipeline, operation, first_property_name, ap);
   va_end (ap);
 
   task = g_task_new (self, cancellable, callback, user_data);
@@ -3379,7 +3379,7 @@ photos_base_item_operation_get (PhotosBaseItem *self, const gchar *operation, co
   g_return_val_if_fail (!priv->collection, FALSE);
 
   va_start (ap, first_property_name);
-  ret_val = photos_pipeline_get (priv->pipeline, operation, first_property_name, ap);
+  ret_val = photos_pipeline_get_valist (priv->pipeline, operation, first_property_name, ap);
   va_end (ap);
 
   return ret_val;
diff --git a/src/photos-pipeline.c b/src/photos-pipeline.c
index 07db4c5..9e24ec8 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2015 – 2016 Red Hat, Inc.
+ * Copyright © 2015 – 2017 Red Hat, Inc.
  * Copyright © 2016 Umang Jain
  *
  * This program is free software; you can redistribute it and/or
@@ -450,7 +450,10 @@ photos_pipeline_new_finish (GAsyncResult *res, GError **error)
 
 
 void
-photos_pipeline_add (PhotosPipeline *self, const gchar *operation, const gchar *first_property_name, va_list 
ap)
+photos_pipeline_add_valist (PhotosPipeline *self,
+                            const gchar *operation,
+                            const gchar *first_property_name,
+                            va_list ap)
 {
   GeglNode *input;
   GeglNode *last;
@@ -488,7 +491,10 @@ photos_pipeline_add (PhotosPipeline *self, const gchar *operation, const gchar *
 
 
 gboolean
-photos_pipeline_get (PhotosPipeline *self, const gchar *operation, const gchar *first_property_name, va_list 
ap)
+photos_pipeline_get_valist (PhotosPipeline *self,
+                            const gchar *operation,
+                            const gchar *first_property_name,
+                            va_list ap)
 {
   GeglNode *node;
   gboolean ret_val = FALSE;
diff --git a/src/photos-pipeline.h b/src/photos-pipeline.h
index 15aa88e..88ff6c2 100644
--- a/src/photos-pipeline.h
+++ b/src/photos-pipeline.h
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2015 – 2016 Red Hat, Inc.
+ * Copyright © 2015 – 2017 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
@@ -52,12 +52,12 @@ void                   photos_pipeline_new_async         (GeglNode *parent,
 PhotosPipeline        *photos_pipeline_new_finish        (GAsyncResult *res,
                                                           GError **error);
 
-void                   photos_pipeline_add               (PhotosPipeline *self,
+void                   photos_pipeline_add_valist        (PhotosPipeline *self,
                                                           const gchar *operation,
                                                           const gchar *first_property_name,
                                                           va_list ap);
 
-gboolean               photos_pipeline_get               (PhotosPipeline *self,
+gboolean               photos_pipeline_get_valist        (PhotosPipeline *self,
                                                           const gchar *operation,
                                                           const gchar *first_property_name,
                                                           va_list ap) G_GNUC_WARN_UNUSED_RESULT;


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