libvirt/src/remote
Daniel P. Berrangé cfbe9f1201 build: link to glib library
Add the main glib.h to internal.h so that all common code can use it.

Historically glib allowed applications to register an alternative
memory allocator, so mixing g_malloc/g_free with malloc/free was not
safe.

This was feature was dropped in 2.46.0 with:

      commit 3be6ed60aa58095691bd697344765e715a327fc1
      Author: Alexander Larsson <alexl@redhat.com>
      Date:   Sat Jun 27 18:38:42 2015 +0200

        Deprecate and drop support for memory vtables

Applications are still encourged to match g_malloc/g_free, but it is no
longer a mandatory requirement for correctness, just stylistic. This is
explicitly clarified in

    commit 1f24b36607bf708f037396014b2cdbc08d67b275
    Author: Daniel P. Berrangé <berrange@redhat.com>
    Date:   Thu Sep 5 14:37:54 2019 +0100

        gmem: clarify that g_malloc always uses the system allocator

Applications can still use custom allocators in general, but they must
do this by linking to a library that replaces the core malloc/free
implemenentation entirely, instead of via a glib specific call.

This means that libvirt does not need to be concerned about use of
g_malloc/g_free causing an ABI change in the public libary, and can
avoid memory copying when talking to external libraries.

This patch probes for glib, which provides the foundation layer with
a collection of data structures, helper APIs, and platform portability
logic.

Later patches will introduce linkage to gobject which provides the
object type system, built on glib, and gio which providing objects
for various interesting tasks, most notably including DBus client
and server support and portable sockets APIs, but much more too.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-10-14 10:54:42 +01:00
..
libvirtd-admin.socket.in
libvirtd-ro.socket.in
libvirtd-tcp.socket.in
libvirtd-tls.socket.in
libvirtd.aug.in
libvirtd.conf.in
libvirtd.libxl.logrotate.in
libvirtd.logrotate.in
libvirtd.lxc.logrotate.in
libvirtd.pod remote: forbid the --listen arg when systemd socket activation 2019-08-27 10:46:37 +01:00
libvirtd.policy
libvirtd.qemu.logrotate.in
libvirtd.rules
libvirtd.sasl
libvirtd.service.in remote: move timeout arg into sysconf file 2019-08-27 10:30:23 +01:00
libvirtd.socket.in
libvirtd.sysconf remote: move timeout arg into sysconf file 2019-08-27 10:30:23 +01:00
libvirtd.sysctl
lxc_protocol.x
Makefile.inc.am build: link to glib library 2019-10-14 10:54:42 +01:00
qemu_protocol.x
remote_daemon_config.c lib: Define and use autofree for virConfPtr 2019-09-10 09:34:37 +02:00
remote_daemon_config.h
remote_daemon_dispatch.c remote: pass identity across to newly opened daemons 2019-09-16 11:25:53 +01:00
remote_daemon_dispatch.h
remote_daemon_stream.c
remote_daemon_stream.h
remote_daemon.c remote: fix systemd IP socket activation with virtproxyd 2019-09-30 12:04:29 +01:00
remote_daemon.h
remote_driver.c remote: fix a memory free error 2019-09-19 16:15:50 +02:00
remote_driver.h
remote_protocol.x remote: pass identity across to newly opened daemons 2019-09-16 11:25:53 +01:00
test_libvirtd.aug.in
virt-guest-shutdown.target.in
virtproxyd.service.in