Commit Graph

30 Commits

Author SHA1 Message Date
Michael Scherle
173a25fbb8 4:4:4 & upsampling hw encoding 2024-07-29 12:58:31 +00:00
Frediano Ziglio
736d79949e Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (4):
      Find Python3 installation correctly on MacOS
      build: Correctly check for Python modules
      ci: Set WINEPATH during Windows build
      Replace EVP_PKEY_cmp with EVP_PKEY_eq

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2022-07-19 10:07:06 +01:00
Frediano Ziglio
6534d72a1e Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (1):
      build: Update Meson requirement to 0.49

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2021-06-14 11:30:55 +01:00
Frediano Ziglio
9376d5ed30 Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (3):
      canvas_base: Fix missing ntohl for Win32 platform
      meson: Generate missing intermediate target
      codegen: Make input structures for marshaller constant

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2021-05-24 08:16:30 +01:00
Marc-André Lureau
6e299f5081 Update spice-common
Frediano Ziglio (7):
      codegen: Remove bytes array length support
      codegen: Make "output_attrs" variable global
      codegen: Add a check to array type
      codegen: Propagate attributes to element under pointers
      codegen: Propagate zero_terminated attribute
      codegen: Handle zero_terminated attribute in demashaller
      helper-fuzzer-demarshallers: Check also test demarshallers
      Fix make distcheck

Marc-André Lureau (2):
      Fix invalid vdagent buffer access
      Fix build as meson subproject

Stefan Weil (1):
      Add missing include file string.h

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-04-14 21:43:06 +04:00
Frediano Ziglio
4f71d0cdb7 Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (18):
      snd_codec: Use better types for snd_codec_is_capable
      snd_codec: Use better type for function result
      snd_codec: Use better type for snd_codec_create mode
      backtrace: Do not attempt to compile if spice_backtrace is empty
      Avoid usage of GCC extension for __VA_ARGS__ where possible
      helper-fuzzer-demarshallers: Provide replacement for ftello for MSVC
      quic_tmpl: Remove unused bpc parameter
      ssl_verify: Do not check IP if we fail to resolve it
      proto: Add support for side mouse buttons
      quic: Constify a parameter
      quic: Fix typo in comment
      agent: Extend agent_check_message to support VDAgentMonitorsConfig extension
      quic: Check we have some data to start decoding quic image
      quic: Check image size in quic_decode_begin
      quic: Check RLE lengths
      quic: Avoid possible buffer overflow in find_bucket
      test-quic: Add fuzzer capabilities to the test
      test-quic: Add test cases for quic fuzzer

Haochen Tong (2):
      pixman_utils: fix clang "unused functions" warning
      marshal: fix clang "missing field initializer" warning on generated files

Marc-André Lureau (1):
      agent: fix vdagent monitor flag filtering

Changes in sound.cpp are required due to improved types.

In particular some security related changes are imported.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Uri Lublin <ulublin@redhat.com>
2020-10-24 14:34:39 +01:00
Frediano Ziglio
4e4e31cc4b Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (6):
      test-utils: Add missing include file
      test-quic: Test fixed images
      test-quic: Different "more_space" function for decode and encode
      Reuse macros from spice-protocol
      rect: Avoid usage of "small"
      build: Remove -Werror from Meson build

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-07-03 16:36:08 +01:00
Frediano Ziglio
79be653d80 Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (8):
      helper-fuzzer-demarshallers: Add an helper for fuzzy testing demarshallers code
      Add helper code for agent messages
      agent: Fix incompatibility with Visual Studio compiler
      canvas_base: Format canvas_draw_blend similarly to canvas_draw_copy
      canvas_base: Rename blend to copy for canvas_draw_blend argument
      canvas_base: Remove canvas_draw_blend/canvas_draw_copy duplication
      build: Remove dependency to gio2 from common and server libraries
      build: Remove dependencies to libgthread

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-04-29 18:54:01 +01:00
Frediano Ziglio
eb31f13459 build: Tell SPICE common the SPICE protocol version we require
This allows SPICE common to request the right version.
This is also implemented by Autoconf build already.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2020-04-08 14:33:13 +01:00
Frediano Ziglio
9dde316c91 Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (8):
      ci: Fix build of spice-protocol
      lz_common: Remove unused commented out define
      test-logging: Do not use G_PASTE to join level
      ci: Use spice-protocol master for make-win job
      build: Allow to build disabling code generation
      proto: Allows to specify @deprecated option for flags and enums
      messages: Remove obsolete structure definition
      proto: Generate correct constants for smartcard support

Kevin Pouget (1):
      spice.proto: add quality_indicator messages

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-04-08 07:41:11 +01:00
Frediano Ziglio
70c71fe487 Remove Celt support
Take from spice-common this changeset:

