The functions would return -1 only if malloc() failed, otherwise 0.
Since malloc() was replaced by g_malloc(), which terminates
the program if the allocation fails, return void instead.
Signed-off-by: Jakub Janků
---
src/udscs.c | 13 -
src/udscs.h | 5 ++---
2 files changed, 6 inse
Move code handling VDAGENTD_FILE_XFER_STATUS messages
from agent_read_complete() to a separate function
to make the switch statement less cluttered.
Improve formatting a bit.
Signed-off-by: Jakub Janků
---
src/vdagentd/vdagentd.c | 61 +
1 file changed, 3
The functions would return -1 only if malloc() failed, otherwise 0.
Since malloc() was replaced by g_malloc(), which terminates
the program if the allocation fails, return void instead.
Signed-off-by: Jakub Janků
---
src/vdagentd/virtio-port.c | 15 +--
src/vdagentd/virtio-port.h |
Move code handling VDAGENTD_GUEST_XORG_RESOLUTION messages
from agent_read_complete() to a separate function to make
the switch statement less cluttered.
Remove unnecessary res variable.
Signed-off-by: Jakub Janků
---
src/vdagentd/vdagentd.c | 62 +
1 fil
Required GLib version was bumped from 2.28 to 2.34 by
61fc548fe1a323dd2344c8ae267e3ce05e86da7d.
Signed-off-by: Jakub Janků
---
src/vdagent/file-xfers.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/src/vdagent/file-xfers.c b/src/vdagent/file-xfers.c
index 6461d05..0fabe7e 100644
--- a/
Hi,
this series represents an "offshoot" from the GLib integration series I sent
earlier.
It consists of patches that could be applied sooner than the rest of the
patches in the series and (hopefully) don't require as many iterations and
testing as those that substantially rewrite udscs, virtio
Some older parts of the code currently use
memory functions defined in stdlib.h
and usually handle allocation errors.
On the other hand, newer parts of the code
and GLib/GTK+ functions themselves commonly use
wrappers provided by GLib that terminate
the program when there isn't enough memory.
So
>
> On 09/03/2018 01:34 PM, Frediano Ziglio wrote:
> > Meson waits for pipes (stdout and stderr) to be not readable but
> > our mocking helper does not close these handles causing Meson
> > to give some problems.
> >
>
> Can you elaborate on the "some problems"? Also this patch looks more
> like
On 09/03/2018 01:34 PM, Frediano Ziglio wrote:
> Meson waits for pipes (stdout and stderr) to be not readable but
> our mocking helper does not close these handles causing Meson
> to give some problems.
>
Can you elaborate on the "some problems"? Also this patch looks more
like a workaround from
All command line options now have long names
as they are required by GLib.
So the supported command line options now are:
-h, --help
-d, --debug
-s, --virtio-serial-port-path
-S, --vdagentd-socket
-u, --uinput-device
-f, --fake-uinput
-x, --foreground
-o, --one-se
On Tue, Sep 04, 2018 at 02:44:29PM +0200, Jakub Janku wrote:
> > > > > +if (err) {
> > > > > +g_printerr("Invalid arguments, %s\n", err->message);
> > > >
> > > > We don't use g_printerr() or any g_log() in this code
> > > > yet.
> > >
> > > I think I copied it from the vdagent.c where
Hi,
On Tue, Sep 04, 2018 at 02:11:46PM +0200, Jakub Janku wrote:
> > > As a result, the reference to GIOStream is not released and
> > > the FD is not closed.
> > >
> > > So the problem aren't the references to VDAgentConnection
> > > itself, but rather the GLib's internal references to the
> > >
On Tue, Sep 4, 2018 at 7:02 AM Victor Toso wrote:
>
> Hi,
>
> On Mon, Sep 03, 2018 at 06:06:01PM +0200, Jakub Janku wrote:
> > Hi,
> >
> > > I think that after "vdagentd: use GMainLoop" patch, we should
> > > also include glib's command line options.
> >
> > Not sure what you are referring to here
Hi,
On Tue, Sep 4, 2018 at 7:33 AM Victor Toso wrote:
>
> Hi,
>
> On Mon, Sep 03, 2018 at 09:03:38PM +0200, Jakub Janku wrote:
> > I do agree that turning VDAgentConnection into a GObject is
> > probably a good idea, however, I do not see how it could help
> > us in this situation. Am I missing s
Hi,
On Tue, Sep 04, 2018 at 01:09:12PM +0300, Uri Lublin wrote:
> On 09/04/2018 11:57 AM, Victor Toso wrote:
> > From: Victor Toso
> >
> > It is possible that g_get_user_special_dir() return NULL for
> > G_USER_DIRECTORY_DESKTOP or G_USER_DIRECTORY_DOWNLOAD; This is a sure
> > thing to happen in
>
> Signed-off-by: Eduardo Lima (Etrunko)
Acked-by: Frediano Ziglio
Still CI is not succeeding.
Frediano
> ---
> doc/reference/meson.build | 1 -
> meson.build | 1 -
> src/meson.build | 11 +++
> 3 files changed, 3 insertions(+), 10 deletions(-)
>
> diff
>
> No need to use it when we can actually specify the parameters in the
> actual gnome.generate_gir() function calls. We still keep it in the case
> of gnome.gtkdoc(), as there is no way to specify the libraries to link
> with.
>
> Signed-off-by: Eduardo Lima (Etrunko)
In previous commit you u
On 09/04/2018 11:57 AM, Victor Toso wrote:
From: Victor Toso
It is possible that g_get_user_special_dir() return NULL for
G_USER_DIRECTORY_DESKTOP or G_USER_DIRECTORY_DOWNLOAD; This is a sure
thing to happen in case xdg-user-dirs hasn't been run yet.
Keeping spice-vdagent to run on Initializat
From: Victor Toso
It is possible that g_get_user_special_dir() return NULL for
G_USER_DIRECTORY_DESKTOP or G_USER_DIRECTORY_DOWNLOAD; This is a sure
thing to happen in case xdg-user-dirs hasn't been run yet.
Keeping spice-vdagent to run on Initialization stage of
X-GNOME-Autostart-Phase could tr
19 matches
Mail list logo