Skip to content
Commit 334cef51 authored by Frediano Ziglio's avatar Frediano Ziglio
Browse files

error_codes: Remove obsolete header file



This file was used by the old client to hold return error codes.

Signed-off-by: default avatarFrediano Ziglio <fziglio@redhat.com>
Acked-by: default avatarSnir Sheriber <ssheribe@redhat.com>
parent ee136f00
Loading
Loading
Loading
Loading
  • Is this really valid? Your spice client is not the only one using these headers, please see the Looking Glass project.

  • Author Owner

    They are using the wrong enumeration, correct ones are SPICE_LINK_ERR_xxx. Can you open a bug to Looking Glass ?

  • Even if the enumeration is obsolete, we should not pull the plug like that on external users, I'd revert and release 0.12.15.1 (or whatever version works)

  • Author Owner

    I don't agree, the bug is in the external code. Opened a pull request to fix the issue https://github.com/gnif/LookingGlass/pull/126.

    Edited by Frediano Ziglio
  • I am the author of Looking Glass, thanks for the patch. I was unaware of the rename as the Spice client in LG was written less then a year ago based on the Spice PDF documentation which doesn't use this new enumeration. Perhaps a bug should be opened against the PDF document for being out of date.

  • Even if the external code has a bug and should not be using these enums, we should not break it, and then blame our users. So yes, the external code needs to be fixed, but this also shows that this removal was premature.

  • Author Owner

    On the other hand we would never knew that the documentation was wrong. Waiting other 5/10 years won't have helped.

  • Author Owner

    @geoff , where did you find the PDF ? The PDF I can find uses RED_ERROR_xxx constants which are still wrong but better than the client ones.

    Edited by Frediano Ziglio
  • @fziglio it was the same PDF that you are seeing. https://www.spice-space.org/static/docs/spice_protocol.pdf

    I wrote this code quite some time ago and my memory is a little fuzzy, however I did make the natural leap of grepping for the error defines based on the PDF which turned up the deprecated header.

  • Author Owner

    Well, they seems similar to the RED_ERROR_xxx ones but the values are also different so using them would result in bad feedback to the user. It would be great to update the PDF, even better to convert to some markup/down (I think there are old patches about :-( ) and update. Thanks

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment