diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-25 16:20:45 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-25 16:20:45 +0000 |
commit | c0cb5774e9ceb7fdb40b2387217f8b5be70eb315 (patch) | |
tree | c82c5a64d631b0319a5ba933ccb76d9425e77cec /protocols/Telegram/src/stdafx.h | |
parent | 8e759e2624850a183d6e79a0b3a94a64e7895936 (diff) |
Telegram: winapi timers
git-svn-id: http://svn.miranda-ng.org/main/trunk@16543 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Telegram/src/stdafx.h')
-rw-r--r-- | protocols/Telegram/src/stdafx.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/protocols/Telegram/src/stdafx.h b/protocols/Telegram/src/stdafx.h index bf44f897c1..2781bcf4f9 100644 --- a/protocols/Telegram/src/stdafx.h +++ b/protocols/Telegram/src/stdafx.h @@ -44,8 +44,26 @@ extern "C" #include "tgl\tgl-net.h"
#include "tgl\tgl-timers.h"
#include "tgl\tgl-binlog.h"
+ #include "tgl\config.h"
+
+ struct event;
+ struct event_base;
+ event_base __declspec(dllimport) *event_base_new(void);
+ void *event_get_callback_arg(const void *ev);
+ struct event *event_new(void *, intptr_t, short, void(*)(intptr_t, short, void *), void *);
+ int event_del(void *);
+ int event_add(void *ev, const struct timeval *timeout);
+#define evtimer_new(b, cb, arg) event_new((b), -1, 0, (cb), (arg))
+ void event_free(void *);
+
+
+ void read_auth_file(struct tgl_state *TLS);
+ void read_state_file(struct tgl_state *TLS);
+ void write_auth_file(struct tgl_state *TLS);
+ void write_state_file(struct tgl_state *TLS);
}
+
struct MirTLS : public tgl_state, public MZeroedObject
{
struct CTelegramProto *m_proto;
|