summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-14 07:29:16 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-14 07:29:16 -0800
commit4088b1e622cff0673f2859de5ee611da736bdba7 (patch)
tree7049a500c42efee0071b9838a08e5a84478e7ea3 /src/server
parentab3bdfb2cb7b0c16800195951e4ee549cf8e86a5 (diff)
downloadopenocd_libswd-4088b1e622cff0673f2859de5ee611da736bdba7.tar.gz
openocd_libswd-4088b1e622cff0673f2859de5ee611da736bdba7.tar.bz2
openocd_libswd-4088b1e622cff0673f2859de5ee611da736bdba7.tar.xz
openocd_libswd-4088b1e622cff0673f2859de5ee611da736bdba7.zip
add openocd.h for top-level declarations
Create src/openocd.h to hold declarations previously made internally by src/main.c and src/server/server.c. This ensures all functions are verified to be in-sync at compile time (rather than at link), making it easier to track down bugs.
Diffstat (limited to 'src/server')
-rw-r--r--src/server/Makefile.am1
-rw-r--r--src/server/server.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/server/Makefile.am b/src/server/Makefile.am
index 2f070075..6e52fdfb 100644
--- a/src/server/Makefile.am
+++ b/src/server/Makefile.am
@@ -1,4 +1,5 @@
AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/src/helper \
-I$(top_srcdir)/src/target \
-I$(top_srcdir)/src/flash \
diff --git a/src/server/server.c b/src/server/server.c
index 7416784c..92292eb5 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -29,6 +29,7 @@
#include "server.h"
#include "target.h"
+#include "openocd.h"
#include <signal.h>
@@ -285,9 +286,6 @@ int remove_services(void)
return ERROR_OK;
}
-extern void openocd_sleep_prelude(void);
-extern void openocd_sleep_postlude(void);
-
int server_loop(struct command_context *command_context)
{
struct service *service;