Difference between revisions of "NEWSS:AddNotification"

From 3dbrew
Jump to navigation Jump to search
Line 15: Line 15:
 
|-
 
|-
 
| 3
 
| 3
| JPEG buffer size, can be zero
+
| Image buffer size, can be zero
 
|-
 
|-
 
| 4
 
| 4
Line 30: Line 30:
 
|-
 
|-
 
| 8
 
| 8
| (JPEGSize<<4)  <nowiki>|</nowiki> 10
+
| (ImageSize<<4)  <nowiki>|</nowiki> 10
 
|-
 
|-
 
| 9
 
| 9
| JPEG buffer ptr, can be 0x0
+
| Image buffer ptr, can be 0x0
 
|}
 
|}
  
Line 73: Line 73:
 
This is an UTF-16 string for the notification message text, this buffer includes the null-terminator.
 
This is an UTF-16 string for the notification message text, this buffer includes the null-terminator.
  
=JPEG=
+
=Image=
The JPEG data is optional. The JPEG is displayed within the notification in the notification applet.
+
The MPO data is optional. This is displayed on the top-screen by the notifications applet.
  
 
=Response=
 
=Response=
Line 90: Line 90:
  
 
=Description=
 
=Description=
This adds a notification to the list of notifications, which is displayed by the notifications applet.
+
This adds a notification to the list of notifications, which is displayed by the notifications applet. This is added to the end of the list of notifications.

Revision as of 23:34, 8 December 2014

Request

Index Word Description
0 Header code [0x000100C6]
1 Header buffer size
2 Message buffer size
3 Image buffer size, can be zero
4 (HdrSize<<4) | 10
5 Header buffer ptr
6 (MsgSize<<4) | 10
7 Message buffer ptr
8 (ImageSize<<4) | 10
9 Image buffer ptr, can be 0x0

Header structure

Offset Size Description
0x0 0x1 u8 flag
0x0 0x1 u8 flag
0x0 0x1 u8 flag: 0 = disable JPEG, 1 = enable JPEG.
0x0 0x1 u8 flag
0x28 0x8 u64 datetime: milliseconds since January 1, 2000.
0x30 ? UTF-16 string for the notification title

This structure is normally 0x70-bytes.

Message

This is an UTF-16 string for the notification message text, this buffer includes the null-terminator.

Image

The MPO data is optional. This is displayed on the top-screen by the notifications applet.

Response

Index Word Description
0 Header code
1 Resultcode

Description

This adds a notification to the list of notifications, which is displayed by the notifications applet. This is added to the end of the list of notifications.