diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-23 13:52:57 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-23 13:52:57 +0000 |
commit | 89c5b2369413025e1fe7dfe5c5d0bf3bedd8558d (patch) | |
tree | 18f09394ce3b811e3df7d15de747e842000bd4ad /!NotAdopted/Skype/gchat.h | |
parent | a9580df150d799246eaecbf3c1fb5cecf9f8ab49 (diff) |
git-svn-id: http://svn.miranda-ng.org/main/trunk@1123 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to '!NotAdopted/Skype/gchat.h')
-rw-r--r-- | !NotAdopted/Skype/gchat.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/!NotAdopted/Skype/gchat.h b/!NotAdopted/Skype/gchat.h new file mode 100644 index 0000000000..1bb105d8b5 --- /dev/null +++ b/!NotAdopted/Skype/gchat.h @@ -0,0 +1,47 @@ +// m_chat users these BaseTSD types, so if we are compiling with an old PSDK, these typedefs
+// are not there, so better define them, just in case...
+#ifndef LongToPtr
+#define DWORD_PTR DWORD
+#endif
+
+#pragma warning (push)
+#pragma warning (disable: 4201) // nonstandard extension used : nameless struct/union
+#include "../../include/m_chat.h"
+#pragma warning (pop)
+
+#define MAX_BUF 256 // Buffer for topic-string
+
+typedef struct {
+ HANDLE hContact;
+ TCHAR who[33];
+ TCHAR szRole[12];
+} gchat_contact;
+
+typedef struct {
+ TCHAR* szChatName; // name of chat session
+ gchat_contact* mJoinedContacts; // contacts
+ int mJoinedCount; // contacts count
+} gchat_contacts;
+
+int ChatInit(WPARAM, LPARAM);
+int __cdecl ChatStart(char *szChatId, BOOL bJustCreate);
+gchat_contacts *GetChat(TCHAR *szChatId);
+HANDLE find_chat(TCHAR *chatname);
+#ifdef _UNICODE
+HANDLE find_chatA(char *chatname);
+#else
+#define find_chatA find_chat
+#endif
+void RemChatContact(gchat_contacts*, const TCHAR*);
+gchat_contact *GetChatContact(gchat_contacts *gc, const TCHAR *who);
+int AddMembers(char*);
+void AddMembersThread(char *szSkypeMsg);
+void RemChat(TCHAR *szChatId);
+int GCEventHook (WPARAM, LPARAM);
+int GCMenuHook (WPARAM, LPARAM);
+void KillChatSession(GCDEST*);
+INT_PTR GCOnLeaveChat(WPARAM wParam,LPARAM lParam);
+INT_PTR GCOnJoinChat(WPARAM wParam,LPARAM lParam);
+void GCInit(void);
+void GCExit(void);
+void SetChatTopic (TCHAR *szChatId, TCHAR *szTopic, BOOL bSet);
|