Re: [libvirt-gconfig PATCHv2 13/32] Add gobject boilerplate for GVirConfigOs

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

 



On Mon, Nov 21, 2011 at 07:04:10PM +0100, Christophe Fergeau wrote:
> ---
>  libvirt-gconfig/Makefile.am          |    2 +
>  libvirt-gconfig/libvirt-gconfig-os.c |   79 ++++++++++++++++++++++++++++++++++
>  libvirt-gconfig/libvirt-gconfig-os.h |   67 ++++++++++++++++++++++++++++
>  libvirt-gconfig/libvirt-gconfig.h    |    3 +-
>  libvirt-gconfig/libvirt-gconfig.sym  |    4 ++
>  5 files changed, 154 insertions(+), 1 deletions(-)
>  create mode 100644 libvirt-gconfig/libvirt-gconfig-os.c
>  create mode 100644 libvirt-gconfig/libvirt-gconfig-os.h

ACK


> +static void gvir_config_os_init(GVirConfigOs *os)
> +{
> +    GVirConfigOsPrivate *priv;
> +
> +    DEBUG("Init GVirConfigOs=%p", os);
> +
> +    priv = os->priv = GVIR_CONFIG_OS_GET_PRIVATE(os);
> +
> +    memset(priv, 0, sizeof(*priv));
> +}

Can drop the memset() since we previously figured out we don't need that.

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 :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]