1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

IPCCompiler: Start working on a simple IPC definition language

Instead of doing everything manually in C++, let's do some codegen.
This patch adds a crude but effective IPC definition parser, along
with two initial definition files for the AudioServer's client and
server endpoints.
This commit is contained in:
Andreas Kling 2019-08-03 15:15:11 +02:00
parent c5903ec4bb
commit aa8a3d4a89
5 changed files with 244 additions and 0 deletions

View file

@ -0,0 +1,4 @@
endpoint AudioClient
{
FinishedPlayingBuffer(i32 buffer_id) =|
}

View file

@ -0,0 +1,9 @@
endpoint AudioServer
{
Greet(i32 client_pid) => (i32 server_pid, i32 client_id)
GetMainMixVolume() => (i32 volume)
SetMainMixVolume(i32 volume) => ()
EnqueueBuffer(i32 buffer_id) => ()
}