libvirt/src/nwfilter
Daniel P. Berrangé 7b9645a7d1 util: replace atomic ops impls with g_atomic_int*
Libvirt's original atomic ops impls were largely copied
from GLib's code at the time. The only API difference
was that libvirt's virAtomicIntInc() would return a
value, but g_atomic_int_inc was void. We thus use
g_atomic_int_add(v, 1) instead, though this means
virAtomicIntInc() now returns the original value,
instead of the new value.

This rewrites libvirt's impl in terms of g_atomic_int*
as a short term conversion. The key motivation was to
quickly eliminate use of GNULIB's verify_expr() macro
which is not a direct match for G_STATIC_ASSERT_EXPR.
Long term all the callers should be updated to use
g_atomic_int* directly.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-01-17 10:02:00 +00:00
..
xml nwfilter: move standard XML configs out of examples dir 2019-08-19 11:52:44 +01:00
Makefile.inc.am configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
nwfilter_dhcpsnoop.c util: replace atomic ops impls with g_atomic_int* 2020-01-17 10:02:00 +00:00
nwfilter_dhcpsnoop.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
nwfilter_driver.c Drop needless ret variable 2019-10-24 08:10:37 +02:00
nwfilter_driver.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
nwfilter_ebiptables_driver.c src: replace use of INT_BUFSIZE_BOUND macros 2020-01-17 09:58:43 +00:00
nwfilter_ebiptables_driver.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
nwfilter_gentech_driver.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
nwfilter_gentech_driver.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
nwfilter_learnipaddr.c src: replace use of INT_BUFSIZE_BOUND macros 2020-01-17 09:58:43 +00:00
nwfilter_learnipaddr.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
nwfilter_tech_driver.h src/nwfilter: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virtnwfilterd.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtnwfilterd.service.in nwfilter: introduce virtnwfilterd daemon 2019-08-09 14:06:31 +01:00