Victor Toso (1):
      sound: remove celt support

Remove and update reference from CI and documentation.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2020-03-17 17:15:51 +00:00
Frediano Ziglio
b196e9e78d Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (3):
      Add missing dependency in Autoconf integration
      test-utils: Add a test for some utils.h functions
      build: Use warning_level option for Meson

Kevin Pouget (1):
      utils: add set_bitmap/test_bitmap functions

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-03-17 15:34:49 +00:00
Frediano Ziglio
626ad248f5 build: Update spice-common integration
Use new common.m4 include file to make easier to integrate
with spice-common repository.
The new include will allow for instance spice-common to
add additional dependencies without changes (or minor) to
spice-server.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Kevin Pouget <kpouget@redhat.com>
2020-03-02 14:04:06 +00:00
Frediano Ziglio
a7f25ca5a8 Update spice-common submodule
This brings in the following changes:

Eduardo Lima (Etrunko) (1):
      build: Unconditionally link with libm if found

Frediano Ziglio (23):
      quic: Remove unused include header
      quic: Use G_UNLIKELY in some hot paths
      quic: Do not include quic_config.h in quic.h
      snd_codec: Avoid some useless casts declaring struct type
      snd_codec: Do not include not needed headers
      build: Clean up some configure checks
      test-quic: Convert image to get more testing (gray, rgb16)
      log: Add spice_extra_assert
      Reuse new spice_extra_assert macro
      marshallers: Avoid some useless pointers in SpiceMarshallerData
      lz_decompress: Constify some variable
      lz_decompress: Do not execute nested checks
      lz_decompress: Simplify loop
      lz_decompress: Reindented comment
      lz_decompress: Move variable declaration in nested scope
      lz_decompress: Read "ctrl" inside loop
      lz_compress: Cleanup unused macros
      codegen: Check unsafe values alone
      snd_codec: Update field names in function documentation
      test-quic: Avoid namespace conflict with Gdk API
      test-quic: Cache gdk_pixbuf_get_byte_length value
      test-quic: Reduce height of test image
      test-quic: Run 1 random quic test per color mode

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-03-02 14:02:21 +00:00
Frediano Ziglio
13de28fc27 Update spice-common submodule
This brings in the following changes:

Fabrice Fontaine (2):
      configure.ac: add --enable-tests
      meson: add tests option

Frediano Ziglio (4):
      codegen: Add 'chunk' to the output attributes
      codegen: Check validity of array members
      codegen: Document "chunk" attribute
      codegen: Ignore path generating include guards

Kevin Pouget (3):
      agent-interface: introduce the core of the Agent Interface
      agent-interface: add configuration functions
      build: Introduce the agent-interface as an alternative instrumentation library

Updated files are due to agent-interface updates.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Kevin Pouget <kpouget@redhat.com>
2019-11-26 15:39:07 +00:00
Frediano Ziglio
5d2b204e48 Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (1):
      proto: Demarshal Smartcard data field

Kevin Pouget (1):
      common/recorder.h: do not complain on unused (dummy) recorders

