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 Guthriegm...@colin.guthr.ie 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

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 johan...@gmail.com wrote: On 11/19/2013 09:20 PM, Tom Gundersen wrote: On Tue, Nov 19, 2013 at 7:07 PM, Colin Guthriegm...@colin.guthr.ie wrote: What I have in mind (though it is not dictated by this patch) is something different

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 johan...@gmail.com wrote: On 11/19/2013 09:20 PM, Tom Gundersen wrote: On Tue, Nov 19, 2013 at 7:07 PM, Colin Guthriegm...@colin.guthr.ie wrote: What I have in mind (though it is not dictated by this patch) is something different (first

[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

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 as

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 gm...@colin.guthr.ie 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