From 64e193594df3b1f22257ac94e59c393176a94d24 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Sun, 15 Dec 2024 20:58:55 -0600 Subject: [PATCH] Export many more symbols --- src/archive.h | 8 ++++++++ src/archive_dependency.h | 8 ++++++++ src/archive_permission.h | 8 ++++++++ src/authentication.h | 8 ++++++++ src/binary_package_publishing_history.h | 8 ++++++++ src/callablewrapper.h | 8 ++++++++ src/distro_arch_series.h | 8 ++++++++ src/distro_arch_series_filter.h | 8 ++++++++ src/distro_series.h | 8 ++++++++ 9 files changed, 72 insertions(+) diff --git a/src/archive.h b/src/archive.h index 5c9f760..cf0976a 100644 --- a/src/archive.h +++ b/src/archive.h @@ -26,6 +26,14 @@ #include #include +#ifndef LAUNCHPAD_API +#ifdef BUILDING_LAUNCHPAD + #define LAUNCHPAD_API __attribute__((visibility("default"))) +#else + #define LAUNCHPAD_API +#endif +#endif + class launchpad; struct build_record { diff --git a/src/archive_dependency.h b/src/archive_dependency.h index 95e992b..066ee32 100644 --- a/src/archive_dependency.h +++ b/src/archive_dependency.h @@ -5,6 +5,14 @@ #include #include +#ifndef LAUNCHPAD_API +#ifdef BUILDING_LAUNCHPAD + #define LAUNCHPAD_API __attribute__((visibility("default"))) +#else + #define LAUNCHPAD_API +#endif +#endif + class launchpad; class archive_dependency { diff --git a/src/archive_permission.h b/src/archive_permission.h index 497ee81..0d47e94 100644 --- a/src/archive_permission.h +++ b/src/archive_permission.h @@ -22,6 +22,14 @@ #include #include "distro_series.h" +#ifndef LAUNCHPAD_API +#ifdef BUILDING_LAUNCHPAD + #define LAUNCHPAD_API __attribute__((visibility("default"))) +#else + #define LAUNCHPAD_API +#endif +#endif + class launchpad; class archive_permission { diff --git a/src/authentication.h b/src/authentication.h index 6c478b7..ace45d3 100644 --- a/src/authentication.h +++ b/src/authentication.h @@ -19,6 +19,14 @@ #include #include +#ifndef LAUNCHPAD_API +#ifdef BUILDING_LAUNCHPAD + #define LAUNCHPAD_API __attribute__((visibility("default"))) +#else + #define LAUNCHPAD_API +#endif +#endif + extern const std::string AUTH_PLAINTEXT_CREDENTIALS_FILE; bool read_plaintext_credentials_impl(std::string& consumer_key, diff --git a/src/binary_package_publishing_history.h b/src/binary_package_publishing_history.h index 6a27acd..f4b5db2 100644 --- a/src/binary_package_publishing_history.h +++ b/src/binary_package_publishing_history.h @@ -6,6 +6,14 @@ #include #include +#ifndef LAUNCHPAD_API +#ifdef BUILDING_LAUNCHPAD + #define LAUNCHPAD_API __attribute__((visibility("default"))) +#else + #define LAUNCHPAD_API +#endif +#endif + class launchpad; class binary_package_publishing_history { diff --git a/src/callablewrapper.h b/src/callablewrapper.h index 24e9907..e3e6b50 100644 --- a/src/callablewrapper.h +++ b/src/callablewrapper.h @@ -20,6 +20,14 @@ #include #include +#ifndef LAUNCHPAD_API +#ifdef BUILDING_LAUNCHPAD + #define LAUNCHPAD_API __attribute__((visibility("default"))) +#else + #define LAUNCHPAD_API +#endif +#endif + // Forward declaration class launchpad; diff --git a/src/distro_arch_series.h b/src/distro_arch_series.h index 2bea6bd..33bf086 100644 --- a/src/distro_arch_series.h +++ b/src/distro_arch_series.h @@ -6,6 +6,14 @@ #include #include +#ifndef LAUNCHPAD_API +#ifdef BUILDING_LAUNCHPAD + #define LAUNCHPAD_API __attribute__((visibility("default"))) +#else + #define LAUNCHPAD_API +#endif +#endif + class launchpad; class distro_arch_series { diff --git a/src/distro_arch_series_filter.h b/src/distro_arch_series_filter.h index 9d81fec..7549bf9 100644 --- a/src/distro_arch_series_filter.h +++ b/src/distro_arch_series_filter.h @@ -5,6 +5,14 @@ #include #include +#ifndef LAUNCHPAD_API +#ifdef BUILDING_LAUNCHPAD + #define LAUNCHPAD_API __attribute__((visibility("default"))) +#else + #define LAUNCHPAD_API +#endif +#endif + class launchpad; class distro_arch_series_filter { diff --git a/src/distro_series.h b/src/distro_series.h index b2b1f2a..bca8f29 100644 --- a/src/distro_series.h +++ b/src/distro_series.h @@ -7,6 +7,14 @@ #include #include +#ifndef LAUNCHPAD_API +#ifdef BUILDING_LAUNCHPAD + #define LAUNCHPAD_API __attribute__((visibility("default"))) +#else + #define LAUNCHPAD_API +#endif +#endif + class launchpad; class distro_series {