1 /* SPDX-License-Identifier: LGPL-2.1+ */
3 Copyright © 2017 Zbigniew Jędrzejewski-Szmek
10 typedef int (*gather_stdout_callback_t) (int fd, void *arg);
13 STDOUT_GENERATE, /* from generators to helper process */
14 STDOUT_COLLECT, /* from helper process to main process */
15 STDOUT_CONSUME, /* process data in main process */
19 int execute_directories(
20 const char* const* directories,
22 gather_stdout_callback_t const callbacks[_STDOUT_CONSUME_MAX],
23 void* const callback_args[_STDOUT_CONSUME_MAX],
26 #if 0 /// UNNEEDED by elogind
27 extern const gather_stdout_callback_t gather_environment[_STDOUT_CONSUME_MAX];