Re: [systemd-devel] sd-bus example code for SetLinkDNS()

2017-07-21 Thread Tilman Baumann
On 21.07.2017 14:44, Tilman Baumann wrote: > On 21.07.2017 14:35, Lennart Poettering wrote: >> On Wed, 19.07.17 11:20, Tilman Baumann (til...@baumann.name) wrote: >> > >> My guess is that I can have it easier if I somehow use >>> sd_bus_message_append() to assemble the message. But I don't see a

Re: [systemd-devel] sd-bus example code for SetLinkDNS()

2017-07-21 Thread Tilman Baumann
On 21.07.2017 14:35, Lennart Poettering wrote: > On Wed, 19.07.17 11:20, Tilman Baumann (til...@baumann.name) wrote: > >> My guess is that I can have it easier if I somehow use >> sd_bus_message_append() to assemble the message. But I don't see a clear >> path either. > > You have to do

Re: [systemd-devel] sd-bus example code for SetLinkDNS()

2017-07-21 Thread Lennart Poettering
On Wed, 19.07.17 11:20, Tilman Baumann (til...@baumann.name) wrote: > Hi folks, > > I'm trying to teach a vpn software (openfortivpn) how to properly set up > DNS in a systemd-resolve environment. > > I'm trying to set up a equivalent to this in C. > busctl call org.freedesktop.resolve1

Re: [systemd-devel] sd-bus example code for SetLinkDNS()

2017-07-21 Thread Tilman Baumann
Any hint? I would be happy to just see some similar code that deals with arrays of complex structures. If I see a example that is similar, I'm sure I can learn from it. So if anybody knows of a code example that does that... Thanks On 19.07.2017 11:20, Tilman Baumann wrote: > Hi folks, > > I'm