28 lines
926 B
C
28 lines
926 B
C
/**
|
|
* @file news.h
|
|
* @brief NEWS (Notification) service.
|
|
*/
|
|
#pragma once
|
|
|
|
/**
|
|
* @brief Initializes NEWS.
|
|
*/
|
|
Result newsInit(void);
|
|
|
|
/**
|
|
* @brief Exits NEWS.
|
|
*/
|
|
Result newsExit(void);
|
|
|
|
/**
|
|
* @brief Adds a notification to the home menu Notifications applet.
|
|
* @param title UTF-16 title of the notification.
|
|
* @param titleLength Number of characters in the title, not including the null-terminator.
|
|
* @param message UTF-16 message of the notification, or NULL for no message.
|
|
* @param messageLength Number of characters in the message, not including the null-terminator.
|
|
* @param image Data of the image to show in the notification, or NULL for no image.
|
|
* @param imageSize Size of the image data in bytes.
|
|
* @param jpeg Whether the image is a JPEG or not.
|
|
*/
|
|
Result NEWSU_AddNotification(const u16* title, u32 titleLength, const u16* message, u32 messageLength, const void* imageData, u32 imageSize, bool jpeg);
|