]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/kill.h
e9655901550a29400490eafe06e8ecee124dc279
1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 Copyright 2012 Lennart Poettering
8 typedef struct KillContext KillContext
;
15 typedef enum KillMode
{
16 /* The kill mode is a property of a unit. */
17 KILL_CONTROL_GROUP
= 0,
22 _KILL_MODE_INVALID
= -1
32 typedef enum KillWho
{
33 /* Kill who is a property of an operation */
41 _KILL_WHO_INVALID
= -1
44 void kill_context_init(KillContext
*c
);
45 void kill_context_dump(KillContext
*c
, FILE *f
, const char *prefix
);
47 const char *kill_mode_to_string(KillMode k
) _const_
;
48 KillMode
kill_mode_from_string(const char *s
) _pure_
;
50 const char *kill_who_to_string(KillWho k
) _const_
;
51 KillWho
kill_who_from_string(const char *s
) _pure_
;