Syntax changes.

Syntax changes.
This commit is contained in:
Rinnegatamante 2016-01-23 00:19:30 +01:00
parent 0e8d7b98f0
commit aca0b1a829
2 changed files with 5 additions and 5 deletions

View File

@ -44,9 +44,9 @@ Result NEWS_GetTotalNotifications(u32* num);
/**
* @brief Sets a custom header for a specific notification.
* @param news_id Identification number of the notification.
* @param header Notification header to set.
* @param header Pointer to the notification header to set.
*/
Result NEWS_SetNotificationHeader(u32 news_id, NotificationHeader header);
Result NEWS_SetNotificationHeader(u32 news_id, const NotificationHeader* header);
/**
* @brief Gets the header of a specific notification.
@ -68,4 +68,4 @@ Result NEWS_GetNotificationMessage(u32 news_id, u16* message);
* @param buffer Pointer where MPO image of the notification will be saved.
* @param size Pointer where size of the image data will be saved in bytes.
*/
Result NEWS_GetNotificationImage(u32 id, u8* buffer, u32* size);
Result NEWS_GetNotificationImage(u32 news_id, void* buffer, u32* size);

View File

@ -77,7 +77,7 @@ Result NEWS_GetTotalNotifications(u32* num)
return (Result)cmdbuf[1];
}
Result NEWS_SetNotificationHeader(u32 news_id, NotificationHeader header)
Result NEWS_SetNotificationHeader(u32 news_id, const NotificationHeader* header)
{
Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();
@ -86,7 +86,7 @@ Result NEWS_SetNotificationHeader(u32 news_id, NotificationHeader header)
cmdbuf[1] = news_id;
cmdbuf[2] = sizeof(NotificationHeader);
cmdbuf[3] = IPC_Desc_Buffer(sizeof(NotificationHeader),IPC_BUFFER_R);
cmdbuf[4] = (u32)&header;
cmdbuf[4] = (u32)header;
if(R_FAILED(ret = svcSendSyncRequest(newsHandle))) return ret;
return (Result)cmdbuf[1];