/src/systemd/src/shared/osc-context.h
Line | Count | Source |
1 | | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | | #pragma once |
3 | | |
4 | | #include "sd-id128.h" |
5 | | |
6 | | #include "shared-forward.h" |
7 | | |
8 | | int osc_context_open_boot(char **ret_seq); |
9 | | int osc_context_open_container(const char *name, char **ret_seq, sd_id128_t *ret_context_id); |
10 | | int osc_context_open_vm(const char *name, char **ret_seq, sd_id128_t *ret_context_id); |
11 | | int osc_context_open_chpriv(const char *target_user, char **ret_seq, sd_id128_t *ret_context_id); |
12 | | int osc_context_open_session(const char *user, const char *session_id, char **ret_seq, sd_id128_t *ret_context_id); |
13 | | int osc_context_open_service(const char *unit, sd_id128_t invocation_id, char **ret_seq); |
14 | | int osc_context_close(sd_id128_t id, char **ret_seq); |
15 | | |
16 | 0 | static inline void osc_context_closep(sd_id128_t *context_id) { |
17 | 0 | (void) osc_context_close(*ASSERT_PTR(context_id), NULL); |
18 | 0 | } Unexecuted instantiation: osc-context.c:osc_context_closep Unexecuted instantiation: execute.c:osc_context_closep |
19 | | |
20 | | int osc_context_id_from_invocation_id(sd_id128_t id, sd_id128_t *ret); |