From 4bc721c3bf7589b519c5730d093f704ce56e3f09 Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Mon, 29 Jun 2026 21:43:54 +0900 Subject: refactor: MCP層をmcpc APIベースに刷新 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 独自JSON-RPC処理をmcpcへ置き換え - 各MCPツールを個別ソースへ分離 - 共通コンテキストと登録処理を整理 - mcpc互換修正と統合テストを更新 --- src/sys/encoding.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/sys/encoding.h (limited to 'src/sys/encoding.h') diff --git a/src/sys/encoding.h b/src/sys/encoding.h new file mode 100644 index 0000000..386d319 --- /dev/null +++ b/src/sys/encoding.h @@ -0,0 +1,24 @@ +#ifndef TINY_CONVMEM_SYS_ENCODING_H +#define TINY_CONVMEM_SYS_ENCODING_H + +#include +#include + +typedef enum tiny_encoding_status +{ + TINY_ENCODING_OK = 0, + TINY_ENCODING_INVALID, + TINY_ENCODING_NO_MEMORY, + TINY_ENCODING_OVERFLOW +} tiny_encoding_status_t; + +tiny_encoding_status_t tiny_utf8_to_utf16(const char *input, + size_t input_length, + uint16_t **output, + size_t *output_length); +tiny_encoding_status_t tiny_utf16_to_utf8(const uint16_t *input, + size_t input_length, + char **output, + size_t *output_length); + +#endif -- cgit v1.2.3