Use new version of libtgl

This commit is contained in:
vvaltman 2014-11-17 23:21:25 +03:00
parent cbf952493c
commit 7f83a1246e
3 changed files with 5 additions and 1 deletions

1
loop.c
View File

@ -723,6 +723,7 @@ int loop (void) {
tgl_set_timer_methods (TLS, &tgl_libevent_timers); tgl_set_timer_methods (TLS, &tgl_libevent_timers);
assert (TLS->timer_methods); assert (TLS->timer_methods);
tgl_set_download_directory (TLS, get_downloads_directory ()); tgl_set_download_directory (TLS, get_downloads_directory ());
tgl_register_app_id (TLS, TELEGRAM_CLI_APP_ID, TELEGRAM_CLI_APP_HASH);
tgl_init (TLS); tgl_init (TLS);
if (binlog_enabled) { if (binlog_enabled) {

3
loop.h
View File

@ -18,6 +18,9 @@
*/ */
#ifndef __LOOP_H__ #ifndef __LOOP_H__
#define __LOOP_H__ #define __LOOP_H__
#define TELEGRAM_CLI_APP_HASH "36722c72256a24c1225de00eb6a1ca74"
#define TELEGRAM_CLI_APP_ID 2899
int loop (void); int loop (void);
void do_halt (int error); void do_halt (int error);
void net_loop (int flags, int (*end)(void)); void net_loop (int flags, int (*end)(void));

2
tgl

@ -1 +1 @@
Subproject commit 343cf63ead5872975c4e24ac936dc2b255dcf7fc Subproject commit a2403df85b430311feb6a8c214428802800b1633