fix(ipc): preserve legacy preedit and bound client waits

This commit is contained in:
2026-08-14 22:17:59 +09:00
parent 5dc2530951
commit 534ddcd9bb
6 changed files with 309 additions and 29 deletions

6
ipc.h
View File

@@ -50,6 +50,7 @@ enum
Ipcresphdrsz = 1 + Ipclensz,
Ipcfieldmax = 256,
Ipcmaxresp = Ipcresphdrsz + Ipcfieldmax + Ipclensz + Ipcfieldmax,
Ipcwaitms = 250,
};
enum
@@ -64,8 +65,9 @@ typedef struct Ipcresp Ipcresp;
struct Ipcresp
{
int eaten;
size_t ncommit;
size_t npreedit;
/* Bytes copied to each caller buffer, excluding its trailing NUL. */
size_t commitlen;
size_t preeditlen;
};
void ipcpackreq(unsigned char[Ipcreqsz], int, uint32_t, uint32_t);