summaryrefslogtreecommitdiffstats
path: root/lib/CommLayer/CommLayerInner.cpp
blob: 71b26aa38e80ba725e51e47e5ff7d2511971e7ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "CommLayerInner.h"

static CObserver *g_pObs = NULL;


void comm_layer_inner_init(CObserver *pObs)
{
    if (!g_pObs)
    {
        g_pObs = pObs;
    }
}

void comm_layer_inner_debug(const std::string& pMessage)
{
    if (g_pObs)
    {
        g_pObs->Debug(pMessage);
    }
}
void comm_layer_inner_warning(const std::string& pMessage)
{
    if (g_pObs)
    {
        g_pObs->Warning(pMessage);
    }
}

void comm_layer_inner_status(const std::string& pMessage)
{
    if (g_pObs)
    {
        g_pObs->Status(pMessage);
    }
}