module-protocol-native: add module argument 'sockets'

Add module argument 'sockets' for creating multiple sockets clients can
connect to.

Also allow setting socket file permissions.
This commit is contained in:
Pauli Virtanen 2023-10-07 12:21:20 +03:00
parent 7a0b400c18
commit 72462ebd07
5 changed files with 229 additions and 11 deletions

View file

@ -232,6 +232,7 @@ check_headers = [
['sys/random.h', 'HAVE_SYS_RANDOM_H'],
['sys/vfs.h', 'HAVE_SYS_VFS_H'],
['pwd.h', 'HAVE_PWD_H'],
['grp.h', 'HAVE_GRP_H'],
]
foreach h : check_headers
@ -247,6 +248,10 @@ summary({'systemd conf data': systemd.found()}, bool_yn: true)
summary({'libsystemd': systemd_dep.found()}, bool_yn: true)
cdata.set('HAVE_SYSTEMD', systemd.found() and systemd_dep.found())
selinux_dep = dependency('libselinux', required: get_option('selinux'))
summary({'libselinux': selinux_dep.found()}, bool_yn: true)
cdata.set('HAVE_SELINUX', selinux_dep.found())
configinc = include_directories('.')
includes_inc = include_directories('include')
pipewire_inc = include_directories('src')