[gnome-photos/wip/rishi/thumbnailer: 2/12] base-item, pipeline: Rename a function for consistency
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/thumbnailer: 2/12] base-item, pipeline: Rename a function for consistency
- Date: Sun, 12 Feb 2017 03:24:44 +0000 (UTC)
commit a550dd96f22dd4f9ef60d280281fa79d76a570ff
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 | 10 ++++++++--
src/photos-pipeline.h | 4 ++--
3 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index d3d3ed4..4c95d0e 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -3418,7 +3418,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);
@@ -3457,7 +3457,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 1dbe1e0..da577ce 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -451,7 +451,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;
@@ -489,7 +492,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 62c58ae..88ff6c2 100644
--- a/src/photos-pipeline.h
+++ b/src/photos-pipeline.h
@@ -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]