[Spice-commits] spice/enums.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 7 09:32:18 UTC 2020


 spice/enums.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 5ab1474cb5145270084bc8e8df2cacaf1ec42f4d
Author: Victor Toso <me at victortoso.com>
Date:   Tue Mar 17 11:39:36 2020 +0100

    Formally deprecated celt 0.5.1 usage
    
    Quoting git log from spice-common 72b0d60 "build: Disable celt 0.5.1
    by default" in 2018-06-05 [0]
    
      |  build: Disable celt 0.5.1 by default
      |
      |  This version of the CELT codec has long been obsolete, and
      |  Opus support has been added nearly 5 years ago. It's time
      |  we move on and try to stop using Celt ;)
      |  This commit disables CELT by default, but since
      |  this could be an unexpected change for packagers, if CELT
      |  0.5.1 development headers are installed, it will error
      |  out unless --enable-celt051/--disable-celt051 has
      |  been explicitly specified.
    
    [0] https://gitlab.freedesktop.org/spice/spice-common/commit/72b0d60
    
    This change is part of spice server since f5785db1 or v0.14.1 and
    spice-gtk e6e9d7a or v0.35.
    
    It is time to formally deprecated it and remove from all  components
    in favor of opus mode.
    
    Signed-off-by: Victor Toso <victortoso at redhat.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/spice/enums.h b/spice/enums.h
index 594ab5d..d46491f 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -32,6 +32,8 @@
 #ifndef _H_SPICE_ENUMS
 #define _H_SPICE_ENUMS
 
+#include <spice/macros.h>
+
 typedef enum SpiceLinkErr {
     SPICE_LINK_ERR_OK,
     SPICE_LINK_ERR_ERROR,
@@ -369,7 +371,7 @@ typedef enum SpiceCursorFlags {
 typedef enum SpiceAudioDataMode {
     SPICE_AUDIO_DATA_MODE_INVALID,
     SPICE_AUDIO_DATA_MODE_RAW,
-    SPICE_AUDIO_DATA_MODE_CELT_0_5_1,
+    SPICE_AUDIO_DATA_MODE_CELT_0_5_1 SPICE_GNUC_DEPRECATED,
     SPICE_AUDIO_DATA_MODE_OPUS,
 
     SPICE_AUDIO_DATA_MODE_ENUM_END


More information about the Spice-commits mailing list