[libvirt] [PATCHv2 10/12] FIXUP: s/WITH_YAJL/WITH_JANSSON/

Ján Tomko jtomko at redhat.com
Fri May 11 11:53:30 UTC 2018


On Fri, May 11, 2018 at 09:49:00AM +0200, Peter Krempa wrote:
>On Thu, May 10, 2018 at 18:44:22 +0200, Ján Tomko wrote:
>> ---
>>  src/qemu/qemu_driver.c         |  2 +-
>>  tests/Makefile.am              | 10 +++++-----
>>  tests/cputest.c                | 16 ++++++++--------
>>  tests/libxlxml2domconfigtest.c |  4 ++--
>>  tests/qemuagenttest.c          |  2 +-
>>  tests/qemucapabilitiestest.c   |  2 +-
>>  tests/qemucaps2xmltest.c       |  2 +-
>>  tests/qemucommandutiltest.c    |  2 +-
>>  tests/qemuhotplugtest.c        |  2 +-
>>  tests/qemumigparamstest.c      |  2 +-
>>  tests/qemumonitorjsontest.c    |  2 +-
>>  tests/virmocklibxl.c           |  4 ++--
>>  tests/virnetdaemontest.c       |  2 +-
>>  tests/virstoragetest.c         |  4 ++--
>>  14 files changed, 28 insertions(+), 28 deletions(-)
>>
>> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
>> index c129321a5c..f25dbb8e64 100644
>> --- a/src/qemu/qemu_driver.c
>> +++ b/src/qemu/qemu_driver.c
>> @@ -2112,7 +2112,7 @@ qemuDomainReboot(virDomainPtr dom, unsigned int flags)
>>       */
>>      if ((!useAgent) ||
>>          (ret < 0 && (acpiRequested || !flags))) {
>> -#if !WITH_YAJL
>> +#if !WITH_JANSSON
>
>Shouldn't we replace all of these with a new macro "WITH_JSON" which
>will be library agnostic? So that we don't have to replace it the next
>time?
>

v1 used that approach because it (temporarily) allowed to choose between
yajl and Jansson.

I did not want to introduce a 1:1 alias to keep it simpler and take
advantage of our m4 macros, which set the WITH_ _CFLAGS and _LIBS
automatically.

Hopefully this library will last us another 10 years and by then,
libvirt will have been rewritten into #Go++ already.

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180511/02e8bdf0/attachment-0001.sig>


More information about the libvir-list mailing list