journald-server.h revision 119e9655dc36f18ed74f9a256d5c693b5aeb43ab
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering This file is part of systemd.
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering Copyright 2011 Lennart Poettering
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering systemd is free software; you can redistribute it and/or modify it
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering under the terms of the GNU Lesser General Public License as published by
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering the Free Software Foundation; either version 2.1 of the License, or
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering (at your option) any later version.
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering systemd is distributed in the hope that it will be useful, but
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering Lesser General Public License for more details.
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering You should have received a copy of the GNU Lesser General Public License
c2756a68401102786be343712c0c35acbd73d28dLennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
4c213d6cf416917c61f82d8bee795b8f3a4c5372WaLyong Cho LIST_HEAD(StdoutStream, stdout_streams_notify_queue);
4c213d6cf416917c61f82d8bee795b8f3a4c5372WaLyong Cho char machine_id_field[sizeof("_MACHINE_ID=") + 32];
4c213d6cf416917c61f82d8bee795b8f3a4c5372WaLyong Cho /* Cached cgroup root, so that we don't have to query that all the time */
4c213d6cf416917c61f82d8bee795b8f3a4c5372WaLyong Cho#define SERVER_MACHINE_ID(s) ((s)->machine_id_field + strlen("_MACHINE_ID="))
c7040b5d1c2c148f12b6a5eef3dfce1661805131Lennart Poetteringvoid server_dispatch_message(Server *s, struct iovec *iovec, unsigned n, unsigned m, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len, const char *unit_id, int priority, pid_t object_pid);
4c213d6cf416917c61f82d8bee795b8f3a4c5372WaLyong Chovoid server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...) _printf_(3,4);
6c12b52e19640747e96f89d85422941a23dc6b29Lennart Poettering/* gperf lookup function */
6c12b52e19640747e96f89d85422941a23dc6b29Lennart Poetteringconst struct ConfigPerfItem* journald_gperf_lookup(const char *key, unsigned length);
095dc59660c3dde782f32fe5a52b577f7700578bLennart Poetteringint config_parse_storage(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
6c12b52e19640747e96f89d85422941a23dc6b29Lennart Poetteringconst char *storage_to_string(Storage s) _const_;
6c12b52e19640747e96f89d85422941a23dc6b29Lennart PoetteringStorage storage_from_string(const char *s) _pure_;
601185b43da638b1c74153deae01dbd518680889Zbigniew Jędrzejewski-Szmekint config_parse_split_mode(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
6c12b52e19640747e96f89d85422941a23dc6b29Lennart Poetteringconst char *split_mode_to_string(SplitMode s) _const_;
6c12b52e19640747e96f89d85422941a23dc6b29Lennart PoetteringSplitMode split_mode_from_string(const char *s) _pure_;
6c12b52e19640747e96f89d85422941a23dc6b29Lennart Poetteringvoid server_fix_perms(Server *s, JournalFile *f, uid_t uid);
6c12b52e19640747e96f89d85422941a23dc6b29Lennart Poetteringint server_vacuum(Server *s, bool verbose, bool patch_min_use);
6c12b52e19640747e96f89d85422941a23dc6b29Lennart Poetteringint server_schedule_sync(Server *s, int priority);