diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-09-27 05:44:38 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-09-27 05:44:38 +0000 |
commit | 4db6c5178cbd85e29e714a63ee5b1e8fc9881bae (patch) | |
tree | 7dfa309c4f1d2e3a0a4d251e3f9d4529403f1176 /protocols/Skype/src/skype_utils.cpp | |
parent | e2e27aabce83dc5ebf60a8456b7560ca104d6223 (diff) |
- added skype sublassing
- CSkupeProto funcs moved to spec files
- some minor changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@1675 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_utils.cpp')
-rw-r--r-- | protocols/Skype/src/skype_utils.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_utils.cpp b/protocols/Skype/src/skype_utils.cpp new file mode 100644 index 0000000000..be141b3e75 --- /dev/null +++ b/protocols/Skype/src/skype_utils.cpp @@ -0,0 +1,21 @@ +#include "skype_proto.h" +
+void CSkypeProto::Log(const char* fmt, ...)
+{
+ va_list va;
+ char msg[1024];
+
+ va_start(va, fmt);
+ mir_vsnprintf(msg, sizeof(msg), fmt, va);
+ va_end(va);
+
+ CallService(MS_NETLIB_LOG, ( WPARAM )this->hNetlibUser, (LPARAM)msg);
+}
+
+void CSkypeProto::CreateProtoService(const char* szService, SkypeServiceFunc serviceProc)
+{
+ char temp[MAX_PATH*2];
+
+ mir_snprintf(temp, sizeof(temp), "%s%s", this->m_szModuleName, szService);
+ CreateServiceFunctionObj(temp, (MIRANDASERVICEOBJ)*(void**)&serviceProc, this);
+}
\ No newline at end of file |