|
@@ -7,10 +7,10 @@
|
|
|
#include "CounterContext_msg_g.h"
|
|
|
using namespace CounterContext;
|
|
|
|
|
|
-#include "mod_assistantchannel/AssistantChannel_client_g.h"
|
|
|
+#include "AssistantChannel_client_g.h"
|
|
|
using namespace AssistantChannel;
|
|
|
-#include "mod_assistantchannel/chan_protocol.h"
|
|
|
-#include "../include/EventCode.h"
|
|
|
+#include "chan_protocol.h"
|
|
|
+#include "EventCode.h"
|
|
|
|
|
|
|
|
|
class CCounterContextEntity;
|
|
@@ -106,6 +106,9 @@ public:
|
|
|
SpBuffer buf;
|
|
|
buf.OpenRead(buffer, size);
|
|
|
|
|
|
+#if defined(RVC_OS_WIN)
|
|
|
+ evt.Serialize(buf);
|
|
|
+#else
|
|
|
CSimpleString16Bit name16;
|
|
|
buf& name16;
|
|
|
evt.name = CSimpleString16Bit2A(name16);
|
|
@@ -129,11 +132,9 @@ public:
|
|
|
CSimpleString16Bit level16;
|
|
|
buf& level16;
|
|
|
evt.level = CSimpleString16Bit2A(level16);
|
|
|
+#endif //RVC_OS_WIN
|
|
|
|
|
|
- //evt.Serialize(buf);
|
|
|
SpSendBroadcast(GetFunction(), SP_MSG_OF(CounterBasicInfo), SP_MSG_SIG_OF(CounterBasicInfo), evt);
|
|
|
- //Dbg("SpSendBroadcast CounterBasicInfo and callid = %s, name = %s, workNumber = %s, level = %s, skillCode = %s, skillDesc = %s.", evt.callid.GetData(), evt.name.GetData(), evt.workNumber.GetData(), evt.level.GetData(), evt.skillCode.GetData(), evt.skillDesc.GetData());
|
|
|
-
|
|
|
} else {
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("unknown sub_type %d from agent!", sub_type);
|
|
|
}
|