2 * AxWin3 Interface Library
3 * - By John Hodge (thePowersGang)
6 * - Entrypoint and setup
8 #include <axwin3/axwin.h>
9 #include "include/internal.h"
10 #include "include/ipc.h"
14 int SoMain(void *Base, int argc, const char *argv[], const char **envp)
16 // TODO: Parse the environment for the AXWIN3_SERVER variable
17 gsAxWin3_int_ServerDesc = getenv("AXWIN3_SERVER");
21 void AxWin3_MainLoop(void)
23 tAxWin_IPCMessage *msg;
28 msg = AxWin3_int_GetIPCMessage(0, NULL);
31 _SysDebug("AxWin3_MainLoop - Message (Type=%i, Window=%i, Len=%i)",
32 msg->ID, msg->Window, msg->Size);
34 AxWin3_int_HandleMessage( msg );
38 void AxWin3_MessageSelect(int nFD, fd_set *FDs)
40 tAxWin_IPCMessage *msg;
41 msg = AxWin3_int_GetIPCMessage(nFD, FDs);
43 AxWin3_int_HandleMessage( msg );