/******************************************************************************************\ * * * main.cpp * * * * Main function for OpenAuraSDK GUI project * * * \******************************************************************************************/ #include "OpenAuraSDK.h" #include "RGBController.h" #include "i2c_smbus.h" #include #include #include #include "OpenAuraSDKQtDialog.h" extern std::vector busses; extern std::vector rgb_controllers; /******************************************************************************************\ * * * main * * * * Main function. Detects busses and Aura controllers, then opens the main window * * * \******************************************************************************************/ int main(int argc, char* argv[]) { DetectRGBControllers(); QApplication a(argc, argv); Ui::OpenAuraSDKQtDialog dlg(busses, rgb_controllers); dlg.show(); return a.exec(); } /******************************************************************************************\ * * * wWinMain * * * * Entry point for Windows. Calls main(). * * * \******************************************************************************************/ #ifdef WIN32 //int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) //{ // main(0, NULL); //} #endif