libvirt/src/rpc
Daniel P. Berrangé 9692fe10eb rpc: add helper APIs for adding services with systemd activation
Currently code has to first create the service and then separately
register it with the server. If the socket associated with a particular
service is not passed from systemd we want to skip creating the service
altogether. This means we can't put the systemd activation logic into
the constructors for virNetServerService.

This patch thus creates some helper methods against virNetServer which
combine systemd activation, service creation and service registration
into one single operation. This operation is automatically a no-op if
systemd activation is present and no sockets were passed in.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-07-12 16:55:39 +01:00
..
gendispatch.pl remote: add support for new network port APIs 2019-06-17 15:30:22 +01:00
genprotocol.pl rpc: reproducible genprotocol output 2018-10-12 14:44:43 +02:00
gensystemtap.pl Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
Makefile.inc.am rpc: add $(SASL_CFLAGS) to libvirt_net_rpc_server_la_CFLAGS 2019-06-21 15:41:34 +01:00
virkeepalive.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virkeepalive.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virkeepaliveprotocol.x Define keepalive protocol 2011-11-24 11:44:08 +01:00
virnetclient.c rpc: client: stream: fix multi thread abort/finish 2019-02-08 17:16:00 +01:00
virnetclient.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetclientprogram.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virnetclientprogram.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetclientstream.c rpc: client: stream: fix multi thread abort/finish 2019-02-08 17:16:00 +01:00
virnetclientstream.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetdaemon.c remote: delete the avahi mDNS support 2019-06-21 12:59:42 +01:00
virnetdaemon.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetlibsshsession.c rpc: virnetlibsshsession: update deprecated functions 2019-06-21 09:49:24 +02:00
virnetlibsshsession.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetmessage.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virnetmessage.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetprotocol.x Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetsaslcontext.c rpc: ensure thread safe initialization of SASL library 2019-07-08 12:59:49 +01:00
virnetsaslcontext.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetserver.c rpc: add helper APIs for adding services with systemd activation 2019-07-12 16:55:39 +01:00
virnetserver.h rpc: add helper APIs for adding services with systemd activation 2019-07-12 16:55:39 +01:00
virnetserverclient.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virnetserverclient.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetserverprogram.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virnetserverprogram.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetserverservice.c rpc: avoid unlinking sockets passed in from systemd 2019-07-12 16:55:39 +01:00
virnetserverservice.h rpc: avoid unlinking sockets passed in from systemd 2019-07-12 16:55:39 +01:00
virnetsocket.c rpc: avoid unlinking sockets passed in from systemd 2019-07-12 16:55:39 +01:00
virnetsocket.h rpc: avoid unlinking sockets passed in from systemd 2019-07-12 16:55:39 +01:00
virnetsshsession.c misc: Drop useless checks from *Dispose() functions 2019-05-23 13:59:06 +02:00
virnetsshsession.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnettlscontext.c rpc: cleanup in virNetTLSContextNew 2019-04-16 11:22:50 +01:00
virnettlscontext.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00