#ifndef SERVER_H
#define SERVER_H
-#include "log.h"
+#include <helper/log.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
input_handler_t in_handler, connection_closed_handler_t close_handler,
void *priv);
+int server_preinit(void);
int server_init(struct command_context *cmd_ctx);
int server_quit(void);
int server_register_commands(struct command_context *context);
+/**
+ * Used by server_loop(), defined in server_stubs.c, httpd.c, or ecosboard.c
+ */
+void openocd_sleep_prelude(void);
+/**
+ * Used by server_loop(), defined in server_stubs.c, httpd.c, or ecosboard.c
+ */
+void openocd_sleep_postlude(void);
+
/**
* Defines an extended command handler function declaration to enable
* access to (and manipulation of) the server port number.