]> git.ipfire.org Git - thirdparty/gnutls.git/commit
gnutlsxx: become header-only library
authorNikolaos Chatzikonstantinou <nchatz314@gmail.com>
Sun, 18 Dec 2022 23:37:08 +0000 (01:37 +0200)
committerZoltan Fridrich <zfridric@redhat.com>
Mon, 30 Jan 2023 09:25:21 +0000 (10:25 +0100)
commit2fa02b529802ac61875243c3d09f8baf86605fe2
tree7d9d0cf0c8da988b14c9190446694e42cf7888c1
parentd75eec5cb344468ccb31a93f385004f87f72a301
gnutlsxx: become header-only library

This patch removes the old gnutlsxx library and instead moves all the
definitions of the source file `gnutlsxx.c` to the header file
`gnutlsxx.h`. However, both the C and the C++ library are built. (as
before.)

The user of the C++ interface has two options to choose from:

1. include `gnutlsxx.h` in their application and link against the C
   library. (the default.)
2. include `gnutlsxx.h` in their application, compile with the
   GNUTLS_GNUTLSXX_NO_HEADERONLY macro defined and link against the C++
   library.

Addresses Ref #1381

Signed-off-by: Nikolaos Chatzikonstantinou <nchatz314@gmail.com>
lib/Makefile.am
lib/gnutlsxx.cpp [deleted file]
lib/includes/gnutls/gnutlsxx.h