return ENOENT for unknown resources

Fix some other errors as well, ENOSYS for invalid interface, ENOTSUP
for unimplemented methods.
This commit is contained in:
Wim Taymans 2020-11-20 12:11:37 +01:00
parent 12d831fc39
commit 387009e0d6
4 changed files with 6 additions and 6 deletions

View file

@ -747,7 +747,7 @@ static int core_demarshal_destroy(void *object, const struct pw_protocol_native_
no_resource:
pw_log_error("client %p: unknown resource %u op:%u", client, id, msg->opcode);
pw_resource_errorf(resource, -EINVAL, "unknown resource %d op:%u", id, msg->opcode);
pw_resource_errorf(resource, -ENOENT, "unknown resource %d op:%u", id, msg->opcode);
return 0;
}