libvirt/src/security
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
..
Makefile.inc.am make: split security driver build rules into security/Makefile.inc.am 2018-03-05 17:12:01 +00:00
security_apparmor.c security, apparmor: add (Set|Restore)InputLabel 2018-03-22 09:42:01 +01:00
security_apparmor.h
security_dac.c virSecurityDACChownListFree: Don't leak list->items array 2018-03-13 15:38:17 +01:00
security_dac.h
security_driver.c security: handle missing switch enum cases 2018-02-21 16:59:34 +00:00
security_driver.h security: full path option for DomainSetPathLabel 2018-01-09 17:29:52 +01:00
security_manager.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
security_manager.h security: full path option for DomainSetPathLabel 2018-01-09 17:29:52 +01:00
security_nop.c security: introduce virSecurityManager(Set|Restore)ChardevLabel 2017-12-05 13:54:48 +01:00
security_nop.h
security_selinux.c security: full path option for DomainSetPathLabel 2018-01-09 17:29:52 +01:00
security_selinux.h
security_stack.c security: full path option for DomainSetPathLabel 2018-01-09 17:29:52 +01:00
security_stack.h
virt-aa-helper.c virt-aa-helper: generate rules for nvdimm memory 2018-03-22 09:42:01 +01:00