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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user