chiark / gitweb /
conf-parser: distinguish between multiple sections with the same name
authorTom Gundersen <teg@jklm.no>
Tue, 19 Nov 2013 15:17:55 +0000 (16:17 +0100)
committerTom Gundersen <teg@jklm.no>
Mon, 25 Nov 2013 18:35:44 +0000 (19:35 +0100)
commit71a6151083d842b2f5bf04e50239f0bf85d34d2e
treeb605629ce368cee108bf4e057847de8cf1a4541e
parentc5ab2e02dc7086c72b23390594944b9278282347
conf-parser: distinguish between multiple sections with the same name

Pass on the line on which a section was decleared to the parsers, so they
can distinguish between multiple sections (if they chose to). Currently
no parsers take advantage of this, but a follow-up patch will do that
to distinguish

[Address]
Address=192.168.0.1/24
Label=one

[Address]
Address=192.168.0.2/24
Label=two

from

[Address]
Address=192.168.0.1/24
Label=one
Address=192.168.0.2/24
Label=two
16 files changed:
src/core/load-fragment.c
src/core/load-fragment.h
src/core/main.c
src/journal/journald-server.h
src/login/logind-action.h
src/network/networkd-address.c
src/network/networkd-route.c
src/network/networkd.h
src/shared/conf-parser.c
src/shared/conf-parser.h
src/shared/install.c
src/shared/net-util.c
src/shared/net-util.h
src/test/test-unit-file.c
src/udev/net/ethtool-util.h
src/udev/net/link-config.h