summaryrefslogtreecommitdiff
path: root/!NotAdopted/IMO2sProxy/src/imolib/imo_skype.h
blob: d9e1697ed6c07f48ff8b00aea8bdba3dc0f37b38 (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
36
37
#include "cJSON.h"

struct _tagIMOSKYPE;
typedef struct _tagIMOSKYPE IMOSKYPE;
// 0 	- 	Message received, you may delete the cJSON object now
// 1	-	Don't delete cJSON object, callback will take care of freeing
typedef int(*IMOSTATCB)(cJSON *pMsg, void *pUser);

IMOSKYPE *ImoSkype_Init(IMOSTATCB StatusCb, void *pUser);
void ImoSkype_Exit(IMOSKYPE *hSkype);
void ImoSkype_CancelPolling(IMOSKYPE *hSkype);
char *ImoSkype_GetLastError(IMOSKYPE *hSkype);
char *ImoSkype_GetUserHandle(IMOSKYPE *hSkype);

int ImoSkype_Login(IMOSKYPE *hSkype, char *pszUser, char *pszPass);
int ImoSkype_Logout(IMOSKYPE *hSkype);
int ImoSkype_Poll(IMOSKYPE *hSkype);
int ImoSkype_Typing(IMOSKYPE *hSkype, char *pszBuddy, char *pszStatus);
int ImoSkype_SetStatus(IMOSKYPE *hSkype, char *pszStatus, char *pszStatusMsg);
int ImoSkype_SendMessage(IMOSKYPE *hSkype, char *pszBuddy, char *pszMessage, int *prequest_id);
int ImoSkype_AddBuddy(IMOSKYPE *hSkype, char *pszBuddy);
int ImoSkype_DelBuddy(IMOSKYPE *hSkype, char *pszBuddy, char *pszGroup);
int ImoSkype_BlockBuddy(IMOSKYPE *hSkype, char *pszBuddy);
int ImoSkype_UnblockBuddy(IMOSKYPE *hSkype, char *pszBuddy);
int ImoSkype_ChangeAlias(IMOSKYPE *hSkype, char *pszBuddy, char *pszNewAlias);
int ImoSkype_StartVoiceCall(IMOSKYPE *hSkype, char *pszBuddy);
int ImoSkype_KeepAlive(IMOSKYPE *hSkype);
int ImoSkype_Ping(IMOSKYPE *hSkype);
char *ImoSkype_GetAvatar(IMOSKYPE *hSkype, char *pszID, unsigned int *pdwLength);
int ImoSkype_GetUnreadMsgs(IMOSKYPE *hSkype);
int ImoSkype_GetAlpha(IMOSKYPE *hSkype);

int ImoSkype_CreateSharedGroup(IMOSKYPE *hSkype, char *pszName);
int ImoSkype_GroupInvite(IMOSKYPE *hSkype, char *pszGroup, char *pszUser);
int ImoSkype_GroupKick(IMOSKYPE *hSkype, char *pszGroup, char *pszUser);
int ImoSkype_GroupTopic(IMOSKYPE *hSkype, char *pszGroup, char *pszTopic);
int ImoSkype_GroupLeave(IMOSKYPE *hSkype, char *pszGroup);