summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-09-20 20:49:26 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-09-20 20:49:26 +0100
commitcd98c0595e2b5813bc7f9c80d15cca4af07f20d4 (patch)
tree50981070c7f53cdde55061a1c2bbb00a04072f49
parentAdd a code coverage profile (diff)
downloadlibdbpp-cd98c0595e2b5813bc7f9c80d15cca4af07f20d4.tar.bz2
libdbpp-cd98c0595e2b5813bc7f9c80d15cca4af07f20d4.tar.xz
libdbpp-cd98c0595e2b5813bc7f9c80d15cca4af07f20d4.zip
Set visibility
-rw-r--r--libdbpp/Jamfile.jam9
-rw-r--r--libdbpp/column.h5
-rw-r--r--libdbpp/command.h3
-rw-r--r--libdbpp/connection.h3
-rw-r--r--libdbpp/error.h5
-rw-r--r--libdbpp/modifycommand.h3
-rw-r--r--libdbpp/selectcommand.h3
7 files changed, 20 insertions, 11 deletions
diff --git a/libdbpp/Jamfile.jam b/libdbpp/Jamfile.jam
index 387afd6..3bde305 100644
--- a/libdbpp/Jamfile.jam
+++ b/libdbpp/Jamfile.jam
@@ -3,13 +3,16 @@ alias glibmm : : : :
<linkflags>"`pkg-config --libs glibmm-2.4`"
;
lib boost_date_time : : <name>boost_date_time ;
+lib adhocutil : : : : <include>/usr/include/adhocutil ;
lib dbpp :
[ glob *.cpp ] :
- <cflags>-fPIC
- <library>glibmm
+ <library>glibmm
+ <library>adhocutil
+ <cflags>-fvisibility=hidden
+ <variant>release:<cflags>-flto
: :
<include>.
- <library>glibmm
+ <library>glibmm
<library>boost_date_time
;
diff --git a/libdbpp/column.h b/libdbpp/column.h
index 2eb2e8d..47492d1 100644
--- a/libdbpp/column.h
+++ b/libdbpp/column.h
@@ -4,9 +4,10 @@
#include <glibmm/ustring.h>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/shared_ptr.hpp>
+#include <visibility.h>
namespace DB {
- class HandleField {
+ class DLL_PUBLIC HandleField {
public:
virtual void null() = 0;
virtual void string(const char *, size_t len) = 0;
@@ -17,7 +18,7 @@ namespace DB {
virtual void timestamp(const boost::posix_time::ptime &) = 0;
};
class Command;
- class Column {
+ class DLL_PUBLIC Column {
public:
Column(const Glib::ustring &, unsigned int);
virtual ~Column() = 0;
diff --git a/libdbpp/command.h b/libdbpp/command.h
index 8cc515f..20e2c83 100644
--- a/libdbpp/command.h
+++ b/libdbpp/command.h
@@ -3,9 +3,10 @@
#include <glibmm/ustring.h>
#include <boost/date_time/posix_time/posix_time_types.hpp>
+#include <visibility.h>
namespace DB {
- class Command {
+ class DLL_PUBLIC Command {
public:
Command(const std::string & sql);
virtual ~Command() = 0;
diff --git a/libdbpp/connection.h b/libdbpp/connection.h
index fdd27e9..2da3f05 100644
--- a/libdbpp/connection.h
+++ b/libdbpp/connection.h
@@ -2,6 +2,7 @@
#define CONNECTION_H
#include <string>
+#include <visibility.h>
namespace DB {
class SelectCommand;
@@ -16,7 +17,7 @@ namespace DB {
BulkUpdateUsingFromSrc,
BulkUpdateUsingJoin,
};
- class Connection {
+ class DLL_PUBLIC Connection {
public:
virtual ~Connection();
diff --git a/libdbpp/error.h b/libdbpp/error.h
index 3da6316..ab55524 100644
--- a/libdbpp/error.h
+++ b/libdbpp/error.h
@@ -3,10 +3,11 @@
#include <stdlib.h>
#include <exception>
+#include <visibility.h>
namespace DB {
- class Error : public virtual std::exception { };
- class ConnectionError : public Error {
+ class DLL_PUBLIC Error : public virtual std::exception { };
+ class DLL_PUBLIC ConnectionError : public Error {
public:
ConnectionError();
ConnectionError(time_t);
diff --git a/libdbpp/modifycommand.h b/libdbpp/modifycommand.h
index 304603b..4cc8e72 100644
--- a/libdbpp/modifycommand.h
+++ b/libdbpp/modifycommand.h
@@ -2,9 +2,10 @@
#define DB_MODIFYCOMMAND_H
#include "command.h"
+#include <visibility.h>
namespace DB {
- class ModifyCommand : public virtual Command {
+ class DLL_PUBLIC ModifyCommand : public virtual Command {
public:
ModifyCommand(const std::string & sql);
~ModifyCommand();
diff --git a/libdbpp/selectcommand.h b/libdbpp/selectcommand.h
index c23ad81..a5788ea 100644
--- a/libdbpp/selectcommand.h
+++ b/libdbpp/selectcommand.h
@@ -7,10 +7,11 @@
#include <boost/multi_index/indexed_by.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/member.hpp>
+#include <visibility.h>
namespace DB {
class Column;
- class SelectCommand : public virtual Command {
+ class DLL_PUBLIC SelectCommand : public virtual Command {
public:
SelectCommand(const std::string & sql);
~SelectCommand();