chiark / gitweb /
Use strlen even for constant strings
[elogind.git] / src / udev / net / ethtool-util.h
index a02088fd9e3ecbab39170d04bbc5c376df3cb29c..f44de5076a8b06dbb27679dd81dd6a04a19df2b6 100644 (file)
@@ -42,6 +42,7 @@ typedef enum WakeOnLan {
 
 int ethtool_connect(int *ret);
 
+int ethtool_get_driver(int fd, const char *ifname, char **ret);
 int ethtool_set_speed(int fd, const char *ifname, unsigned int speed, Duplex duplex);
 int ethtool_set_wol(int fd, const char *ifname, WakeOnLan wol);
 
@@ -51,5 +52,5 @@ Duplex duplex_from_string(const char *d) _pure_;
 const char *wol_to_string(WakeOnLan wol) _const_;
 WakeOnLan wol_from_string(const char *wol) _pure_;
 
-int config_parse_duplex(const char *unit, const char *filename, unsigned line, const char *section, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
-int config_parse_wol(const char *unit, const char *filename, unsigned line, const char *section, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
+int config_parse_duplex(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
+int config_parse_wol(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);