]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/kill.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
4 typedef struct KillContext KillContext
;
11 typedef enum KillMode
{
12 /* The kill mode is a property of a unit. */
13 KILL_CONTROL_GROUP
= 0,
18 _KILL_MODE_INVALID
= -1
24 int final_kill_signal
;
30 typedef enum KillWho
{
31 /* Kill who is a property of an operation */
39 _KILL_WHO_INVALID
= -1
42 void kill_context_init(KillContext
*c
);
43 void kill_context_dump(KillContext
*c
, FILE *f
, const char *prefix
);
45 const char *kill_mode_to_string(KillMode k
) _const_
;
46 KillMode
kill_mode_from_string(const char *s
) _pure_
;
48 const char *kill_who_to_string(KillWho k
) _const_
;
49 KillWho
kill_who_from_string(const char *s
) _pure_
;