Changeset 4898 for branches/erijo-dev
- Timestamp:
- 04/30/07 06:56:31 (19 months ago)
- Location:
- branches/erijo-dev/licq
- Files:
-
- 17 modified
-
CMakeLists.txt (modified) (1 diff)
-
licq/eventdispatcher.h (modified) (2 diffs)
-
licq/eventloop.h (modified) (2 diffs)
-
licq/interface/daemon.h (modified) (2 diffs)
-
licq/interface/event.h (modified) (3 diffs)
-
licq/interface/eventhandler.h (modified) (4 diffs)
-
licq/interface/eventqueue.h (modified) (2 diffs)
-
licq/interface/log.h (modified) (2 diffs)
-
licq/interface/plugin.h (modified) (2 diffs)
-
licq/interface/pluginfactory.h (modified) (5 diffs)
-
licq/interface/plugininformation.h (modified) (3 diffs)
-
licq/licq.h (modified) (1 diff)
-
licq/version.h (modified) (3 diffs)
-
src/event/tests/main.cpp (modified) (1 diff)
-
src/plugin/tests/main.cpp (modified) (1 diff)
-
src/tests/main.cpp (modified) (1 diff)
-
src/utils/tests/main.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/erijo-dev/licq/CMakeLists.txt
r4883 r4898 41 41 endif (CXX_ACCEPTS_WEXTRA) 42 42 43 check_cxx_accepts_flag(-fvisibility=hidden CXX_ACCEPTS_VISIBILITY) 44 if (CXX_ACCEPTS_VISIBILITY) 45 add_definitions(-fvisibility=hidden) 46 # add_definitions(-fvisibility-inlines-hidden) 47 endif (CXX_ACCEPTS_VISIBILITY) 48 43 49 # dlopen policy 44 50 set(DLOPEN_POLICY RTLD_NOW) -
branches/erijo-dev/licq/licq/eventdispatcher.h
r4884 r4898 21 21 #define LICQ_TEVENTDISPATCHER_H 22 22 23 #include "licq/licq.h" 23 24 #include "licq/interface/eventhandler.h" 24 25 … … 31 32 typedef boost::function<void (const IEventPtr&)> TEventCallback; 32 33 33 class TEventDispatcher : public IEventHandler34 class LICQEXPORT TEventDispatcher : public IEventHandler 34 35 { 35 36 private: -
branches/erijo-dev/licq/licq/eventloop.h
r4881 r4898 21 21 #define LICQ_TEVENTLOOP_H 22 22 23 #include "licq/licq.h" 23 24 #include "licq/interface/eventhandler.h" 24 25 #include "licq/interface/eventqueue.h" … … 27 28 { 28 29 29 class TEventLoop30 class LICQEXPORT TEventLoop 30 31 { 31 32 private: -
branches/erijo-dev/licq/licq/interface/daemon.h
r4881 r4898 21 21 #define LICQ_IDAEMON_H 22 22 23 #include "licq/licq.h" 23 24 #include "licq/interface/event.h" 24 25 … … 28 29 { 29 30 30 class IDaemon31 class LICQEXPORT IDaemon 31 32 { 32 33 protected: -
branches/erijo-dev/licq/licq/interface/event.h
r4882 r4898 21 21 #define LICQ_IEVENT_H 22 22 23 #include "licq/licq.h" 23 24 #include "licq/types.h" 24 25 … … 45 46 (key, value pairs). 46 47 */ 47 class IEvent : private boost::noncopyable48 class LICQEXPORT IEvent : private boost::noncopyable 48 49 { 49 50 protected: … … 58 59 \return True if property exists; otherwise false. 59 60 */ 60 virtual bool getProperty(const std::string& key, 61 const boost::any** value) const = 0;61 virtual bool getProperty(const std::string& key, 62 const boost::any** value) const = 0; 62 63 63 64 public: -
branches/erijo-dev/licq/licq/interface/eventhandler.h
r4881 r4898 21 21 #define LICQ_IEVENTHANDLER_H 22 22 23 #include "licq/licq.h" 23 24 #include "licq/interface/event.h" 24 25 … … 26 27 { 27 28 28 class ITimeoutHandler29 class LICQEXPORT ITimeoutHandler 29 30 { 30 31 public: … … 33 34 }; 34 35 35 class IFileDescriptorHandler36 class LICQEXPORT IFileDescriptorHandler 36 37 { 37 38 public: … … 40 41 }; 41 42 42 class IEventHandler43 class LICQEXPORT IEventHandler 43 44 { 44 45 public: -
branches/erijo-dev/licq/licq/interface/eventqueue.h
r4875 r4898 21 21 #define LICQ_IEVENTQUEUE_H 22 22 23 #include "licq/licq.h" 23 24 #include "licq/interface/event.h" 24 25 #include <boost/noncopyable.hpp> … … 42 43 (or popAll()) to retreive the event(s). 43 44 */ 44 class IEventQueue : private boost::noncopyable45 class LICQEXPORT IEventQueue : private boost::noncopyable 45 46 { 46 47 protected: -
branches/erijo-dev/licq/licq/interface/log.h
r4839 r4898 21 21 #define LICQ_ILOG_H 22 22 23 #include "licq/licq.h" 23 24 #include <cstdarg> 24 25 … … 36 37 \brief A printf-styled logging facility. 37 38 */ 38 class ILog39 class LICQEXPORT ILog 39 40 { 40 41 public: -
branches/erijo-dev/licq/licq/interface/plugin.h
r4868 r4898 21 21 #define LICQ_IPLUGIN_H 22 22 23 #include "licq/licq.h" 23 24 #include "licq/types.h" 24 25 #include "licq/interface/eventqueue.h" … … 33 34 IPlugin is the interface that all plugins need to implement. 34 35 */ 35 class IPlugin36 class LICQEXPORT IPlugin 36 37 { 37 38 public: -
branches/erijo-dev/licq/licq/interface/pluginfactory.h
r4870 r4898 21 21 #define LICQ_IPLUGINFACTORY_H 22 22 23 #include "licq/licq.h" 24 #include "licq/types.h" 23 25 #include "licq/interface/log.h" 24 26 #include "licq/interface/plugin.h" 25 27 #include "licq/interface/plugininformation.h" 26 #include "licq/types.h"27 28 28 29 #include <string> … … 38 39 within a dynamic library (shared loadable module or .so library). 39 40 */ 40 class IPluginFactory41 class LICQEXPORT IPluginFactory 41 42 { 42 43 public: … … 98 99 \return A plugin factory instance. 99 100 */ 100 L icq::IPluginFactory* licqCreatePluginFactory();101 LICQEXPORT Licq::IPluginFactory* licqCreatePluginFactory(); 101 102 102 103 /** \brief Called by the daemon to destroy the plugin factory for this library. … … 106 107 licqCreatePluginFactory(). 107 108 */ 108 void licqDestroyPluginFactory(Licq::IPluginFactory* factory);109 LICQEXPORT void licqDestroyPluginFactory(Licq::IPluginFactory* factory); 109 110 110 111 /** \brief Get the API version the plugin was built with. … … 124 125 \return LICQ_VERSION_PLUGIN_API 125 126 */ 126 unsigned int licqGetPluginApiVersion();127 LICQEXPORT unsigned int licqGetPluginApiVersion(); 127 128 128 129 } // extern "C" 130 131 #define EXPORT_PLUGIN(FACTORY) \ 132 Licq::IPluginFactory* licqCreatePluginFactory() \ 133 { \ 134 return new FACTORY(); \ 135 } \ 136 void licqDestroyPluginFactory(Licq::IPluginFactory* factory) \ 137 { \ 138 delete factory; \ 139 } \ 140 unsigned int licqGetPluginApiVersion() \ 141 { \ 142 return LICQ_VERSION_PLUGIN_API; \ 143 } 129 144 130 145 inline Licq::IPluginFactory::~IPluginFactory() -
branches/erijo-dev/licq/licq/interface/plugininformation.h
r4879 r4898 21 21 #define LICQ_TPLUGININFORMATION_H 22 22 23 #include "licq/licq.h" 23 24 #include <boost/shared_ptr.hpp> 24 25 #include <string> … … 39 40 }; 40 41 41 struct TPluginAuthor42 struct LICQEXPORT TPluginAuthor 42 43 { 43 44 std::string Name; … … 46 47 }; 47 48 48 struct TPluginInformation49 struct LICQEXPORT TPluginInformation 49 50 { 50 51 unsigned int IntVersion; -
branches/erijo-dev/licq/licq/licq.h
r4839 r4898 44 44 */ 45 45 46 #if defined(__GNUC__) && __GNUC__ >= 4 47 #define LICQEXPORT __attribute__ ((visibility("default"))) 48 #define LICQLOCAL __attribute__ ((visibility("hidden"))) 49 #else 50 #define LICQEXPORT 51 #define LICQLOCAL 46 52 #endif 53 54 #endif -
branches/erijo-dev/licq/licq/version.h
r4828 r4898 21 21 #define LICQ_VERSION_H 22 22 23 #include "licq/licq.h" 24 23 25 #define LICQ_VERSION_MAJOR 1 24 26 #define LICQ_VERSION_MINOR 9 … … 41 43 42 44 #ifdef __GNUC__ 43 # define LICQ_VERSION_PLUGIN_API LICQ_MAKE_VERSION(__GNUC__, __GNUC_MINOR__, LICQ_VERSION_MAJOR) 45 # define LICQ_VERSION_PLUGIN_API \ 46 LICQ_MAKE_VERSION(__GNUC__, __GNUC_MINOR__, LICQ_VERSION_MAJOR) 44 47 #else 45 48 # define LICQ_VERSION_PLUGIN_API LICQ_VERSION_MAJOR … … 52 55 \see LICQ_VERSION 53 56 */ 54 unsigned int getVersion();57 extern LICQEXPORT unsigned int getVersion(); 55 58 56 59 /** \return Licq's major version, e.g. 1 in version 1.2.3. 57 60 \see LICQ_VERSION_MAJOR 58 61 */ 59 unsigned int getVersionMajor();62 extern LICQEXPORT unsigned int getVersionMajor(); 60 63 61 64 /** \return Licq's minor version, e.g. 2 in version 1.2.3. 62 65 \see LICQ_VERSION_MINOR 63 66 */ 64 unsigned int getVersionMinor();67 extern LICQEXPORT unsigned int getVersionMinor(); 65 68 66 69 /** \return Licq's release version, e.g. 3 in version 1.2.3. 67 70 \see LICQ_VERSION_RELEASE 68 71 */ 69 unsigned int getVersionRelease();72 extern LICQEXPORT unsigned int getVersionRelease(); 70 73 71 74 /** \return Licq's plugin API version. 72 75 \see LICQ_VERSION_PLUGIN_API 73 76 */ 74 unsigned int getVersionPluginApi();77 extern LICQEXPORT unsigned int getVersionPluginApi(); 75 78 76 79 /** \return Licq's version as a string, e.g. "1.2.3". 77 80 \see LICQ_VERSION_STRING 78 81 */ 79 const char* getVersionString();82 extern LICQEXPORT const char* getVersionString(); 80 83 81 84 } // namespace Licq -
branches/erijo-dev/licq/src/event/tests/main.cpp
r4883 r4898 19 19 20 20 #define BOOST_AUTO_TEST_MAIN 21 #pragma GCC visibility push(default) 21 22 #include <boost/test/auto_unit_test.hpp> 23 #pragma GCC visibility pop -
branches/erijo-dev/licq/src/plugin/tests/main.cpp
r4852 r4898 19 19 20 20 #define BOOST_AUTO_TEST_MAIN 21 #pragma GCC visibility push(default) 21 22 #include <boost/test/auto_unit_test.hpp> 23 #pragma GCC visibility pop -
branches/erijo-dev/licq/src/tests/main.cpp
r4828 r4898 19 19 20 20 #define BOOST_AUTO_TEST_MAIN 21 #pragma GCC visibility push(default) 21 22 #include <boost/test/auto_unit_test.hpp> 23 #pragma GCC visibility pop -
branches/erijo-dev/licq/src/utils/tests/main.cpp
r4827 r4898 19 19 20 20 #define BOOST_AUTO_TEST_MAIN 21 #pragma GCC visibility push(default) 21 22 #include <boost/test/auto_unit_test.hpp> 23 #pragma GCC visibility pop
