Re: [Spice-devel] Announcing spice 0.12.2 & spice-protocol 0.12.3

2012-12-28 Thread Hans de Goede
Hi, On 12/28/2012 12:02 PM, Vincent Desprez wrote: Hi everyone, I didn't find out how to use the websocket new feature. Do I need to add an option to the command line (and then, is it possible to use it with libvirt), or is it done throw an environment variable? I'm afraid that the websocke

Re: [Spice-devel] [PATCH spice-gtk V4 PATCH 2/3] file-xfer: handle "drag-data-received" signal

2012-12-28 Thread Dunrong Huang
I know there are muck work to be done, e.g. progress bar. Those work can be continued after first patch be commited. On Fri, Dec 28, 2012 at 9:33 PM, Dunrong Huang wrote: > When user drags a file to SpiceDisplay and drops it, a signal named > "drag-data-received" will be emitted, the signal will

[Spice-devel] [PATCH spice-gtk V4 3/3] file-xfer: disable file-xfer when agent is not connected

2012-12-28 Thread Dunrong Huang
Signed-off-by: Dunrong Huang --- gtk/channel-main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/channel-main.c b/gtk/channel-main.c index b1496bd..b045c3a 100644 --- a/gtk/channel-main.c +++ b/gtk/channel-main.c @@ -2701,11 +2701,14 @@ void spice_main_file_copy_async(SpiceMainChann

[Spice-devel] [PATCH spice-gtk V4 PATCH 2/3] file-xfer: handle "drag-data-received" signal

2012-12-28 Thread Dunrong Huang
When user drags a file to SpiceDisplay and drops it, a signal named "drag-data-received" will be emitted, the signal will be received by SpiceDisplay, then our signal handler should receive data which contains file path, and call spice_main_file_copy_async() to transfer file to guest. Signed-off-b

[Spice-devel] [PATCH spice-gtk V4 1/3] file-xfer: handling various transfer messages in main channel

2012-12-28 Thread Dunrong Huang
This patch is aimed to handle various file xfer messages. How it works: 0) our main channel introduces a API spice_main_file_copy_async(). 1) When user drags a file and drop to spice client, spice client will catch a signal "drag-data-received", then it should call spice_main_file_copy_asyn

[Spice-devel] [PATCH spice-gtk V4 0/3] simply implement of file transfer

2012-12-28 Thread Dunrong Huang
Hi all, happy holiday! These are the fourth version of patches which implement file transfer from client to guest. V3 -> V4: * Address Marc-André's comments * s/spice_main_file_xfer/spice_main_file_copy * Use a new algorithm to send data, instead of g_idle_add(). * Use gio async API t

Re: [Spice-devel] Announcing spice 0.12.2 & spice-protocol 0.12.3

2012-12-28 Thread Vincent Desprez
Hi everyone, I didn't find out how to use the websocket new feature. Do I need to add an option to the command line (and then, is it possible to use it with libvirt), or is it done throw an environment variable? However, thanks for your work Vincent On Thu, Dec 20, 2012 at 9:18 PM, Hans de Goe

Re: [Spice-devel] Usb redirection

2012-12-28 Thread Jackson
ok, thanks! I observe spice gtk static int usbredir_write_callback(void *user_data, uint8_t *data, int count) { ... printf("data %d\n", *data); ... } when I redirect webcam, and using *amcap*. The data display data 100 data 100 data 100 ... data 4 data 5 data 11 data 100 data 100 ... data 14 data