]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/kill.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2012 Lennart Poettering
10 typedef struct KillContext KillContext
;
17 typedef enum KillMode
{
18 /* The kill mode is a property of a unit. */
19 KILL_CONTROL_GROUP
= 0,
24 _KILL_MODE_INVALID
= -1
34 typedef enum KillWho
{
35 /* Kill who is a property of an operation */
43 _KILL_WHO_INVALID
= -1
46 void kill_context_init(KillContext
*c
);
47 void kill_context_dump(KillContext
*c
, FILE *f
, const char *prefix
);
49 const char *kill_mode_to_string(KillMode k
) _const_
;
50 KillMode
kill_mode_from_string(const char *s
) _pure_
;
52 const char *kill_who_to_string(KillWho k
) _const_
;
53 KillWho
kill_who_from_string(const char *s
) _pure_
;