summaryrefslogtreecommitdiff
path: root/Userland/Services/ImageDecoder
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2021-04-25 13:19:53 +0200
committerLinus Groh <mail@linusgroh.de>2021-04-25 14:06:56 +0200
commit62af6cd4f9637b8937e59832f5af00f4556c496b (patch)
treebdf998938966c8fb949f655d95ba697e830eba87 /Userland/Services/ImageDecoder
parent64d05152f74fd2b6bb4cb723700335282fb32659 (diff)
downloadserenity-62af6cd4f9637b8937e59832f5af00f4556c496b.zip
IPCCompiler: Remove hardcoded endpoint magic, attempt deux
This patch removes the IPC endpoint numbers that needed to be specified in the IPC files. Since the string hash is a (hopefully) collision free number that depends on the name of the endpoint, we now use that instead. :^) Additionally, endpoint magic is now treated as a u32, because endpoint numbers were never negative anyway. For cases where the endpoint number does have to be hardcoded (a current case is LookupServer because the endpoint number must be known in LibC), the syntax has been made more explicit to avoid confusing those unfamiliar. To hardcode the endpoint magic, the following syntax is now used: endpoint EndpointName [magic=1234]
Diffstat (limited to 'Userland/Services/ImageDecoder')
-rw-r--r--Userland/Services/ImageDecoder/ImageDecoderClient.ipc2
-rw-r--r--Userland/Services/ImageDecoder/ImageDecoderServer.ipc2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/ImageDecoder/ImageDecoderClient.ipc b/Userland/Services/ImageDecoder/ImageDecoderClient.ipc
index 49dc3862c2..4b486e38b2 100644
--- a/Userland/Services/ImageDecoder/ImageDecoderClient.ipc
+++ b/Userland/Services/ImageDecoder/ImageDecoderClient.ipc
@@ -1,4 +1,4 @@
-endpoint ImageDecoderClient = 7002
+endpoint ImageDecoderClient
{
Dummy() =|
}
diff --git a/Userland/Services/ImageDecoder/ImageDecoderServer.ipc b/Userland/Services/ImageDecoder/ImageDecoderServer.ipc
index c2808822df..41f135c4b0 100644
--- a/Userland/Services/ImageDecoder/ImageDecoderServer.ipc
+++ b/Userland/Services/ImageDecoder/ImageDecoderServer.ipc
@@ -1,4 +1,4 @@
-endpoint ImageDecoderServer = 7001
+endpoint ImageDecoderServer
{
Greet() => ()