summaryrefslogtreecommitdiff
path: root/lib/igt_core.h
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2014-07-18 16:49:07 +0100
committerThomas Wood <thomas.wood@intel.com>2014-07-23 15:23:53 +0100
commite2cef00896a3b68c4f91c94254c0d44fa36f3ad0 (patch)
treef4fb05e8b2a7e6abb25a1ceee0d8291c71e9d571 /lib/igt_core.h
parent94ac74ebb889909579e3b872fd29514280c99300 (diff)
lib: add igt_simple_init_parse_opts
This function allows simple tests to register additional command line options. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r--lib/igt_core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h
index 61384878..408cf3a6 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -162,6 +162,11 @@ bool igt_only_list_subtests(void);
static void igt_tokencat(__real_main, __LINE__)(void) \
void igt_simple_init(int argc, char **argv);
+void igt_simple_init_parse_opts(int argc, char **argv,
+ const char *extra_short_opts,
+ struct option *extra_long_opts,
+ const char *help_str,
+ igt_opt_handler_t extra_opt_handler);
/**
* igt_simple_main: