Mercurial > hg > orthanc
diff OrthancServer/ServerContext.h @ 1632:eb8fbcf008b5
fix build with plugins disabled
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2015 14:05:06 +0200 |
parents | e5e975e9b738 |
children | f5ddbd9239dd |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.h Mon Sep 21 13:33:50 2015 +0200 +++ b/OrthancServer/ServerContext.h Mon Sep 21 14:05:06 2015 +0200 @@ -119,7 +119,11 @@ ServerScheduler scheduler_; LuaScripting lua_; + +#if ORTHANC_PLUGINS_ENABLED == 1 OrthancPlugins* plugins_; +#endif + ServerListeners listeners_; boost::recursive_mutex listenersMutex_; @@ -242,12 +246,15 @@ * Management of the plugins **/ +#if ORTHANC_PLUGINS_ENABLED == 1 void SetPlugins(OrthancPlugins& plugins); void ResetPlugins(); + const OrthancPlugins& GetPlugins() const; +#endif + bool HasPlugins() const; - const OrthancPlugins& GetPlugins() const; }; }