X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2Finclude%2Frichtext_messages.h;h=7f53eb215f07436d5ff01e1140cbdf409fe3f313;hb=6457e97e47fa29a23975daf853a3c032ce6650ef;hp=a440592ceba77f2387aeccf17fe7f953aca3d315;hpb=d02a9dd1f6752a65efe6a8326a86a288a4165c94;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/include/richtext_messages.h b/Usermode/Applications/axwin3_src/include/richtext_messages.h index a440592c..7f53eb21 100644 --- a/Usermode/Applications/axwin3_src/include/richtext_messages.h +++ b/Usermode/Applications/axwin3_src/include/richtext_messages.h @@ -19,41 +19,55 @@ enum eRichText_Attrs { _ATTR_CURSORPOS, }; -enum +enum eRichText_IPCCalls { - // Calls - MSG_RICHTEXT_SETATTR, - MSG_RICHTEXT_SETFONT, - MSG_RICHTEXT_DELLINE, - MSG_RICHTEXT_ADDLINE, - - // Events - MSG_RICHTEXT_KEYPRESS, - MSG_RICHTEXT_MOUSEBTN, - - // Bi-directional messages - // - Sent by server to get a line that is not cached - // - Sent by client to read line contents - MSG_RICHTEXT_REQLINE, - // - Response to _REQLINE - MSG_RICHTEXT_SENDLINE, + IPC_RICHTEXT_SETATTR, + IPC_RICHTEXT_SETFONT, + IPC_RICHTEXT_DELLINE, + IPC_RICHTEXT_ADDLINE, + IPC_RICHTEXT_WRITELINE, // Set line contents + IPC_RICHTEXT_READLINE, // Request line contents + N_IPC_RICHTEXT }; -struct sRichTextMsg_SetAttr +struct sRichTextIPC_SetAttr { uint32_t Attr; uint32_t Value; }; -struct sRichTextMsg_SetFont +struct sRichTextIPC_SetFont { uint16_t Size; char Name[]; }; -struct sRichTextMsg_AddDelLine +struct sRichTextIPC_AddDelLine +{ + uint32_t Line; +}; + +struct sRichTextIPC_ReadLine +{ + uint32_t Line; +}; + +struct sRichTextIPC_WriteLine { uint32_t Line; + char LineData[]; +}; + +enum +{ + // Events + MSG_RICHTEXT_KEYPRESS = 0x1000, + MSG_RICHTEXT_MOUSEBTN, + + // Sent by server to get a line that is not cached (expects IPC WRITELINE) + MSG_RICHTEXT_REQLINE, + // Response to IPC READLINE + MSG_RICHTEXT_LINEDATA, }; struct sRichTextMsg_ReqLine @@ -61,7 +75,7 @@ struct sRichTextMsg_ReqLine uint32_t Line; }; -struct sRichTextMsg_SendLine +struct sRichTextMsg_LineData { uint32_t Line; char LineData[];