summaryrefslogtreecommitdiff
path: root/src/machine/operation.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-29 20:32:56 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-02 11:17:06 +0200
commit795c5d31affeb3b3edbf673940cc0f16afebc7a8 (patch)
treeffd79868bad763f8bfa094f7a4b6c0e824333bb5 /src/machine/operation.h
parent5d2036b5f3506bd0ff07042aee8d69c26db32298 (diff)
machined: rework copy-from/copy-to operation to use generic Operation object
With this all potentially slow operations are done out-of-process, asynchronously, using the same "Operation" object.
Diffstat (limited to 'src/machine/operation.h')
-rw-r--r--src/machine/operation.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/machine/operation.h b/src/machine/operation.h
index 9d4c3afe45..7ca47bc3af 100644
--- a/src/machine/operation.h
+++ b/src/machine/operation.h
@@ -34,12 +34,14 @@ typedef struct Operation Operation;
struct Operation {
Manager *manager;
+ Machine *machine;
pid_t pid;
sd_bus_message *message;
int errno_fd;
sd_event_source *event_source;
LIST_FIELDS(Operation, operations);
+ LIST_FIELDS(Operation, operations_by_machine);
};
-int operation_new(Manager *m, pid_t child, sd_bus_message *message, int errno_fd);
+int operation_new(Manager *manager, Machine *machine, pid_t child, sd_bus_message *message, int errno_fd);
Operation *operation_free(Operation *o);