]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/machine/operation.h
resolve: read/save port number and SNI from/into link state file
[thirdparty/systemd.git] / src / machine / operation.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <sys/types.h>
5
6 #include "sd-bus.h"
7 #include "sd-event.h"
8
9 #include "list.h"
10
11 typedef struct Operation Operation;
12
13 #include "machined.h"
14
15 #define OPERATIONS_MAX 64
16
17 struct Operation {
18 Manager *manager;
19 Machine *machine;
20 pid_t pid;
21 sd_bus_message *message;
22 int errno_fd;
23 int extra_fd;
24 sd_event_source *event_source;
25 int (*done)(Operation *o, int ret, sd_bus_error *error);
26 LIST_FIELDS(Operation, operations);
27 LIST_FIELDS(Operation, operations_by_machine);
28 };
29
30 int operation_new(Manager *manager, Machine *machine, pid_t child, sd_bus_message *message, int errno_fd, Operation **ret);
31 Operation *operation_free(Operation *o);