diff options
Diffstat (limited to 'Demos/Device/Incomplete/Sideshow')
6 files changed, 37 insertions, 37 deletions
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.c b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.c index 0353af4fb..c0f7096b2 100644 --- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.c +++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.c @@ -118,7 +118,7 @@ void Sideshow_ProcessCommandPacket(void) }
}
-static void SideShow_Ping(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_Ping(SideShow_PacketHeader_t* const PacketHeader)
{
Endpoint_ClearOUT();
@@ -127,7 +127,7 @@ static void SideShow_Ping(SideShow_PacketHeader_t* PacketHeader) Endpoint_ClearIN();
}
-static void SideShow_Sync(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_Sync(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t ProtocolGUID;
@@ -143,7 +143,7 @@ static void SideShow_Sync(SideShow_PacketHeader_t* PacketHeader) Endpoint_ClearIN();
}
-static void SideShow_GetCurrentUser(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_GetCurrentUser(SideShow_PacketHeader_t* const PacketHeader)
{
Endpoint_ClearOUT();
@@ -155,7 +155,7 @@ static void SideShow_GetCurrentUser(SideShow_PacketHeader_t* PacketHeader) Endpoint_ClearIN();
}
-static void SideShow_SetCurrentUser(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_SetCurrentUser(SideShow_PacketHeader_t* const PacketHeader)
{
SideShow_Read_Unicode_String(&UserSID, sizeof(UserSID.UnicodeString));
Endpoint_ClearOUT();
@@ -167,7 +167,7 @@ static void SideShow_SetCurrentUser(SideShow_PacketHeader_t* PacketHeader) Endpoint_ClearIN();
}
-static void SideShow_GetCapabilities(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_GetCapabilities(SideShow_PacketHeader_t* const PacketHeader)
{
SideShow_PropertyKey_t Property;
SideShow_PropertyData_t PropertyData;
@@ -280,7 +280,7 @@ static void SideShow_GetCapabilities(SideShow_PacketHeader_t* PacketHeader) return;
}
-static void SideShow_GetString(SideShow_PacketHeader_t* PacketHeader, void* UnicodeStruct)
+static void SideShow_GetString(SideShow_PacketHeader_t* const PacketHeader, void* const UnicodeStruct)
{
Endpoint_ClearOUT();
@@ -293,7 +293,7 @@ static void SideShow_GetString(SideShow_PacketHeader_t* PacketHeader, void* Unic Endpoint_ClearIN();
}
-static void SideShow_GetApplicationOrder(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_GetApplicationOrder(SideShow_PacketHeader_t* const PacketHeader)
{
uint8_t TotalApplications = 0;
@@ -321,7 +321,7 @@ static void SideShow_GetApplicationOrder(SideShow_PacketHeader_t* PacketHeader) Endpoint_ClearIN();
}
-static void SideShow_GetSupportedEndpoints(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_GetSupportedEndpoints(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t SupportedEndpointGUID = (GUID_t){Chunks: SIMPLE_CONTENT_FORMAT_GUID};
@@ -336,7 +336,7 @@ static void SideShow_GetSupportedEndpoints(SideShow_PacketHeader_t* PacketHeader Endpoint_ClearIN();
}
-static void SideShow_AddApplication(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_AddApplication(SideShow_PacketHeader_t* const PacketHeader)
{
SideShow_Application_t* CurrApp;
GUID_t ApplicationID;
@@ -381,7 +381,7 @@ static void SideShow_AddApplication(SideShow_PacketHeader_t* PacketHeader) Endpoint_ClearIN();
}
-static void SideShow_DeleteApplication(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_DeleteApplication(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t ApplicationGUID;
@@ -402,7 +402,7 @@ static void SideShow_DeleteApplication(SideShow_PacketHeader_t* PacketHeader) Endpoint_ClearIN();
}
-static void SideShow_DeleteAllApplications(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_DeleteAllApplications(SideShow_PacketHeader_t* const PacketHeader)
{
Endpoint_ClearOUT();
@@ -414,7 +414,7 @@ static void SideShow_DeleteAllApplications(SideShow_PacketHeader_t* PacketHeader Endpoint_ClearIN();
}
-static void SideShow_AddContent(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_AddContent(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t ApplicationID;
GUID_t EndpointID;
@@ -444,7 +444,7 @@ static void SideShow_AddContent(SideShow_PacketHeader_t* PacketHeader) Endpoint_ClearIN();
}
-static void SideShow_DeleteContent(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_DeleteContent(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t ApplicationID;
GUID_t EndpointID;
@@ -469,7 +469,7 @@ static void SideShow_DeleteContent(SideShow_PacketHeader_t* PacketHeader) Endpoint_ClearIN();
}
-static void SideShow_DeleteAllContent(SideShow_PacketHeader_t* PacketHeader)
+static void SideShow_DeleteAllContent(SideShow_PacketHeader_t* const PacketHeader)
{
GUID_t ApplicationID;
GUID_t EndpointID;
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h index e609175aa..0d8727d29 100644 --- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h +++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommands.h @@ -146,20 +146,20 @@ void Sideshow_ProcessCommandPacket(void);
#if defined(INCLUDE_FROM_SIDESHOWCOMMANDS_H)
- static void SideShow_Ping(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_Sync(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_GetCurrentUser(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_SetCurrentUser(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_GetCapabilities(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_GetString(SideShow_PacketHeader_t* PacketHeader, void* UnicodeStruct);
- static void SideShow_GetApplicationOrder(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_GetSupportedEndpoints(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_AddApplication(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_DeleteApplication(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_DeleteAllApplications(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_AddContent(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_DeleteContent(SideShow_PacketHeader_t* PacketHeader);
- static void SideShow_DeleteAllContent(SideShow_PacketHeader_t* PacketHeader);
+ static void SideShow_Ping(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_Sync(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_GetCurrentUser(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_SetCurrentUser(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_GetCapabilities(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_GetString(SideShow_PacketHeader_t* const PacketHeader, void* const UnicodeStruct);
+ static void SideShow_GetApplicationOrder(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_GetSupportedEndpoints(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_AddApplication(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_DeleteApplication(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_DeleteAllApplications(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_AddContent(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_DeleteContent(SideShow_PacketHeader_t* const PacketHeader);
+ static void SideShow_DeleteAllContent(SideShow_PacketHeader_t* const PacketHeader);
#endif
#endif
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.c b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.c index 92691158e..68a819509 100644 --- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.c +++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.c @@ -30,14 +30,14 @@ #include "SideshowCommon.h"
-uint16_t SideShow_Read_Unicode_String(void* UnicodeString, uint16_t MaxBytes)
+uint16_t SideShow_Read_Unicode_String(void* const UnicodeString, const uint16_t MaxBytes)
{
- Unicode_String_t* UnicodeStruct = (Unicode_String_t*)UnicodeString;
- uint32_t UnicodeCharsToRead;
+ Unicode_String_t* const UnicodeStruct = (Unicode_String_t*)UnicodeString;
+ uint32_t UnicodeCharsToRead;
Endpoint_Read_Stream_LE(&UnicodeCharsToRead, sizeof(uint32_t));
- int UnicodeData[UnicodeCharsToRead];
+ int UnicodeData[UnicodeCharsToRead];
UnicodeStruct->LengthInBytes = (UnicodeCharsToRead << 1);
@@ -51,9 +51,9 @@ uint16_t SideShow_Read_Unicode_String(void* UnicodeString, uint16_t MaxBytes) return ((UnicodeCharsToRead << 1) + sizeof(uint32_t));
}
-void SideShow_Write_Unicode_String(void* UnicodeString)
+void SideShow_Write_Unicode_String(void* const UnicodeString)
{
- Unicode_String_t* UnicodeStruct = (Unicode_String_t*)UnicodeString;
+ Unicode_String_t* const UnicodeStruct = (Unicode_String_t*)UnicodeString;
uint32_t StringSizeInCharacters = (UnicodeStruct->LengthInBytes >> 1);
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h index e6be6be61..9bda6acaf 100644 --- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h +++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowCommon.h @@ -96,7 +96,7 @@ } SideShow_PacketHeader_t;
/* Function Prototypes: */
- uint16_t SideShow_Read_Unicode_String(void* UnicodeString, uint16_t MaxBytes);
+ uint16_t SideShow_Read_Unicode_String(void* UnicodeString, const uint16_t MaxBytes);
void SideShow_Write_Unicode_String(void* UnicodeString);
void SideShow_Discard_Byte_Stream(void);
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.c b/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.c index fed5bd982..d77dc4a4e 100644 --- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.c +++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.c @@ -31,7 +31,7 @@ #define INCLUDE_FROM_SIDESHOWCONTENT_C
#include "SideshowContent.h"
-bool SideShow_AddSimpleContent(SideShow_PacketHeader_t* PacketHeader, SideShow_Application_t* Application)
+bool SideShow_AddSimpleContent(SideShow_PacketHeader_t* const PacketHeader, SideShow_Application_t* const Application)
{
uint32_t ContentSize;
uint32_t ContentID;
diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.h b/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.h index b34567f68..47c15fb88 100644 --- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.h +++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowContent.h @@ -116,7 +116,7 @@ #define XML_END_TAG "</body>"
/* Function Prototypes: */
- bool SideShow_AddSimpleContent(SideShow_PacketHeader_t* PacketHeader, SideShow_Application_t* Application);
+ bool SideShow_AddSimpleContent(SideShow_PacketHeader_t* const PacketHeader, SideShow_Application_t* const Application);
#if defined(INCLUDE_FROM_SIDESHOWCONTENT_C)
static void SideShow_ProcessXMLContent(void* ContentData, uint32_t ContentSize);
|