summaryrefslogtreecommitdiff
path: root/src/openocd.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-02 19:31:30 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-02 19:31:30 +0000
commit6cacbd9575e03c37057719a97bf260217c4e275f (patch)
tree8ad2cde68ccd8ec2de43025a478bcd8beab4fc9f /src/openocd.c
parente69b222d530becf495f9c4e28feff829fbbc72fb (diff)
downloadopenocd+libswd-6cacbd9575e03c37057719a97bf260217c4e275f.tar.gz
openocd+libswd-6cacbd9575e03c37057719a97bf260217c4e275f.tar.bz2
openocd+libswd-6cacbd9575e03c37057719a97bf260217c4e275f.tar.xz
openocd+libswd-6cacbd9575e03c37057719a97bf260217c4e275f.zip
Dick Hollenbeck <dick@softplc.com> moved stuff into openocd.c - should never have been in main.c in the first place. DLL will now build.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1590 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r--src/openocd.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/openocd.c b/src/openocd.c
index 00b33d4d..226a7310 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -228,6 +228,21 @@ static command_context_t *setup_command_handler(void)
int httpd_start(void);
void httpd_stop(void);
+
+#if !BUILD_HTTPD
+/* implementations of OpenOCD that uses multithreading needs to know when
+ * OpenOCD is sleeping. No-op in vanilla OpenOCD
+ */
+void openocd_sleep_prelude(void)
+{
+}
+
+void openocd_sleep_postlude(void)
+{
+}
+#endif
+
+
/* normally this is the main() function entry, but if OpenOCD is linked
* into application, then this fn will not be invoked, but rather that
* application will have it's own implementation of main(). */