summaryrefslogtreecommitdiff
path: root/imo2sproxy/src/imo2skype/callqueue.h
diff options
context:
space:
mode:
authorwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-11-17 18:46:23 +0000
committerwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-11-17 18:46:23 +0000
commitb880db8491271b4bd4aa87c2dd79b5e3c3dde6cf (patch)
treeb4e7c071826a2c1cc45bd0b253a76764e5194c4e /imo2sproxy/src/imo2skype/callqueue.h
parent2f10a9e6cc4782d61f0f15bbff36209af922bd34 (diff)
added: ieview, imo2sproxy, skype
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@175 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'imo2sproxy/src/imo2skype/callqueue.h')
-rw-r--r--imo2sproxy/src/imo2skype/callqueue.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/imo2sproxy/src/imo2skype/callqueue.h b/imo2sproxy/src/imo2skype/callqueue.h
new file mode 100644
index 0000000..0c4fcfd
--- /dev/null
+++ b/imo2sproxy/src/imo2skype/callqueue.h
@@ -0,0 +1,32 @@
+#include "cJSON.h"
+#include "queue.h"
+#include <time.h>
+
+#define CALL_INCOMING 0
+#define CALL_OUTGOING 1
+
+typedef struct
+{
+ QUEUEHDR hdr;
+ char *pszUser;
+ char szStatus[16];
+
+ char szSendStream[18];
+ char szRecvStream[18];
+
+ char szConv[18];
+ char szIP[16];
+ int iRole;
+
+ char szCallFile[256];
+ void *hCallWnd;
+ int iDirection;
+ time_t timestamp;
+} CALLENTRY;
+
+TYP_LIST *CallQueue_Init(void);
+void CallQueue_Exit(TYP_LIST *hList);
+
+CALLENTRY *CallQueue_Insert(TYP_LIST *hList, cJSON *pNick, int iDirection);
+BOOL CallQueue_Remove(TYP_LIST *hList, unsigned int uCallNr);
+CALLENTRY *CallQueue_Find(TYP_LIST *hList, unsigned int uCallNr);