VARLINK_DEFINE_INPUT(sshAddress, VARLINK_STRING, VARLINK_NULLABLE),
VARLINK_DEFINE_INPUT(sshPrivateKeyPath, VARLINK_STRING, VARLINK_NULLABLE));
+static VARLINK_DEFINE_ERROR(MachineExists);
+
VARLINK_DEFINE_INTERFACE(
io_systemd_Machine,
"io.systemd.Machine",
- &vl_method_Register);
+ &vl_method_Register,
+ &vl_error_MachineExists);
if (r < 0)
return log_error_errno(r, "Failed to connect to machined on /run/systemd/machine/io.systemd.Machine: %m");
-
return varlink_callb_and_log(vl,
"io.systemd.Machine.Register",
NULL,