libvirt/src/lxc
Michal Privoznik 10f94828ea virobject: Introduce VIR_CLASS_NEW() macro
So far we are repeating the following lines over and over:

  if (!(virSomeObjectClass = virClassNew(virClassForObject(),
                             "virSomeObject",
                             sizeof(virSomeObject),
                             virSomeObjectDispose)))
      return -1;

While this works, it is impossible to do some checking. Firstly,
the class name (the 2nd argument) doesn't match the name in the
code in all cases (the 3rd argument). Secondly, the current style
is needlessly verbose. This commit turns example into following:

  if (!(VIR_CLASS_NEW(virSomeObject,
                      virClassForObject)))
      return -1;

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2018-04-18 10:04:55 +02:00
..
libvirtd_lxc.aug
lxc_cgroup.c Move machineName generation from virsystemd into domain_conf 2017-07-25 17:02:27 +02:00
lxc_cgroup.h
lxc_conf.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
lxc_conf.h
lxc_container.c lxc: s/subtreee/subtree/ 2018-04-16 22:38:48 +02:00
lxc_container.h lxc_container: Set source file description 2018-04-03 11:32:48 +02:00
lxc_controller.c conf: Fix virDomainObjParseFile object handling 2018-04-06 14:14:37 -04:00
lxc_domain.c Move machineName generation from virsystemd into domain_conf 2017-07-25 17:02:27 +02:00
lxc_domain.h Move machineName generation from virsystemd into domain_conf 2017-07-25 17:02:27 +02:00
lxc_driver.c driver: ensure URI path is non-NULL to simplify drivers 2018-04-12 16:52:02 +01:00
lxc_driver.h
lxc_fuse.c
lxc_fuse.h
lxc_hostdev.c
lxc_hostdev.h
lxc_monitor_protocol.x
lxc_monitor.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
lxc_monitor.h
lxc_native.c qemu: Remove private hostdev 2017-11-24 11:47:26 -05:00
lxc_native.h
lxc_process.c lxc: allow use of lxc:///system URI as preferred format 2018-04-12 16:52:01 +01:00
lxc_process.h
lxc.conf lxc.conf: s/QEMU/LXC/ 2016-11-09 18:56:15 +01:00
Makefile.inc.am make sure libvirt is linked first 2018-03-05 16:49:50 +00:00
test_libvirtd_lxc.aug.in