loc_server_register() should be callable more than once (API only)
commit4c6fd56b8079778d8d40e0d5ffc6a1e8e8ad2b5b
authorJiri Svoboda <jiri@wiwaxia>
Sat, 16 Sep 2023 19:48:07 +0000 (16 21:48 +0200)
committerJiri Svoboda <jiri@wiwaxia>
Sat, 16 Sep 2023 19:58:18 +0000 (16 21:58 +0200)
tree41c232ccd2affd2896ee5069898ee48699f493ac
parent6a0b2cc0082e02f5fddd7bb03523eba5cfce193c
loc_server_register() should be callable more than once (API only)

Now loc_server_register() returns a pointer to a loc_srv_t object,
that is then passed to loc_service_register() and
loc_service_add_to_cat().

Added loc_server_unregister() that unregisters the server
and frees the loc_srv_t object.

Updated all callers. The implementation, however, is a stub.
It is not actually possible to call loc_server_register() more
than once, yet.
46 files changed:
uspace/app/display-cfg/test/seats.c
uspace/app/taskbar/test/wndlist.c
uspace/app/terminal/terminal.c
uspace/app/terminal/terminal.h
uspace/lib/c/generic/loc.c
uspace/lib/c/include/loc.h
uspace/lib/c/include/types/loc.h [copied from uspace/srv/devman/main.h with 87% similarity]
uspace/lib/ddev/test/ddev.c
uspace/lib/dispcfg/test/dispcfg.c
uspace/lib/display/test/display.c
uspace/lib/hound/src/protocol.c
uspace/lib/ipcgfx/test/ipcgfx.c
uspace/lib/wndmgt/test/wndmgt.c
uspace/srv/bd/file_bd/file_bd.c
uspace/srv/bd/rd/rd.c
uspace/srv/bd/sata_bd/sata_bd.c
uspace/srv/bd/vbd/disk.c
uspace/srv/bd/vbd/disk.h
uspace/srv/bd/vbd/vbd.c
uspace/srv/clipboard/clipboard.c
uspace/srv/devman/drv_conn.c
uspace/srv/devman/loc.c
uspace/srv/devman/main.c
uspace/srv/devman/main.h
uspace/srv/hid/console/console.c
uspace/srv/hid/display/main.c
uspace/srv/hid/input/input.c
uspace/srv/hid/isdv4_tablet/main.c
uspace/srv/hid/output/output.c
uspace/srv/hid/remcons/remcons.c
uspace/srv/hid/rfb/main.c
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
uspace/srv/net/dhcp/main.c
uspace/srv/net/dnsrsrv/dnsrsrv.c
uspace/srv/net/ethip/ethip.c
uspace/srv/net/inetsrv/inetsrv.c
uspace/srv/net/loopip/loopip.c
uspace/srv/net/nconfsrv/nconfsrv.c
uspace/srv/net/slip/slip.c
uspace/srv/net/tcp/service.c
uspace/srv/net/udp/service.c
uspace/srv/taskmon/taskmon.c
uspace/srv/test/chardev-test/main.c
uspace/srv/test/ipc-test/main.c
uspace/srv/volsrv/volsrv.c