From a8c4d36d801962ad46997447866b883eb38f6de1 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 d13a501..d68ba1e 100644 --- a/libfshelp/translator-list.c +++ b/libfshelp/translator-list.c @@ -242,3 +242,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