Split string-sending debugger API into output- and log-sending functions (#2461)

This helps to avoid the use of non-public headers and
protocol-internal constants in external code (e.g., in jerry-port
and jerry-ext).

The patch also cleans up the necessary includes in jerry-core public
headers, and the include order in jerry-port/default public headers.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2018-08-14 09:29:06 +02:00
committed by yichoi
parent b9aa0da402
commit a3112ab901
8 changed files with 75 additions and 18 deletions
+3 -1
View File
@@ -17,6 +17,7 @@
#define JERRYSCRIPT_DEBUGGER_H
#include "jerryscript-core.h"
#include "jerryscript-port.h"
#ifdef __cplusplus
extern "C"
@@ -60,7 +61,8 @@ void jerry_debugger_stop_at_breakpoint (bool enable_stop_at_breakpoint);
jerry_debugger_wait_for_source_status_t
jerry_debugger_wait_for_client_source (jerry_debugger_wait_for_source_callback_t callback_p,
void *user_p, jerry_value_t *return_value);
void jerry_debugger_send_output (jerry_char_t buffer[], jerry_size_t str_size, uint8_t type);
void jerry_debugger_send_output (jerry_char_t buffer[], jerry_size_t str_size);
void jerry_debugger_send_log (jerry_log_level_t level, jerry_char_t buffer[], jerry_size_t str_size);
/**
* @}