[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [libvirt-gconfig PATCHv2 19/32] Add gobject boilerplate for GVirConfigDeviceDisk



On Mon, Nov 21, 2011 at 07:04:16PM +0100, Christophe Fergeau wrote:
> ---
>  libvirt-gconfig/Makefile.am                   |    2 +
>  libvirt-gconfig/libvirt-gconfig-device-disk.c |   81 +++++++++++++++++++++++++
>  libvirt-gconfig/libvirt-gconfig-device-disk.h |   68 +++++++++++++++++++++
>  libvirt-gconfig/libvirt-gconfig.h             |    1 +
>  libvirt-gconfig/libvirt-gconfig.sym           |    4 +
>  5 files changed, 156 insertions(+), 0 deletions(-)
>  create mode 100644 libvirt-gconfig/libvirt-gconfig-device-disk.c
>  create mode 100644 libvirt-gconfig/libvirt-gconfig-device-disk.h

ACK


> +
> +static void gvir_config_device_disk_init(GVirConfigDeviceDisk *disk)
> +{
> +    GVirConfigDeviceDiskPrivate *priv;
> +
> +    DEBUG("Init GVirConfigDeviceDisk=%p", disk);
> +
> +    priv = disk->priv = GVIR_CONFIG_DEVICE_DISK_GET_PRIVATE(disk);
> +
> +    memset(priv, 0, sizeof(*priv));
> +}

Can kill off memset() when pushing


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]