libvirt/src/logging
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
..
log_daemon_config.c logd: add support for admin protocol in virtlogd 2018-01-31 15:17:47 +00:00
log_daemon_config.h logd: add support for admin protocol in virtlogd 2018-01-31 15:17:47 +00:00
log_daemon_dispatch.c log: daemon: Add remote protocol handling for the log appending API 2016-06-07 18:10:29 +02:00
log_daemon_dispatch.h Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00
log_daemon.c rpc: switch virtlockd and virtlogd to use single-threaded dispatch 2018-03-08 15:40:29 +00:00
log_daemon.h logging: avoid variables called 'daemon' due to function clash 2015-11-27 09:27:53 +00:00
log_handler.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
log_handler.h virtlogd: make max file size & number of backups configurable 2016-07-07 15:08:54 +01:00
log_manager.c log: daemon: Add remote protocol handling for the log appending API 2016-06-07 18:10:29 +02:00
log_manager.h log: daemon: Add remote protocol handling for the log appending API 2016-06-07 18:10:29 +02:00
log_protocol.x log: daemon: Add remote protocol handling for the log appending API 2016-06-07 18:10:29 +02:00
Makefile.inc.am make: split logging daemon build rules into logging/Makefile.inc.am 2018-03-05 17:12:01 +00:00
test_virtlogd.aug.in rpc: avoid duplicating config in virtlockd/virtlogd augeas tests 2018-03-23 10:44:48 +00:00
virtlogd-admin.socket.in logd: add support for admin protocol in virtlogd 2018-01-31 15:17:47 +00:00
virtlogd.aug rpc: remove remains of obsolete log_buffer_size config parameter 2018-03-23 10:44:35 +00:00
virtlogd.conf rpc: avoid duplicating config in virtlockd/virtlogd augeas tests 2018-03-23 10:44:48 +00:00
virtlogd.init.in Fix LSB requirements in service script and sync them 2016-01-11 15:49:13 +01:00
virtlogd.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virtlogd.service.in logd: add support for admin protocol in virtlogd 2018-01-31 15:17:47 +00:00
virtlogd.socket.in virtlogd: Don't stop or restart along with libvirtd 2016-09-20 15:22:04 +02:00
virtlogd.sysconf Import stripped down virtlockd code as basis of virtlogd 2015-11-26 14:28:55 +00:00