0c69794138
These lines are generally out-of-date, incomplete and unnecessary. With SPDX and git repository much more accurate and fine grained information about licensing and authorship is available, hence let's drop the per-file copyright notice. Of course, removing copyright lines of others is problematic, hence this commit only removes my own lines and leaves all others untouched. It might be nicer if sooner or later those could go away too, making git the only and accurate source of authorship information.
32 lines
767 B
C
32 lines
767 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
#pragma once
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "sd-bus.h"
|
|
#include "sd-event.h"
|
|
|
|
#include "list.h"
|
|
|
|
typedef struct Operation Operation;
|
|
|
|
#include "machined.h"
|
|
|
|
#define OPERATIONS_MAX 64
|
|
|
|
struct Operation {
|
|
Manager *manager;
|
|
Machine *machine;
|
|
pid_t pid;
|
|
sd_bus_message *message;
|
|
int errno_fd;
|
|
int extra_fd;
|
|
sd_event_source *event_source;
|
|
int (*done)(Operation *o, int ret, sd_bus_error *error);
|
|
LIST_FIELDS(Operation, operations);
|
|
LIST_FIELDS(Operation, operations_by_machine);
|
|
};
|
|
|
|
int operation_new(Manager *manager, Machine *machine, pid_t child, sd_bus_message *message, int errno_fd, Operation **ret);
|
|
Operation *operation_free(Operation *o);
|