Usermode/AxWin3 - Working on IPC, compiles and runs, just nothing happens :)
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / include / ipcmessages.h
1 /*
2  * Acess2 Window Manager v3
3  * - By John Hodge (thePowersGang)
4  *
5  * ipcmessages.h
6  * - IPC Message format definition
7  * - Shared between library and server
8  */
9 #ifndef _IPCMESSAGES_H_
10 #define _IPCMESSAGES_H_
11
12 #include <stdint.h>
13
14 typedef struct sAxWin_IPCMessage        tAxWin_IPCMessage;
15 typedef struct sIPCMsg_Return   tIPCMsg_Return;
16 typedef struct sIPCMsg_CreateWin        tIPCMsg_CreateWin;
17
18 /**
19  * \name Flags for IPC Messages
20  * \{
21  */
22 //! Request a return value
23 #define IPCMSG_FLAG_RETURN      0x01
24 /**
25  * \}
26  */
27
28 struct sAxWin_IPCMessage
29 {
30          uint8_t        ID;
31          uint8_t        Flags;
32         uint16_t        Size;
33         uint32_t        Window;
34         char    Data[];
35 };
36
37 struct sIPCMsg_Return
38 {
39         uint32_t        Value;
40 };
41
42 struct sIPCMsg_CreateWin
43 {
44         uint32_t        NewWinID;
45         uint32_t        Flags;
46         char    Renderer[];
47 };
48
49 enum eAxWin_IPCMessageTypes
50 {
51         IPCMSG_PING,    //!< 
52         IPCMSG_SENDMSG, //!< Send a message to another window
53         IPCMSG_CREATEWIN,       //!< Create a window
54 };
55
56 #endif

UCC git Repository :: git.ucc.asn.au