Commit Graph

96 Commits

Author SHA1 Message Date
Alon Levy
9d5ef9beec enums: typedefy SpiceBitmapFmt 2011-02-10 20:11:11 +02:00
Alon Levy
f5689c14cf qxl_dev.h: make QXLEffectType an enum instead of defines 2011-02-10 15:43:09 +02:00
Alon Levy
07aa808a21 qxl_dev.h: make QXLBitmapFlags a typedef 2011-02-10 15:43:09 +02:00
Alon Levy
6e719d6fcc qxl_dev.h: make QXLSurfaceCmdType a typedef 2011-02-10 15:43:06 +02:00
Alon Levy
3b67b660b6 qxl_dev.h: name QXL_IMAGE_* flags as type and enum QXLImageFlags 2011-02-10 15:43:02 +02:00
Alon Levy
dbe9402bc2 qxl_dev.h: make QXLCmdType enum also a typedef 2011-02-10 15:42:59 +02:00
Arnon Gilboa
d529c7d830 define spice_mb MemoryBarrier for WIN64
__asm is not supported on _WIN64, so use macro instead
required for Windows x64 guest display driver (qxldd.dll)
2011-02-02 11:34:19 +02:00
Hans de Goede
0b953e03ba Update license header for spice/macros.h
This one mistakenly had a GPL header rather then an LGPL header.
2011-01-21 15:39:09 +01:00
Marc-André Lureau
45f954aadb mingw32: specify packing alignment to 1 byte, to override -mms-bitfield
Ex: G_STRUCT_OFFSET(SpiceLinkReply, num_channel_caps) is 172 bytes
when compiled with -mms-bitfield, and 170 bytes without.

GLib/Gtk are compiled with -mms-bitfield, and it is necessary to
compile with the same option for compatibility. The pack pragma
for MINGW32 corrects the structure alignement.

We could use the pack pragma for GNUC unconditionally, that could help
to ensure struct binary compatibility between different compiled
flavours.
2010-12-29 16:13:55 +01:00
Alon Levy
c3822ca59b smartcard: add channel 2010-10-25 14:51:42 +02:00
Hans de Goede
d63c0072b4 controller: Make all text utf-8
We are making all text send over the controller socket utf-8, rather then
having somethings as 8 bit (hostname) and others unicode16.

Adjust the CONTROLLER_MENU_*_DELIMITER defines for this.
2010-10-21 16:47:12 +02:00
Arnon Gilboa
6e499cf69e Add controller protocol 2010-10-18 10:08:45 +02:00
Arnon Gilboa
8e1e17755e Add foreign menu protocol 2010-10-18 10:02:11 +02:00
Hans de Goede
7e66782a76 Add clipboard data types for images 2010-10-12 13:52:40 +02:00
Hans de Goede
55bdae1179 VD_AGENT_CLIPBOARD_GRAB takes a list of types rather then a single type
This way the grabbing side can indicate when the clipboard owning app
can provide the clipboard contents in multiple formats, ie plain text
and html.

Also drop the VD_AGENT_CLIPBOARD_BITMAP type until we have a clear
cross platform definition of the contents to send for bitmap type
clipboard data.
2010-10-04 16:54:00 +02:00
Arnon Gilboa
016cdb0b1d vd_agent: add VD_AGENT_CAP_CLIPBOARD_BY_DEMAND capability enum
VD_AGENT_CLIPBOARD_NONE for unsupported clipboard types
2010-10-04 16:48:27 +02:00
Arnon Gilboa
5fdd0ba665 vd_agent: add protocol messages for clipboard/selection-owner model
-VD_AGENT_CLIPBOARD_GRAB(type) - tell the other side that an application in our side ("we") got ownership of the clipboard.
-VD_AGENT_CLIPBOARD_REQUEST(type) - after we know the other side owns the clipboard (GRAB received), we notify the os we are the owner. when we are asked by the os/app for the clipboard data, we send this REQUEST msg to the other side.
-VD_AGENT_CLIPBOARD(type, data) - the existing message for sending the clipboard, is now sent only in response to REQUEST.
-VD_AGENT_CLIPBOARD_RELEASE - tell the other side that we are no longer the owner of the clipboard (e.g. the owner app was closed).

this patch will be followed by agent & client patches handling the above messages.
2010-10-04 16:48:27 +02:00
Gerd Hoffmann
527d52ae25 add compat flag for 16bpp mode
spice 0.6 uses 32bpp values unconditionally for brush and palette
colors.

