]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
89711996 ZJS |
2 | /*** |
3 | This file is part of systemd. | |
4 | ||
5 | Copyright 2017 Zbigniew Jędrzejewski-Szmek | |
89711996 ZJS |
6 | ***/ |
7 | ||
c6e47247 ZJS |
8 | #include <stdbool.h> |
9 | ||
89711996 ZJS |
10 | #include "time-util.h" |
11 | ||
c6e47247 ZJS |
12 | typedef int (*gather_stdout_callback_t) (int fd, void *arg); |
13 | ||
14 | enum { | |
15 | STDOUT_GENERATE, /* from generators to helper process */ | |
16 | STDOUT_COLLECT, /* from helper process to main process */ | |
17 | STDOUT_CONSUME, /* process data in main process */ | |
18 | _STDOUT_CONSUME_MAX, | |
19 | }; | |
20 | ||
21 | int execute_directories( | |
22 | const char* const* directories, | |
23 | usec_t timeout, | |
24 | gather_stdout_callback_t const callbacks[_STDOUT_CONSUME_MAX], | |
25 | void* const callback_args[_STDOUT_CONSUME_MAX], | |
26 | char *argv[]); | |
3303d1b2 ZJS |
27 | |
28 | extern const gather_stdout_callback_t gather_environment[_STDOUT_CONSUME_MAX]; |