1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 12:35:07 +00:00
serenity/Servers/NotificationServer/NotificationServer.ipc
Andreas Kling 7cfe712f4d LibGfx+LibIPC: Add Gfx::ShareableBitmap, a bitmap for easy IPC usage
With this patch, it's now possible to pass a Gfx::ShareableBitmap in an
IPC message. As long as the message itself is synchronous, the bitmap
will be adopted by the receiving end, and disowned by the sender nicely
without any accounting effort like we've had to do in the past.

Use this in NotificationServer to allow sending arbitrary bitmaps as
icons instead of paths-to-icons.
2020-03-29 19:37:23 +02:00

7 lines
172 B
Text

endpoint NotificationServer = 95
{
// Basic protocol
Greet() => (i32 client_id)
ShowNotification(String text, String title, Gfx::ShareableBitmap icon) => ()
}