spice 0.4 used to use 16 bpp or 32 bpp depending on the video mode.
The qxl parser needs to know the guest video mode depth to correctly
interpret these values in spice 0.4 compat mode.  Add a flag to pass
on this informartion.
2010-09-14 10:08:28 +02:00
Alon Levy
31d502522a add vd_agent announce capabilities message 2010-08-31 11:08:33 +03:00
Alon Levy
e27cb334cf move pipe header defines from reds.c to spice-protocol 2010-08-30 13:25:44 +03:00
Alexander Larsson
ca700d1fa7 Change major to 2 to declare network protocol stable 2010-08-29 20:17:36 +03:00
Yonit Halperin
3f63e04881 vdagent protocol: add display setting 2010-08-29 20:17:36 +03:00
Arnon Gilboa
b0f61eba25 client/agent: add clipboard max size limit for sending to/from the guest agent
define default & env variable for overriding it
2010-07-21 17:41:13 +03:00
Alon Levy
a94a5b171a clipboard agent message added 2010-07-11 12:09:31 +03:00
Alexander Larsson
8ba4939810 Fix misspellings
SpicedSubMessage -> SpiceSubMessage
QXLAlphaBlnd -> QXLAlphaBlend
2010-07-08 18:22:41 +02:00
Alexander Larsson
4cc9675ef5 Include enums.h from qxl_dev.h
This makes stuff keep building as before when draw.h included enum.h
2010-07-08 15:56:14 +02:00
Alexander Larsson
8deadab956 List all the PCI ids and revisions instead of just the latest/current 2010-07-08 15:16:22 +02:00
Alexander Larsson
a65d4b5d09 Move spice/draw.h to spice 2010-07-08 13:36:40 +02:00
Alexander Larsson
b25441f26b Add QXLCursorHeader and use instead of SpiceCursorHeader in qxl 2010-07-08 13:23:28 +02:00
Alexander Larsson
17b34b0032 Make SpiceLineAttr.style a normal pointer 2010-07-08 12:42:15 +02:00
Alexander Larsson
77927cec02 Use QXLFIXED, not SPICE_FIXED28_4 in qxl_dev.h 2010-07-08 12:41:47 +02:00
Gerd Hoffmann
3f1e240574 qxl abi: Add QXLImage and & co
Also, this changes the SpiceImage types to be more useful
as internal types, with real typed pointers. It also
adds a SpiceChunk iovec type for easy representation of
chunked data.
2010-07-07 22:46:26 +02:00
Alexander Larsson
1d74c91701 Update SpicePath.segments to a pointer array 2010-07-05 20:46:47 +02:00
Gerd Hoffmann
92c6782209 Update SpiceString to use an array of pointers for glyphs 2010-07-02 16:47:28 +02:00
Alexander Larsson
a1262cc611 Don't make SpicePath.segment a SpicePathSeg
The MS compiler doesn't like arrays of structures with an array
of length zero at the end, so we have to manually cast this when
using it.
2010-07-01 16:05:25 +02:00
Alexander Larsson
4cf3b18f62 Simplify SpiceLineAttr by removing unused elements and enums 2010-06-30 16:46:48 +02:00
Alexander Larsson
36126f5ee3 Change SpicePath.size to SpicePath.num_segments
We now track the number of segments rather than the memory size
of the path internally.
2010-06-29 21:26:34 +02:00
Gerd Hoffmann
eb96d4ec74 make SpiceRect compatible with pixman_box32 2010-06-29 16:25:42 +02:00
Gerd Hoffmann
65f9bef4fe qxl abi: zap SPICE_ADDRESS for clip rects and paths. 2010-06-29 13:11:57 +02:00
Gerd Hoffmann
5938ace152 qxl abi: add QXLRect 2010-06-29 12:29:45 +02:00
Gerd Hoffmann
36bdfe2f47 qxl abi: add QXLPoint & friends 2010-06-29 12:29:45 +02:00
Gerd Hoffmann
f433459af1 qxl abi: add QXLClip 2010-06-29 12:29:45 +02:00
Gerd Hoffmann
d0d9c32ed9 qxl abi: add QXLLineAttr 2010-06-29 12:29:45 +02:00
Gerd Hoffmann
900f532cc2 qxl abi: add QXLPattern 2010-06-29 12:29:45 +02:00
Gerd Hoffmann
772fa958a7 qxl abi: add QXLBrush 2010-06-29 12:29:45 +02:00
Gerd Hoffmann
30f1ed5dc6 qxl abi: add QXLQMask 2010-06-29 12:29:45 +02:00
Gerd Hoffmann
faa60f1c6d qxl abi: add QXLBlackness+QXLInvers+QXLWhiteness 2010-06-29 12:29:45 +02:00
Gerd Hoffmann
e4dedcdcc3 qxl abi: add QXLText 2010-06-29 12:29:45 +02:00
Gerd Hoffmann
34d776cebc qxl abi: add QXLStroke 2010-06-29 12:29:45 +02:00
Gerd Hoffmann
7851c98a4f qxl abi: add QXLRop3 2010-06-29 12:29:41 +02:00