*
* ipcmessages.h
* - IPC Message format definition
+ * - Shared between library and server
*/
#ifndef _IPCMESSAGES_H_
#define _IPCMESSAGES_H_
+#include <stdint.h>
+
typedef struct sAxWin_IPCMessage tAxWin_IPCMessage;
typedef struct sIPCMsg_Return tIPCMsg_Return;
+typedef struct sIPCMsg_CreateWin tIPCMsg_CreateWin;
+typedef struct sIPCMsg_ShowWindow tIPCMsg_ShowWindow;
+typedef struct sIPCMsg_SetWindowPos tIPCMsg_SetWindowPos;
/**
* \name Flags for IPC Messages
*/
//! Request a return value
#define IPCMSG_FLAG_RETURN 0x01
+/**
+ * \}
+ */
struct sAxWin_IPCMessage
{
uint32_t Value;
};
+struct sIPCMsg_CreateWin
+{
+ uint32_t NewWinID;
+ uint32_t Flags;
+ char Renderer[];
+};
+
+struct sIPCMsg_ShowWindow
+{
+ uint32_t bShow;
+};
+
+struct sIPCMsg_SetWindowPos
+{
+ int16_t X;
+ int16_t Y;
+ uint16_t W;
+ uint16_t H;
+ uint8_t Fields;
+};
+
enum eAxWin_IPCMessageTypes
{
- IPCMSG_PING, //!<
- IPCMSG_SENDMSG, //!< Send a message to another window
+ IPCMSG_PING, //!< Get the server version
+ IPCMSG_SENDMSG, //!< Send a message to another window (or to self)
+ IPCMSG_CREATEWIN, //!< Create a window
+ IPCMSG_DESTROYWIN, //!< Destroy a window
+ IPCMSG_SHOWWINDOW, //!< Show/Hide a window
+ IPCMSG_SETWINPOS, //!< Set a window position
};
#endif
-