summaryrefslogtreecommitdiffhomepage
path: root/digital/avr/modules/host/host.h
diff options
context:
space:
mode:
authorNicolas Schodet2011-03-30 23:41:06 +0200
committerNicolas Schodet2011-03-30 23:52:35 +0200
commit915ee1c2d7244733726e71126cb7d38bffbf55fa (patch)
treeba90e200d3f8f4aff64b60f3c6f8a1e115f2cbf1 /digital/avr/modules/host/host.h
parentfe0373d1b63e21a2f1d04339b30f535e6c969d87 (diff)
digital/avr/modules/host: get instance from command line, refs #157
Diffstat (limited to 'digital/avr/modules/host/host.h')
-rw-r--r--digital/avr/modules/host/host.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/digital/avr/modules/host/host.h b/digital/avr/modules/host/host.h
index 73cd4a58..03a8f7b8 100644
--- a/digital/avr/modules/host/host.h
+++ b/digital/avr/modules/host/host.h
@@ -39,6 +39,11 @@ host_init (int argc, char **argv);
void
host_get_program_arguments (int *argc, char ***argv);
+/** Retrieve instance given on command line, or use default. Strip tail
+ * components if requested. Buffer is valid until next call. */
+const char *
+host_get_instance (const char *def, int strip);
+
/** Host variables are usefull on reset. They are passed in the environment.
* This is not optimised for performance. */