chiark / gitweb /
Drop my copyright headers
[elogind.git] / src / basic / exec-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2
3 #include <stdbool.h>
4
5 #include "time-util.h"
6
7 typedef int (*gather_stdout_callback_t) (int fd, void *arg);
8
9 enum {
10         STDOUT_GENERATE,   /* from generators to helper process */
11         STDOUT_COLLECT,    /* from helper process to main process */
12         STDOUT_CONSUME,    /* process data in main process */
13         _STDOUT_CONSUME_MAX,
14 };
15
16 int execute_directories(
17                 const char* const* directories,
18                 usec_t timeout,
19                 gather_stdout_callback_t const callbacks[_STDOUT_CONSUME_MAX],
20                 void* const callback_args[_STDOUT_CONSUME_MAX],
21                 char *argv[]);
22
23 #if 0 /// UNNEEDED by elogind
24 extern const gather_stdout_callback_t gather_environment[_STDOUT_CONSUME_MAX];
25 #endif // 0