swrap: introduce a socket_wrapper_noop.so and socket_wrapper.h to provide noop stubs
authorStefan Metzmacher <metze@samba.org>
Wed, 24 Feb 2021 11:45:26 +0000 (12:45 +0100)
committerAndreas Schneider <asn@samba.org>
Mon, 15 Mar 2021 07:04:58 +0000 (08:04 +0100)
commitefd2967e060a3a7ca3de589a23511bb38151ed8b
tree1d26874505b7c381f16f0f5bcf59dcd392d3742e
parent4ad5a5af0bdf94497f068f10d6c09520702fd50f
swrap: introduce a socket_wrapper_noop.so and socket_wrapper.h to provide noop stubs

Applications with the need to call socket_wrapper_enabled() should link
against -lsocket_wrapper_noop in order to resolve the symbol at
link time.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14640

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
CMakeLists.txt
doc/socket_wrapper.1
doc/socket_wrapper.1.adoc
socket_wrapper_noop.pc.cmake [new file with mode: 0644]
src/CMakeLists.txt
src/socket_wrapper.c
src/socket_wrapper.h [new file with mode: 0644]
src/socket_wrapper_noop.c [new file with mode: 0644]
tests/CMakeLists.txt
tests/test_public_functions.c [new file with mode: 0644]