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

Re: [libvirt] [PATCH 2/5] Move pidfile functions into util/virpidfile.{c, h}



On Wed, Aug 10, 2011 at 16:37:25 +0100, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange redhat com>
> 
> The functions for manipulating pidfiles are in util/util.{c,h}.
> We will shortly be adding some further pidfile related functions.
> To avoid further growing util.c, this moves the pidfile related
> functions into a dedicated virpidfile.{c,h}. The functions are
> also all renamed to have 'virPidFile' as their name prefix
> 
> * util/util.h, util/util.c: Remove all pidfile code
> * util/virpidfile.c, util/virpidfile.h: Add new APIs for pidfile
>   handling.
> * lxc/lxc_controller.c, lxc/lxc_driver.c, network/bridge_driver.c,
>   qemu/qemu_process.c: Add virpidfile.h include and adapt for API
>   renames
> ---
>  src/Makefile.am             |    1 +
>  src/libvirt_private.syms    |   14 ++-
>  src/lxc/lxc_controller.c    |    5 +-
>  src/lxc/lxc_driver.c        |    5 +-
>  src/network/bridge_driver.c |   19 ++--
>  src/qemu/qemu_process.c     |    5 +-
>  src/util/command.c          |    3 +-
>  src/util/util.c             |  152 ---------------------------------
>  src/util/util.h             |   15 ---
>  src/util/virpidfile.c       |  199 +++++++++++++++++++++++++++++++++++++++++++
>  src/util/virpidfile.h       |   50 +++++++++++
>  11 files changed, 281 insertions(+), 187 deletions(-)
>  create mode 100644 src/util/virpidfile.c
>  create mode 100644 src/util/virpidfile.h

ACK

Jirka


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