change #include "target.h" to <target/target.h>
[fw/openocd] / src / server / server.c
index 256c590da082b1174cefc26a0813fbbfe3c18392..2f4bfb0043dc393da9247644d5d80b9bdbc3b563 100644 (file)
@@ -28,7 +28,7 @@
 #endif
 
 #include "server.h"
-#include "target.h"
+#include <target/target.h>
 #include "openocd.h"
 #include "tcl_server.h"
 #include "telnet_server.h"
@@ -386,7 +386,7 @@ int server_loop(struct command_context *command_context)
                }
 
                target_call_timer_callbacks();
-               process_jim_events ();
+               process_jim_events(command_context);
 
                if (retval == 0)
                {
@@ -487,7 +487,7 @@ void sig_handler(int sig) {
 }
 #endif
 
-int server_init(void)
+int server_init(struct command_context *cmd_ctx)
 {
 #ifdef _WIN32
        WORD wVersionRequested;
@@ -518,7 +518,7 @@ int server_init(void)
        signal(SIGABRT, sig_handler);
 #endif
 
-       int ret = tcl_init();
+       int ret = tcl_init(cmd_ctx);
        if (ERROR_OK != ret)
                return ret;