#endif
#include "server.h"
-#include "target.h"
+#include <target/target.h>
#include "openocd.h"
#include "tcl_server.h"
#include "telnet_server.h"
}
target_call_timer_callbacks();
- process_jim_events ();
+ process_jim_events(command_context);
if (retval == 0)
{
}
#endif
-int server_init(void)
+int server_init(struct command_context *cmd_ctx)
{
#ifdef _WIN32
WORD wVersionRequested;
signal(SIGABRT, sig_handler);
#endif
- int ret = tcl_init();
+ int ret = tcl_init(cmd_ctx);
if (ERROR_OK != ret)
return ret;