SideShow_Application_t InstalledApplications[MAX_APPLICATIONS];\r
\r
\r
-uint8_t SideShow_GetTotalApplications(void)\r
-{\r
- uint8_t TotalInstalledApps = 0;\r
- \r
- for (uint8_t App = 0; App < ARRAY_ELEMENTS(InstalledApplications); App++)\r
- {\r
- if (InstalledApplications[App].InUse)\r
- TotalInstalledApps++;\r
- }\r
- \r
- return TotalInstalledApps; \r
-}\r
-\r
SideShow_Application_t* SideShow_GetFreeApplication(void)\r
{\r
for (uint8_t App = 0; App < ARRAY_ELEMENTS(InstalledApplications); App++)\r
{\r
if (InstalledApplications[App].InUse)\r
{\r
- if (memcmp(&InstalledApplications[App].ApplicationID, GUID, sizeof(GUID_t)) == 0)\r
+ if (GUID_COMPARE(&InstalledApplications[App].ApplicationID, GUID))\r
return &InstalledApplications[App];\r
}\r
}\r