]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nss: Use macro to generate public API names
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 4 Dec 2016 10:56:44 +0000 (11:56 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 6 Dec 2016 12:33:18 +0000 (13:33 +0100)
commit30efb515cec744aa6f6500b511647deb9f142ca4
treeb103a057cbe4637531e721c770a24fbc2a355d4a
parent1f9db235e7674c4e40bcb46f048c6c5345b3b0f4
nss: Use macro to generate public API names

The name of the exported functions for an NSS module is quite
fixed, it is derived from the module name:

  _nss_$module_$function

Since we will create another NSS module with very similar
implementation we might as well generate the function names at
the compile time.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/nsslinktest.c
tests/nsstest.c
tools/nss/libvirt_nss.c
tools/nss/libvirt_nss.h