summaryrefslogtreecommitdiff
path: root/debian/patches/translators-list0004-add-iteration.patch
blob: bc4804b3e959c40a4325f7bc5199cb0b3142ee29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 2f7fd15443c7327b5c736cc58aec90cf64f30a6f Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Fri, 20 Nov 2015 12:47:06 +0100
Subject: [PATCH hurd 4/4] add iteration

---
 libfshelp/translator-list.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libfshelp/translator-list.c b/libfshelp/translator-list.c
index 173da7f..26ab21b 100644
--- a/libfshelp/translator-list.c
+++ b/libfshelp/translator-list.c
@@ -241,3 +241,11 @@ fshelp_get_active_translators (char **translators,
   pthread_mutex_unlock (&translator_ihash_lock);
   return err;
 }
+
+/* For each active node, call FUN.  The node is to be locked around the call
+   to FUN.  If FUN returns non-zero for any node, then immediately stop, and
+   return that value.  */
+error_t __attribute__ ((weak))
+fshelp_iterate_active_translators (error_t (*fun)(struct node *))
+{
+}
-- 
2.1.4