[libvirt] [PATCH v4 1/8] Export virLease* functions for leases file handling

Martin Kletzander mkletzan at redhat.com
Tue Mar 8 15:07:51 UTC 2016


On Thu, Mar 03, 2016 at 06:11:39PM +0100, Michal Privoznik wrote:
>These functions are going to be reused very shortly. So instead
>of duplicating the code, lets move them into utils module.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> po/POTFILES.in             |   1 +
> src/Makefile.am            |   1 +
> src/libvirt_private.syms   |   6 +
> src/network/leaseshelper.c | 271 +---------------------------------------
> src/util/virlease.c        | 304 +++++++++++++++++++++++++++++++++++++++++++++
> src/util/virlease.h        |  44 +++++++
> 6 files changed, 357 insertions(+), 270 deletions(-)
> create mode 100644 src/util/virlease.c
> create mode 100644 src/util/virlease.h
>
>diff --git a/src/network/leaseshelper.c b/src/network/leaseshelper.c
>index 55ddd58..94a6163 100644
>--- a/src/network/leaseshelper.c
>+++ b/src/network/leaseshelper.c
>@@ -28,34 +28,18 @@
> #include <locale.h>
> #include <stdio.h>
> #include <stdlib.h>
>-#include <sys/stat.h>
>
>-#include "virutil.h"
> #include "virthread.h"
> #include "virfile.h"
> #include "virpidfile.h"
>-#include "virbuffer.h"
> #include "virstring.h"
> #include "virerror.h"
> #include "viralloc.h"
>-#include "virjson.h"

Keep this ^^ here, it's used in this file. ACK with that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160308/0021c30e/attachment-0001.sig>


More information about the libvir-list mailing list