summaryrefslogtreecommitdiff
path: root/src/gpg-error.vers
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-08-22 19:08:08 +0200
committerWerner Koch <wk@gnupg.org>2014-08-25 16:37:46 +0200
commit216e7def2118a1774fa7ebeb45b8635b9fe6ba42 (patch)
treebcccb2ca1de195b79554f8d5fce6a77540829771 /src/gpg-error.vers
parent6714d41af5b3f4d447eb0caea0ede38b753397f8 (diff)
downloadlibgpg-error-216e7def2118a1774fa7ebeb45b8635b9fe6ba42.tar.gz
Implement symbol visibility.
* configure.ac: New option --enable-ld-version-script. (GPGRT_USE_VISIBILITY): New ac_define. (HAVE_LD_VERSION_SCRIPT): New am_conditional. * src/gpg-error.vers: New. * src/gpgrt-int.h: New. * src/visibility.c, src/visibility.h: New. Lot of changes to symbold names. -- This is only doe for the old API. The estream API needs to be added.
Diffstat (limited to 'src/gpg-error.vers')
-rw-r--r--src/gpg-error.vers42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/gpg-error.vers b/src/gpg-error.vers
new file mode 100644
index 0000000..8e67081
--- /dev/null
+++ b/src/gpg-error.vers
@@ -0,0 +1,42 @@
+# libgpg-error.vers - What symbols to export -*- std -*-
+# Copyright (C) 2014 g10 Code GmbH
+#
+# This file is part of libgpg-error.
+#
+# libgpg-error is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation; either version 2.1 of the
+# License, or (at your option) any later version.
+#
+# libgpg-error is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+# NOTE: When adding new functions, please make sure to add them to
+# visibility.h and gpg-error.def.in as well.
+
+
+GPG_ERROR_1.0 {
+ global:
+ gpg_strerror;
+ gpg_strerror_r;
+ gpg_strsource;
+ gpg_err_code_from_errno;
+ gpg_err_code_to_errno;
+ gpg_err_code_from_syserror;
+ gpg_err_set_errno;
+ gpg_error_check_version;
+
+ gpgrt_lock_init;
+ gpgrt_lock_lock;
+ gpgrt_lock_unlock;
+ gpgrt_lock_destroy;
+ gpgrt_yield;
+
+ local:
+ *;
+};