From e21cf1671886455d60df007d3f4ae52f4ea9eea2 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Wed, 24 Feb 2021 15:27:16 +0000
Subject: [PATCH] runtime: Rename bind_icd_from_ptr_array

We mostly don't actually use this to bind ICDs, so the name is
misleading.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 pressure-vessel/runtime.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/pressure-vessel/runtime.c b/pressure-vessel/runtime.c
index 53cb3cc3b..5ef7d1969 100644
--- a/pressure-vessel/runtime.c
+++ b/pressure-vessel/runtime.c
@@ -1931,11 +1931,11 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (IcdDetails, icd_details_free)
  * @patterns: (not nullable): array of patterns for capsule-capture-libs
  */
 static gboolean
-bind_icd_from_ptr_array (PvRuntime *self,
-                         RuntimeArchitecture *arch,
-                         const gchar *destination,
-                         GPtrArray *patterns,
-                         GError **error)
+pv_runtime_capture_libraries (PvRuntime *self,
+                              RuntimeArchitecture *arch,
+                              const gchar *destination,
+                              GPtrArray *patterns,
+                              GError **error)
 {
   g_autoptr(FlatpakBwrap) temp_bwrap = NULL;
   gsize i;
@@ -4188,8 +4188,9 @@ pv_runtime_use_provider_graphics_stack (PvRuntime *self,
                 return FALSE;
             }
 
-          if (!bind_icd_from_ptr_array (self, arch, arch->libdir_in_current_namespace,
-                                        patterns, error))
+          if (!pv_runtime_capture_libraries (self, arch,
+                                             arch->libdir_in_current_namespace,
+                                             patterns, error))
             return FALSE;
 
           libc = g_build_filename (arch->libdir_in_current_namespace, "libc.so.6", NULL);
-- 
GitLab