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

Re: [libvirt] [PATCH 15/33] Move LXC veth.c code into shared utility APIs



On 11/03/2011 01:30 PM, Daniel P. Berrange wrote:
From: "Daniel P. Berrange"<berrange redhat com>

Move the virNetDevSetName and virNetDevSetNamespace APIs out
of LXC's veth.c and into virnetdev.c.

Move the remaining content of the file to src/util/virnetdevveth.c

* src/lxc/veth.c: Rename to src/util/virnetdevveth.c
* src/lxc/veth.h: Rename to src/util/virnetdevveth.h
* src/util/virnetdev.c, src/util/virnetdev.h: Add
   virNetDevSetName and virNetDevSetNamespace
* src/lxc/lxc_container.c, src/lxc/lxc_controller.c,
   src/lxc/lxc_driver.c: Update include paths
---
  src/Makefile.am                          |    7 +-
  src/lxc/lxc_container.c                  |    2 +-
  src/lxc/lxc_controller.c                 |    3 +-
  src/lxc/lxc_driver.c                     |    2 +-
  src/lxc/veth.h                           |   29 ---------
  src/util/virnetdev.c                     |   81 +++++++++++++++++++++++++
  src/util/virnetdev.h                     |    4 +
  src/{lxc/veth.c =>  util/virnetdevveth.c} |   95 +++++------------------------
  src/util/virnetdevveth.h                 |   35 +++++++++++
  9 files changed, 144 insertions(+), 114 deletions(-)
  delete mode 100644 src/lxc/veth.h
  rename src/{lxc/veth.c =>  util/virnetdevveth.c} (74%)
  create mode 100644 src/util/virnetdevveth.h

ACK.



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