loc_server_register() should be callable more than once (implementation)
commit7d7f5e3e22d4a07e37e90f73a61193fc2a664b39
authorJiri Svoboda <jiri@wiwaxia>
Sun, 17 Sep 2023 09:56:59 +0000 (17 11:56 +0200)
committerJiri Svoboda <jiri@wiwaxia>
Sun, 17 Sep 2023 09:56:59 +0000 (17 11:56 +0200)
tree8faf5a1f9291a98f7dd65ce72381b957201afe39
parent4c6fd56b8079778d8d40e0d5ffc6a1e8e8ad2b5b
loc_server_register() should be callable more than once (implementation)

We create a new session for each loc_server_register() / loc_srv_t
object. Alternatively we could multiplex all to a single connection
and then demultiplex them in the server, but this seemed simpler
at the moment.

We add a test case to libc test suite.
uspace/lib/c/generic/loc.c
uspace/lib/c/include/loc.h
uspace/lib/c/include/types/loc.h
uspace/lib/c/meson.build
uspace/lib/c/test/loc.c [copied from uspace/lib/c/include/types/loc.h with 50% similarity]
uspace/lib/c/test/main.c