[Spice-devel] [PATCH 2/3] spice-channel: add property total-bytes-read

Christophe Fergeau cfergeau at redhat.com
Mon Jul 4 01:48:52 PDT 2011


On Sat, Jul 02, 2011 at 05:06:39AM +0200, Alon Levy wrote:
> --- a/gtk/spice-channel-priv.h
> +++ b/gtk/spice-channel-priv.h
> @@ -123,6 +123,8 @@ struct spice_channel {
>      GArray                      *common_caps;
>      GArray                      *remote_caps;
>      GArray                      *remote_common_caps;
> +
> +    gsize                       total_read_bytes;

sizeof(gsize) is 8 on 64 bit machines...

> @@ -288,6 +292,15 @@ static void spice_channel_class_init(SpiceChannelClass *klass)
>                            G_PARAM_STATIC_NICK |
>                            G_PARAM_STATIC_BLURB));
>  
> +    g_object_class_install_property
> +        (gobject_class, PROP_TOTAL_READ_BYTES,
> +         g_param_spec_uint("total-read-bytes",

...so this should be an uint64 property

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110704/d1f640c4/attachment.pgp>


More information about the Spice-devel mailing list