summaryrefslogtreecommitdiff
path: root/libtmdb
diff options
context:
space:
mode:
Diffstat (limited to 'libtmdb')
-rw-r--r--libtmdb/Jamfile.jam1
-rw-r--r--libtmdb/httpClient.h6
-rw-r--r--libtmdb/tmdb-proxy.h2
3 files changed, 6 insertions, 3 deletions
diff --git a/libtmdb/Jamfile.jam b/libtmdb/Jamfile.jam
index 9ec2e7a..3c719b6 100644
--- a/libtmdb/Jamfile.jam
+++ b/libtmdb/Jamfile.jam
@@ -27,6 +27,7 @@ lib tmdb :
<library>glibmm
<library>curl
<slicer>yes
+ <cflags>-fvisibility=hidden
: :
<include>.
<library>Ice
diff --git a/libtmdb/httpClient.h b/libtmdb/httpClient.h
index 4f35937..e171323 100644
--- a/libtmdb/httpClient.h
+++ b/libtmdb/httpClient.h
@@ -26,7 +26,7 @@ namespace TMDb {
value(v ? boost::lexical_cast<std::string>(*v) : IceUtil::Optional<std::string>())
{
}
-
+
IceUtil::Optional<std::string> value;
};
typedef std::map<std::string, ParameterValue> Parameters;
@@ -53,7 +53,7 @@ namespace TMDb {
return Slicer::Deserialize<Slicer::JsonValueDeserializer, ReturnModel>(data);
}
- static void packParams(boost::format &);
+ DLL_PUBLIC static void packParams(boost::format &);
template <typename T, typename ... Ts>
static void packParams(boost::format & fmt, const T & param, const Ts & ... params)
@@ -62,7 +62,7 @@ namespace TMDb {
packParams(fmt, params...);
}
- void appendQueryParameters(std::string & path, const Parameters & parameters) const;
+ DLL_PUBLIC void appendQueryParameters(std::string & path, const Parameters & parameters) const;
void appendQueryParameters(std::string & path, const Parameters::value_type & nvp) const;
json::Value FetchJson(const std::string & path) const;
diff --git a/libtmdb/tmdb-proxy.h b/libtmdb/tmdb-proxy.h
index 6ff8b38..c5490a3 100644
--- a/libtmdb/tmdb-proxy.h
+++ b/libtmdb/tmdb-proxy.h
@@ -1,6 +1,7 @@
#include <tmdb-api.h>
#include "httpClient.h"
+#pragma GCC visibility push(default)
namespace TMDb {
class Proxy : public API, private HttpClient {
public:
@@ -14,4 +15,5 @@ namespace TMDb {
TvSeriesPtr GetTvSeries(Ice::Int, const Ice::Current&) override;
};
};
+#pragma GCC visibility pop