Re: [systemd-devel] [RFC][PATCH] conf-parser: allow instanced sections

2013-11-20 Thread Jan Engelhardt
On Wednesday 2013-11-20 12:36, Tom Gundersen wrote: >>> [Network] >>> Address=192.168.0.1/24 >>> Address=192.168.0.2/24 >>> Gateway=192.168.1.1 >>> >>> [Address:oneaddress] >>> Address=192.168.0.3/24 >>> Label=three >>> Peer=192.168.1.1 >> >> Arent's we sacrificing significant part of simplicity i

Re: [systemd-devel] [RFC][PATCH] conf-parser: allow instanced sections

2013-11-20 Thread Kay Sievers
On Wed, Nov 20, 2013 at 12:02 PM, "Jóhann B. Guðmundsson" wrote: > On 11/19/2013 09:20 PM, Tom Gundersen wrote: >> >> On Tue, Nov 19, 2013 at 7:07 PM, Colin Guthrie >> wrote: >> What I have in mind (though it is not dictated by this patch) is >> something different (first proposed by Lennart in an

Re: [systemd-devel] [RFC][PATCH] conf-parser: allow instanced sections

2013-11-20 Thread Tom Gundersen
On Wed, Nov 20, 2013 at 12:02 PM, "Jóhann B. Guðmundsson" wrote: > > On 11/19/2013 09:20 PM, Tom Gundersen wrote: >> >> On Tue, Nov 19, 2013 at 7:07 PM, Colin Guthrie >> wrote: >> What I have in mind (though it is not dictated by this patch) is >> something different (first proposed by Lennart in

Re: [systemd-devel] [RFC][PATCH] conf-parser: allow instanced sections

2013-11-20 Thread Jóhann B. Guðmundsson
On 11/19/2013 09:20 PM, Tom Gundersen wrote: On Tue, Nov 19, 2013 at 7:07 PM, Colin Guthrie wrote: What I have in mind (though it is not dictated by this patch) is something different (first proposed by Lennart in an earlier thread): [Network] Address=192.168.0.1/24 Address=192.168.0.2/24 Gate

Re: [systemd-devel] [RFC][PATCH] conf-parser: allow instanced sections

2013-11-19 Thread Tom Gundersen
On Tue, Nov 19, 2013 at 7:07 PM, Colin Guthrie wrote: > 'Twas brillig, and Tom Gundersen at 19/11/13 16:57 did gyre and gimble: >> This will treat [Section:bar], [Section:foo], and [Section:baz], >> as [Section], but pass on the full section name to the options parser >> so it can treat them separ

Re: [systemd-devel] [RFC][PATCH] conf-parser: allow instanced sections

2013-11-19 Thread Colin Guthrie
'Twas brillig, and Tom Gundersen at 19/11/13 16:57 did gyre and gimble: > This will treat [Section:bar], [Section:foo], and [Section:baz], > as [Section], but pass on the full section name to the options parser > so it can treat them separately. What is the semantics here? (I should probably know

[systemd-devel] [RFC][PATCH] conf-parser: allow instanced sections

2013-11-19 Thread Tom Gundersen
This will treat [Section:bar], [Section:foo], and [Section:baz], as [Section], but pass on the full section name to the options parser so it can treat them separately. --- This is needed so we can add [Address:xxx] and [Route:xxx] sections ot .network files. src/shared/conf-parser.c | 28 +++