Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'agent/tcf/main/cmdline.h')
-rw-r--r--agent/tcf/main/cmdline.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/agent/tcf/main/cmdline.h b/agent/tcf/main/cmdline.h
new file mode 100644
index 00000000..f4e9bdcd
--- /dev/null
+++ b/agent/tcf/main/cmdline.h
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Wind River Systems, Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and Eclipse Distribution License v1.0 which accompany this distribution.
+ * The Eclipse Public License is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * and the Eclipse Distribution License is available at
+ * http://www.eclipse.org/org/documents/edl-v10.php.
+ * You may elect to redistribute this code under either of these licenses.
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+
+/*
+ * Command line interpreter.
+ */
+
+#ifndef D_cmdline
+#define D_cmdline
+
+#if ENABLE_Cmdline
+
+#include <framework/protocol.h>
+
+extern void cmdline_suspend(void);
+extern void cmdline_resume(void);
+/*
+ * Mode can be either :
+ * 0 = Non interactive script mode
+ * 1 = Interactive mode
+ * 2 = Single command mode
+ */
+extern void ini_cmdline_handler(int mode, Protocol * proto);
+extern void set_single_command(int keep_alive, const char * host, const char * command);
+extern void open_script_file(const char * script_name);
+
+#else /* ENABLE_Cmdline */
+
+#define cmdline_suspend() 0
+#define cmdline_resume() 0
+
+#endif /* ENABLE_Cmdline */
+
+#endif /* D_cmdline */

Back to the top