| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "output-mode.h" |
| 5 |
#include "shared-forward.h" |
| 6 |
|
| 7 |
typedef void (*fork_notify_handler_t)(void *userdata); |
| 8 |
|
| 9 |
int fork_notify(char * const *argv, fork_notify_handler_t child_handler, void *child_userdata, PidRef *ret_pidref); |
| 10 |
|
| 11 |
void fork_notify_terminate(PidRef *pidref); |
| 12 |
|
| 13 |
void fork_notify_terminate_many(sd_event_source **array, size_t n); |
| 14 |
|
| 15 |
int journal_fork(RuntimeScope scope, char * const *units, OutputMode output, PidRef *ret_pidref); |
| 16 |
|
| 17 |
int fork_journal_remote( |
| 18 |
const char *listen_address, |
| 19 |
const char *output, |
| 20 |
uint64_t max_use, |
| 21 |
uint64_t keep_free, |
| 22 |
uint64_t max_file_size, |
| 23 |
uint64_t max_files, |
| 24 |
PidRef *ret_pidref); |