summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2011-10-31 18:42:29 +0000
committerBen Hutchings <bhutchings@solarflare.com>2011-11-03 19:12:55 +0000
commitcfe91ed582a8947d6cdd5eee0bd3199f3ea265fa (patch)
treef346c604f9cba5d150f7f82a0732af852d5b6106 /internal.h
parent37897ca86845ac9f8df16ca424477baa3ac8c389 (diff)
downloadethtool-cfe91ed582a8947d6cdd5eee0bd3199f3ea265fa.tar.gz
Add test cases for command-line parsing
Preparation for refactoring command-line parsing. All these test cases pass. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index c2f504a..ba7d719 100644
--- a/internal.h
+++ b/internal.h
@@ -94,6 +94,10 @@ struct cmd_context {
struct ifreq ifr; /* ifreq suitable for ethtool ioctl */
};
+#ifdef TEST_ETHTOOL
+int test_cmdline(const char *args);
+#endif
+
int send_ioctl(struct cmd_context *ctx, void *cmd);
/* National Semiconductor DP83815, DP83816 */