* - Entrypoint and setup
*/
#include <axwin3/axwin.h>
-#include "include/ipc.h"
#include "include/internal.h"
+#include "include/ipc.h"
+#include <stdlib.h>
// === CODE ===
int SoMain(void *Base, int argc, const char *argv[], const char **envp)
while(!bExit)
{
msg = AxWin3_int_GetIPCMessage();
+ if(!msg) continue;
+
+ _SysDebug("oh look, a message (Type=%i, Window=%i, Len=%i)",
+ msg->ID, msg->Window, msg->Size);
+
+ AxWin3_int_HandleMessage( msg );
- // TODO: Handle message
+ free(msg);
}
}