diff options
author | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-29 12:44:39 +0200 |
---|---|---|
committer | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-29 12:44:39 +0200 |
commit | 52291c1024050d25967b5640b04d67166b7728d2 (patch) | |
tree | cb2284fb3a891d53bdc0818da9a4bdd0c6d8675d /lib | |
parent | 2e6a6e8aed825e456600d01c8a805b6f6fd24c3a (diff) | |
download | abrt-52291c1024050d25967b5640b04d67166b7728d2.tar.gz abrt-52291c1024050d25967b5640b04d67166b7728d2.tar.xz abrt-52291c1024050d25967b5640b04d67166b7728d2.zip |
added object for commlayerinner
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CommLayer/CommLayerInner.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/CommLayer/CommLayerInner.cpp b/lib/CommLayer/CommLayerInner.cpp new file mode 100644 index 00000000..33e09093 --- /dev/null +++ b/lib/CommLayer/CommLayerInner.cpp @@ -0,0 +1,44 @@ +#include "CommLayerInner.h" + +CCommLayerInner* g_pCommLayerInner = NULL; + + +void comm_layer_inner_init(CCommLayerInner *pCommLayerInner) +{ + if (!g_pCommLayerInner) + { + g_pCommLayerInner = pCommLayerInner; + } +} + +void comm_layer_inner_debug(const std::string& pMessage) +{ + if (g_pCommLayerInner) + { + if (g_pCommLayerInner->GetDebugCommLayer()) + { + g_pCommLayerInner->GetDebugCommLayer()->Message(pMessage); + } + } +} +void comm_layer_inner_warning(const std::string& pMessage) +{ + if (g_pCommLayerInner) + { + if (g_pCommLayerInner->GetWarningCommLayer()) + { + g_pCommLayerInner->GetWarningCommLayer()->Message(pMessage); + } + } +} + +void comm_layer_inner_status(const std::string& pMessage) +{ + if (g_pCommLayerInner) + { + if (g_pCommLayerInner->GetStatusCommLayer()) + { + g_pCommLayerInner->GetStatusCommLayer()->Message(pMessage); + } + } +} |