mirror of
https://github.com/systemd/systemd.git
synced 2026-07-15 03:50:44 +00:00
This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
27 lines
803 B
C
27 lines
803 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
/***
|
|
Copyright 2017 Zbigniew Jędrzejewski-Szmek
|
|
***/
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "time-util.h"
|
|
|
|
typedef int (*gather_stdout_callback_t) (int fd, void *arg);
|
|
|
|
enum {
|
|
STDOUT_GENERATE, /* from generators to helper process */
|
|
STDOUT_COLLECT, /* from helper process to main process */
|
|
STDOUT_CONSUME, /* process data in main process */
|
|
_STDOUT_CONSUME_MAX,
|
|
};
|
|
|
|
int execute_directories(
|
|
const char* const* directories,
|
|
usec_t timeout,
|
|
gather_stdout_callback_t const callbacks[_STDOUT_CONSUME_MAX],
|
|
void* const callback_args[_STDOUT_CONSUME_MAX],
|
|
char *argv[]);
|
|
|
|
extern const gather_stdout_callback_t gather_environment[_STDOUT_CONSUME_MAX];
|