Re: [PATCH] dns: use DBus to make dnsmasq nameserver changes



On Tue, 2016-03-22 at 12:44 -0400, Mathieu Trudel-Lapierre wrote:
On Tue, Mar 22, 2016 at 12:33 PM, Thomas Haller <thaller redhat com>
wrote:
[...] 
Hi Mathieu,

[...] 
Can I give it back to you in this form and let's take it from
there?
Sure, but what changes would you like to see?



[...] 
I dislike a bit the builder-member 
  GVariantBuilder *servers;
Could we instead make it a
  GVariant *set_server_ex_args;

It seems rather better to me (or at least much easier to handle) to
build one large array of array of string to pass to SetServersEx once
via a GVariantBuilder (which allows us to add just like if it was a
simple array), rather than mucking with one large unwieldy GVariant
-- with GVariantBuilder, you can open a subcontainer and add into it.

I guess the jist of it is that it seems to me like easier to maintain
down the line, provided it is technically correct-- and I have used
pretty much the code from examples in GLib documentation.


I pushed another commit to the branch, to show what I mean. Feel free
to drop that.


Actually, I pushed more changes... :)
I also dropped passing CONFFILE.


Thomas

Attachment: signature.asc
Description: This is a digitally signed message part



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