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