This is in preparation to use the generated code for Smartcard
(currently not used so won't create regressions).

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-10-08 16:01:56 +01:00
Frediano Ziglio
41387cf1e1 meson: Remove a warning in spice-common
This will drop the following warning:
"Project targetting '>= 0.48.0' but tried to use feature introduced
in '0.50.0': install arg in configure_file"

This brings in the following changes:

Frediano Ziglio (5):
      codegen: Use has_end_attr instead of has_attr("end")
      codegen: Exit with error on error generating C structures
      protocol: Removed unneeded type specifications
      codegen: Add a check for C structure fields
      meson: Remove "install" argument from configure_file

Uri Lublin (2):
      ptypes.py: remove useless condition member != None
      test-marshallers.proto: ArrayMessage: make space for name

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2019-08-29 17:04:59 +01:00
Frediano Ziglio
b29f678984 build: Disable Celt support by default
We started disabling Celt support making the option required.
After 2 releases start making it disabled unless explicitly
enabled.

This makes https://gitlab.freedesktop.org/spice/spice/merge_requests/2
obsolete.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2019-06-13 09:42:12 +01:00
Frediano Ziglio
69c27d59be Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (4):
      gitignore: Ignore auto generated generated_messages.h file
      Do not check for HAVE_CONFIG_H
      build: Remove unused git-version-gen file
      recorder: Update

Uri Lublin (1):
      codegen Makefile: add common/ to --include client_marshallers.h

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2019-06-12 14:52:15 +01:00
Frediano Ziglio
39654c03a0 Fix meson build importing spice-common fix
This brings in the following changes:

Eduardo Lima (Etrunko) (1):
      meson: Make targets list store dictionaries instead of lists

Frediano Ziglio (2):
      meson: Fix dependency of generated files
      meson: Do not build generated files twice

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-04-05 17:12:37 +01:00
Frediano Ziglio
2eeacd1e0d Update spice-common submodule
This brings in the following changes:

Christophe Fergeau (8):
      canvas_base: Fix variable shadowing warning
      backtrace: Add missing include
      lz: Don't try to print uninitialized variable
      build: Add missing G_GNUC_PRINTF annotations
      build: Update verify.h to latest version
      test-marshallers: Fix header guard
      quic: Fix QUIC_VERSION definition
      log: Let gcc know about the logging macros which abort

Frediano Ziglio (13):
      codegen: Rename --prefix parameter to --suffix
      ci: Remove dependencies from copr build
      build: Remove snd_codec.h from EXTRA_DIST
      test-ssl-verify: Improve subject_to_x509_name coverage
      meson: Remove some useless checks
      codegen: Factor out a function to write output file
      codegen: Generate headers while generating code
      codegen: Allows to generate C declarations automatically
      Allow to generate C declarations for spice.proto
      Generate automatically most C message declarations
      recorder: Update
      build: Add new check for recorder library
      proto: Fix typo in message name

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-04-03 10:38:13 +01:00
Frediano Ziglio
7f57ff0186 Remove support for 64 bit pointers on protocol
Import "codegen: Remove support for --ptrsize" change from spice-common
and update code accordingly.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2019-03-18 12:42:32 +00:00
Frediano Ziglio
2ad499ab1f Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (11):
      codegen: Document ptr_array attribute
      codegen: Use a better type for pointer converted to integer
      codegen: Reduce indentation
      codegen: Fix c_type result for TypeAlias
      codegen: Check wrong attribute
      codegen: Add a test for attribute combination
      mem: Fix compile error if alignment-checks option is used
      log: Remove useless includes
      proto: Remove obsolete TunnelChannel
      protocol: Add a dummy TunnelChannel
      messages: Remove fields not used by the protocol

Marc-André Lureau (1):
      docs: add spice URI scheme

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2019-03-18 12:42:07 +00:00
Eduardo Lima (Etrunko)
a8737c5740 meson: switch smartcard option to auto feature
Make it compatible with spice-common.

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-02-13 17:00:07 +00:00
Frediano Ziglio
1de0e6a292 Allows to enable recorder integration
recorder library will be used to collect some statistics during
development.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-01-23 14:51:00 +00:00
Frediano Ziglio
b9cc232a70 Update spice-common submodule
This brings in the following changes:

Frediano Ziglio (11):
      Update --enable-celt051 help string
      test-marshaller: Make test_overflow static
      test-marshaller: Make main declaration easier
      test-region: Add missing dependencies
      ci: Run tests on Windows using wine
      Use a single copy of subject string
      log: Use proper format attribute for spice_log
      marshaller: Provide spice_marshaller_fill_iovec for Windows
      test: Add a test for subject_to_x509_name function
      lz: Avoid buffer reading overflow checking for image type
      lz: More checks on image sizes

Jonathon Jongsma (1):
      Fix some additional typos

Marc-André Lureau (5):
      Bump libcacard requirement to 2.5.1
      Add a .gitpublish
      build-sys: improve asciidoc rules to allow multiple targets
      quic: fix sign-compare warning
      meson: fix building for big-endian host

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-01-23 14:50:47 +00:00
Christophe Fergeau
920dabdd88 dcc: Add debug log when setting compression
Without this it's not obvious that a compression setting took effect.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-11-26 13:03:00 +00:00
Frediano Ziglio
c4e26a54d0 Use new common demarshallers.h
Avoids mismatching duplicate declarations causing potentially
ABI incompatibilities.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2018-10-15 13:39:10 +01:00
Frediano Ziglio
94c1a35fee Update spice-common submodule
This brings in the following changes:

Eduardo Lima (Etrunko) (5):
      ci: Fix typo: celt501 -> celt051
      meson: Make options accessible through parent project
      meson: Fix checking for python
      Meson: Make use of dictionary type introduced in version 0.47
      Meson: Make use of 'feature' option type introduced in version 0.47

Frediano Ziglio (2):
      ci: Fix Meson feature option
      Fix flexible array buffer overflow

Lukáš Hrázký (1):
      spice*.proto: Replace tabs with the appropriate number of spaces

Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2018-08-16 21:29:52 +01:00
Eduardo Lima (Etrunko)
b0e141b387 build: Move spice-common to subprojects/ directory
The reason for this commit is that Meson expects all submodules to be
placed in this subdirectory, and since autotools build is more flexible
in this case, we make some small adjustments to configure.ac and
Makefile.am files to accommodate for this change.

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-07-23 14:49:19 -03:00