summaryrefslogtreecommitdiff
path: root/src/server/server.h
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-15 09:43:26 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-15 09:43:26 +0000
commit47d044934727c3d5a57658ddd324b407dd73860a (patch)
tree936d222cf6a2f84f714e3750169c31c34984ea1e /src/server/server.h
parent459d03e3bb516cfe7ea641718084885ffda070f4 (diff)
downloadopenocd+libswd-47d044934727c3d5a57658ddd324b407dd73860a.tar.gz
openocd+libswd-47d044934727c3d5a57658ddd324b407dd73860a.tar.bz2
openocd+libswd-47d044934727c3d5a57658ddd324b407dd73860a.tar.xz
openocd+libswd-47d044934727c3d5a57658ddd324b407dd73860a.zip
- add ability for openocd to communicate to gdb using pipes (stdin/stdout).
- this is enabled by new command line option option --pipe. git-svn-id: svn://svn.berlios.de/openocd/trunk@1242 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server/server.h')
-rw-r--r--src/server/server.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/server.h b/src/server/server.h
index fd1abbf5..451ac6f7 100644
--- a/src/server/server.h
+++ b/src/server/server.h
@@ -34,9 +34,8 @@
enum connection_type
{
- CONNECTION_GDB,
- CONNECTION_TELNET,
- CONNECTION_TCL,
+ CONNECTION_TCP,
+ CONNECTION_PIPE
};
typedef struct connection_s
@@ -76,6 +75,8 @@ extern int server_quit(void);
extern int server_loop(command_context_t *command_context);
extern int server_register_commands(command_context_t *context);
+extern int server_use_pipes;
+
#define ERROR_SERVER_REMOTE_CLOSED (-400)
#define ERROR_CONNECTION_REJECTED (-401)