From 84879fe8901cb6c5055f509a011e96be54571ced Mon Sep 17 00:00:00 2001 From: sletz Date: Mon, 14 Mar 2011 13:57:16 +0000 Subject: [PATCH] Correct visibility warnings. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4191 0c269be4-1314-0410-8aa9-9f06e86f4224 --- common/JackClient.h | 2 +- common/JackDebugClient.h | 2 +- common/JackLibClient.h | 4 ++-- common/JackLibGlobals.h | 18 +++++++++--------- common/JackMidiPort.h | 4 ++-- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/common/JackClient.h b/common/JackClient.h index 230edf53..2f25f90f 100644 --- a/common/JackClient.h +++ b/common/JackClient.h @@ -44,7 +44,7 @@ struct JackEngineControl; \brief The base class for clients: share part of the implementation for JackInternalClient and JackLibClient. */ -class JackClient : public JackClientInterface, public JackRunnableInterface +class SERVER_EXPORT JackClient : public JackClientInterface, public JackRunnableInterface { friend class JackDebugClient; diff --git a/common/JackDebugClient.h b/common/JackDebugClient.h index 6a19deca..3ebb8bb7 100644 --- a/common/JackDebugClient.h +++ b/common/JackDebugClient.h @@ -46,7 +46,7 @@ PortFollower; \brief A "decorator" debug client to validate API use. */ -class JackDebugClient : public JackClient +class SERVER_EXPORT JackDebugClient : public JackClient { protected: diff --git a/common/JackLibClient.h b/common/JackLibClient.h index f2820601..ef07581c 100644 --- a/common/JackLibClient.h +++ b/common/JackLibClient.h @@ -12,7 +12,7 @@ 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, write to the Free Software +along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -32,7 +32,7 @@ namespace Jack \brief Client on the library side. */ -class JackLibClient : public JackClient +class SERVER_EXPORT JackLibClient : public JackClient { private: diff --git a/common/JackLibGlobals.h b/common/JackLibGlobals.h index 5ef8b9e9..8d312295 100644 --- a/common/JackLibGlobals.h +++ b/common/JackLibGlobals.h @@ -12,7 +12,7 @@ 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, write to the Free Software +along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -31,7 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "JackError.h" #include #include - + namespace Jack { @@ -42,13 +42,13 @@ class JackClient; \brief Global library static structure: singleton kind of pattern. */ -struct JackLibGlobals +struct SERVER_EXPORT JackLibGlobals { JackShmReadWritePtr fGraphManager; /*! Shared memory Port manager */ JackShmReadWritePtr fEngineControl; /*! Shared engine control */ // transport engine has to be writable JackSynchro fSynchroTable[CLIENT_NUM]; /*! Shared synchro table */ sigset_t fProcessSignals; - + static int fClientCount; static JackLibGlobals* fGlobals; @@ -67,7 +67,7 @@ struct JackLibGlobals sigemptyset(&signals); sigaddset(&signals, SIGPIPE); sigprocmask(SIG_BLOCK, &signals, &fProcessSignals); - #endif + #endif } ~JackLibGlobals() @@ -83,13 +83,13 @@ struct JackLibGlobals // TODO #else sigprocmask(SIG_BLOCK, &fProcessSignals, 0); - #endif + #endif } static void Init() { if (!JackGlobals::fServerRunning && fClientCount > 0) { - + // Cleanup remaining clients jack_error("Jack server was closed but clients are still allocated, cleanup..."); for (int i = 0; i < CLIENT_NUM; i++) { @@ -101,13 +101,13 @@ struct JackLibGlobals JackGlobals::fClientTable[CLIENT_NUM] = NULL; } } - + // Cleanup global context fClientCount = 0; delete fGlobals; fGlobals = NULL; } - + if (fClientCount++ == 0 && !fGlobals) { jack_log("JackLibGlobals Init %x", fGlobals); InitTime(); diff --git a/common/JackMidiPort.h b/common/JackMidiPort.h index 0dbfcb9a..3c24542b 100644 --- a/common/JackMidiPort.h +++ b/common/JackMidiPort.h @@ -13,7 +13,7 @@ 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, write to the Free Software +along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -71,7 +71,7 @@ struct SERVER_EXPORT JackMidiEvent * but their data (if not inlined) is stored from the end of the same buffer. */ -struct JackMidiBuffer +struct SERVER_EXPORT JackMidiBuffer { enum { MAGIC = 0x900df00d };