summaryrefslogtreecommitdiff
path: root/src/shared/net-util.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-11-19 16:17:55 +0100
committerTom Gundersen <teg@jklm.no>2013-11-25 19:35:44 +0100
commit71a6151083d842b2f5bf04e50239f0bf85d34d2e (patch)
treeb605629ce368cee108bf4e057847de8cf1a4541e /src/shared/net-util.h
parentc5ab2e02dc7086c72b23390594944b9278282347 (diff)
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
Diffstat (limited to 'src/shared/net-util.h')
-rw-r--r--src/shared/net-util.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/shared/net-util.h b/src/shared/net-util.h
index d6ca737e7f..c7edfb96f0 100644
--- a/src/shared/net-util.h
+++ b/src/shared/net-util.h
@@ -36,15 +36,15 @@ bool net_match_config(const struct ether_addr *match_mac,
const char *dev_name);
int config_parse_hwaddr(const char *unit, const char *filename, unsigned line,
- const char *section, const char *lvalue, int ltype,
- const char *rvalue, void *data, void *userdata);
+ const char *section, unsigned section_line, const char *lvalue,
+ int ltype, const char *rvalue, void *data, void *userdata);
int config_parse_ifname(const char *unit, const char *filename, unsigned line,
- const char *section, const char *lvalue, int ltype,
- const char *rvalue, void *data, void *userdata);
+ const char *section, unsigned section_line, const char *lvalue,
+ int ltype, const char *rvalue, void *data, void *userdata);
int config_parse_ifalias(const char *unit, const char *filename, unsigned line,
- const char *section, const char *lvalue, int ltype,
- const char *rvalue, void *data, void *userdata);
+ const char *section, unsigned section_line, const char *lvalue,
+ int ltype, const char *rvalue, void *data, void *userdata);
int net_parse_inaddr(const char *address, unsigned char *family, void *dst);