import: fix AlreadyInProgress Varlink error missing remote field

The handler sends the remote URL as a parameter via sd_varlink_errorbo()
but the IDL declared the error with no fields, making the payload
undiscoverable via introspection.
This commit is contained in:
noxiouz
2026-02-27 08:48:25 +01:00
committed by Daan De Meyer
parent 56d44e8a02
commit c22a131e74
+4 -1
View File
@@ -101,7 +101,10 @@ static SD_VARLINK_DEFINE_METHOD_FULL(
SD_VARLINK_FIELD_COMMENT("The numeric ID of this download"),
SD_VARLINK_DEFINE_OUTPUT(id, SD_VARLINK_INT, SD_VARLINK_NULLABLE));
static SD_VARLINK_DEFINE_ERROR(AlreadyInProgress);
static SD_VARLINK_DEFINE_ERROR(
AlreadyInProgress,
SD_VARLINK_FIELD_COMMENT("The URL of the transfer already in progress."),
SD_VARLINK_DEFINE_FIELD(remote, SD_VARLINK_STRING, 0));
static SD_VARLINK_DEFINE_ERROR(TransferCancelled);
static SD_VARLINK_DEFINE_ERROR(TransferFailed);
static SD_VARLINK_DEFINE_ERROR(NoTransfers);