diff options
author | Szymon Tokarz <wsx22@o2.pl> | 2014-03-21 23:45:44 +0000 |
---|---|---|
committer | Szymon Tokarz <wsx22@o2.pl> | 2014-03-21 23:45:44 +0000 |
commit | 1a5937099e9333a426edc5fb6eef2ac626557857 (patch) | |
tree | aabe4beebb6a459338b4a0f2cbf0cd7eb0a795e7 /protocols/Sametime/src/places.cpp | |
parent | 34daf458e330dd8258293db8067ef5bc3f6cb72c (diff) |
Sametime protocol adopted
- Meanwhile Library included into plugin sources
- needs glib dll files inside Miranda root directory
\dll_x32\libglib-2.0-0.dll and \dll_x32\intl.dll for x32
\dll_x64\libglib-2.0-0.dll and \dll_x64\libintl-8.dll for x64
- more info at docs\readme.txt
git-svn-id: http://svn.miranda-ng.org/main/trunk@8676 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Sametime/src/places.cpp')
-rw-r--r-- | protocols/Sametime/src/places.cpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/protocols/Sametime/src/places.cpp b/protocols/Sametime/src/places.cpp new file mode 100644 index 0000000000..c7c0a19adf --- /dev/null +++ b/protocols/Sametime/src/places.cpp @@ -0,0 +1,67 @@ +#include "StdAfx.h"
+#include "sametime.h"
+
+/* Stubs, NOT IMPLEMENTED NOW */
+
+void mwServicePlace_opened(struct mwPlace* place)
+{
+}
+
+void mwServicePlace_closed(struct mwPlace* place, guint32 code)
+{
+}
+
+void mwServicePlace_peerJoined(struct mwPlace* place, const struct mwIdBlock* peer)
+{
+}
+
+
+void mwServicePlace_peerParted(struct mwPlace* place, const struct mwIdBlock* peer)
+{
+}
+
+
+void mwServicePlace_peerSetAttribute(struct mwPlace* place, const struct mwIdBlock* peer, guint32 attr, struct mwOpaque* o)
+{
+}
+
+
+void mwServicePlace_peerUnsetAttribute(struct mwPlace* place, const struct mwIdBlock* peer, guint32 attr)
+{
+}
+
+
+void mwServicePlace_message(struct mwPlace* place, const struct mwIdBlock* who, const char* msg)
+{
+}
+
+
+void mwServicePlace_clear(struct mwServicePlace* srvc)
+{
+}
+
+
+mwPlaceHandler mwPlace_handler = {
+ mwServicePlace_opened,
+ mwServicePlace_closed,
+ mwServicePlace_peerJoined,
+ mwServicePlace_peerParted,
+ mwServicePlace_peerSetAttribute,
+ mwServicePlace_peerUnsetAttribute,
+ mwServicePlace_message,
+ mwServicePlace_clear
+};
+
+void CSametimeProto::InitPlaces(mwSession* session)
+{
+ debugLog(_T("CSametimeProto::InitPlaces()"));
+ mwSession_addService(session, (mwService*)(service_places = mwServicePlace_new(session, &mwPlace_handler)));
+}
+
+void CSametimeProto::DeinitPlaces(mwSession* session)
+{
+ debugLog(_T("CSametimeProto::DeinitPlaces()"));
+ mwSession_removeService(session, mwService_PLACE);
+ mwService_free((mwService*)service_places);
+ service_places = 0;
+}
|