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

Daniel P. Berrange berrange at redhat.com
Tue Nov 22 13:01:17 UTC 2011


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




More information about the libvir-list mailing list