]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/exec-util.h
tree-wide: drop 'This file is part of systemd' blurb
[thirdparty/systemd.git] / src / basic / exec-util.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
89711996 2/***
89711996 3 Copyright 2017 Zbigniew Jędrzejewski-Szmek
89711996
ZJS
4***/
5
c6e47247
ZJS
6#include <stdbool.h>
7
89711996
ZJS
8#include "time-util.h"
9
c6e47247
ZJS
10typedef int (*gather_stdout_callback_t) (int fd, void *arg);
11
12enum {
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 */
16 _STDOUT_CONSUME_MAX,
17};
18
19int execute_directories(
20 const char* const* directories,
21 usec_t timeout,
22 gather_stdout_callback_t const callbacks[_STDOUT_CONSUME_MAX],
23 void* const callback_args[_STDOUT_CONSUME_MAX],
24 char *argv[]);
3303d1b2
ZJS
25
26extern const gather_stdout_callback_t gather_environment[_STDOUT_CONSUME_MAX];