]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/machine/operation.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2016 Lennart Poettering
10 #include <sys/types.h>
17 typedef struct Operation Operation
;
21 #define OPERATIONS_MAX 64
27 sd_bus_message
*message
;
30 sd_event_source
*event_source
;
31 int (*done
)(Operation
*o
, int ret
, sd_bus_error
*error
);
32 LIST_FIELDS(Operation
, operations
);
33 LIST_FIELDS(Operation
, operations_by_machine
);
36 int operation_new(Manager
*manager
, Machine
*machine
, pid_t child
, sd_bus_message
*message
, int errno_fd
, Operation
**ret
);
37 Operation
*operation_free(Operation
*o
);