summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/libevent/docs/.gitignore (renamed from protocols/Telegram/libevent/.gitignore)0
-rw-r--r--libs/libevent/docs/.travis.yml (renamed from protocols/Telegram/libevent/.travis.yml)0
-rw-r--r--libs/libevent/docs/CMakeLists.txt (renamed from protocols/Telegram/libevent/CMakeLists.txt)0
-rw-r--r--libs/libevent/docs/ChangeLog (renamed from protocols/Telegram/libevent/ChangeLog)0
-rw-r--r--libs/libevent/docs/ChangeLog-1.4 (renamed from protocols/Telegram/libevent/ChangeLog-1.4)0
-rw-r--r--libs/libevent/docs/ChangeLog-2.0 (renamed from protocols/Telegram/libevent/ChangeLog-2.0)0
-rw-r--r--libs/libevent/docs/Doxyfile (renamed from protocols/Telegram/libevent/Doxyfile)0
-rw-r--r--libs/libevent/docs/LICENSE (renamed from protocols/Telegram/libevent/LICENSE)0
-rw-r--r--libs/libevent/docs/Makefile.am (renamed from protocols/Telegram/libevent/Makefile.am)0
-rw-r--r--libs/libevent/docs/Makefile.nmake (renamed from protocols/Telegram/libevent/Makefile.nmake)0
-rw-r--r--libs/libevent/docs/README.md (renamed from protocols/Telegram/libevent/README.md)0
-rw-r--r--libs/libevent/docs/appveyor.yml (renamed from protocols/Telegram/libevent/appveyor.yml)0
-rw-r--r--libs/libevent/docs/autogen.sh (renamed from protocols/Telegram/libevent/autogen.sh)0
-rw-r--r--libs/libevent/docs/cmake/AddCompilerFlags.cmake (renamed from protocols/Telegram/libevent/cmake/AddCompilerFlags.cmake)0
-rw-r--r--libs/libevent/docs/cmake/COPYING-CMAKE-SCRIPTS (renamed from protocols/Telegram/libevent/cmake/COPYING-CMAKE-SCRIPTS)0
-rw-r--r--libs/libevent/docs/cmake/CheckFileOffsetBits.c (renamed from protocols/Telegram/libevent/cmake/CheckFileOffsetBits.c)0
-rw-r--r--libs/libevent/docs/cmake/CheckFileOffsetBits.cmake (renamed from protocols/Telegram/libevent/cmake/CheckFileOffsetBits.cmake)0
-rw-r--r--libs/libevent/docs/cmake/CheckFunctionExistsEx.c (renamed from protocols/Telegram/libevent/cmake/CheckFunctionExistsEx.c)0
-rw-r--r--libs/libevent/docs/cmake/CheckFunctionExistsEx.cmake (renamed from protocols/Telegram/libevent/cmake/CheckFunctionExistsEx.cmake)0
-rw-r--r--libs/libevent/docs/cmake/CheckFunctionKeywords.cmake (renamed from protocols/Telegram/libevent/cmake/CheckFunctionKeywords.cmake)0
-rw-r--r--libs/libevent/docs/cmake/CheckPrototypeDefinition.c.in (renamed from protocols/Telegram/libevent/cmake/CheckPrototypeDefinition.c.in)0
-rw-r--r--libs/libevent/docs/cmake/CheckPrototypeDefinition.cmake (renamed from protocols/Telegram/libevent/cmake/CheckPrototypeDefinition.cmake)0
-rw-r--r--libs/libevent/docs/cmake/CheckWorkingKqueue.cmake (renamed from protocols/Telegram/libevent/cmake/CheckWorkingKqueue.cmake)0
-rw-r--r--libs/libevent/docs/cmake/CodeCoverage.cmake (renamed from protocols/Telegram/libevent/cmake/CodeCoverage.cmake)0
-rw-r--r--libs/libevent/docs/cmake/Copyright.txt (renamed from protocols/Telegram/libevent/cmake/Copyright.txt)0
-rw-r--r--libs/libevent/docs/cmake/FindGit.cmake (renamed from protocols/Telegram/libevent/cmake/FindGit.cmake)0
-rw-r--r--libs/libevent/docs/cmake/LibeventConfig.cmake.in (renamed from protocols/Telegram/libevent/cmake/LibeventConfig.cmake.in)0
-rw-r--r--libs/libevent/docs/cmake/LibeventConfigBuildTree.cmake.in (renamed from protocols/Telegram/libevent/cmake/LibeventConfigBuildTree.cmake.in)0
-rw-r--r--libs/libevent/docs/cmake/LibeventConfigVersion.cmake.in (renamed from protocols/Telegram/libevent/cmake/LibeventConfigVersion.cmake.in)0
-rw-r--r--libs/libevent/docs/cmake/VersionViaGit.cmake (renamed from protocols/Telegram/libevent/cmake/VersionViaGit.cmake)0
-rw-r--r--libs/libevent/docs/configure.ac (renamed from protocols/Telegram/libevent/configure.ac)0
-rw-r--r--libs/libevent/docs/devpoll.c (renamed from protocols/Telegram/libevent/devpoll.c)0
-rw-r--r--libs/libevent/docs/epoll.c (renamed from protocols/Telegram/libevent/epoll.c)0
-rw-r--r--libs/libevent/docs/epoll_sub.c (renamed from protocols/Telegram/libevent/epoll_sub.c)0
-rw-r--r--libs/libevent/docs/evconfig-private.h.cmake (renamed from protocols/Telegram/libevent/evconfig-private.h.cmake)0
-rw-r--r--libs/libevent/docs/evconfig-private.h.in (renamed from protocols/Telegram/libevent/evconfig-private.h.in)0
-rw-r--r--libs/libevent/docs/evdns.3 (renamed from protocols/Telegram/libevent/evdns.3)0
-rw-r--r--libs/libevent/docs/event-config.h.cmake (renamed from protocols/Telegram/libevent/event-config.h.cmake)0
-rw-r--r--libs/libevent/docs/event.3 (renamed from protocols/Telegram/libevent/event.3)0
-rw-r--r--libs/libevent/docs/event_rpcgen.py (renamed from protocols/Telegram/libevent/event_rpcgen.py)0
-rw-r--r--libs/libevent/docs/evport.c (renamed from protocols/Telegram/libevent/evport.c)0
-rw-r--r--libs/libevent/docs/evthread_pthread.c (renamed from protocols/Telegram/libevent/evthread_pthread.c)0
-rw-r--r--libs/libevent/docs/kqueue-internal.h (renamed from protocols/Telegram/libevent/kqueue-internal.h)0
-rw-r--r--libs/libevent/docs/kqueue.c (renamed from protocols/Telegram/libevent/kqueue.c)0
-rw-r--r--libs/libevent/docs/libevent.pc.in (renamed from protocols/Telegram/libevent/libevent.pc.in)0
-rw-r--r--libs/libevent/docs/libevent_openssl.pc.in (renamed from protocols/Telegram/libevent/libevent_openssl.pc.in)0
-rw-r--r--libs/libevent/docs/libevent_pthreads.pc.in (renamed from protocols/Telegram/libevent/libevent_pthreads.pc.in)0
-rw-r--r--libs/libevent/docs/m4/ac_backport_259_ssizet.m4 (renamed from protocols/Telegram/libevent/m4/ac_backport_259_ssizet.m4)0
-rw-r--r--libs/libevent/docs/m4/acx_pthread.m4 (renamed from protocols/Telegram/libevent/m4/acx_pthread.m4)0
-rw-r--r--libs/libevent/docs/m4/libevent_openssl.m4 (renamed from protocols/Telegram/libevent/m4/libevent_openssl.m4)0
-rw-r--r--libs/libevent/docs/m4/ntp_pkg_config.m4 (renamed from protocols/Telegram/libevent/m4/ntp_pkg_config.m4)0
-rw-r--r--libs/libevent/docs/make-event-config.sed (renamed from protocols/Telegram/libevent/make-event-config.sed)0
-rw-r--r--libs/libevent/docs/make_epoll_table.py (renamed from protocols/Telegram/libevent/make_epoll_table.py)0
-rw-r--r--libs/libevent/docs/poll.c (renamed from protocols/Telegram/libevent/poll.c)0
-rw-r--r--libs/libevent/docs/sample/dns-example.c (renamed from protocols/Telegram/libevent/sample/dns-example.c)0
-rw-r--r--libs/libevent/docs/sample/event-read-fifo.c (renamed from protocols/Telegram/libevent/sample/event-read-fifo.c)0
-rw-r--r--libs/libevent/docs/sample/hello-world.c (renamed from protocols/Telegram/libevent/sample/hello-world.c)0
-rw-r--r--libs/libevent/docs/sample/hostcheck.c (renamed from protocols/Telegram/libevent/sample/hostcheck.c)0
-rw-r--r--libs/libevent/docs/sample/hostcheck.h (renamed from protocols/Telegram/libevent/sample/hostcheck.h)0
-rw-r--r--libs/libevent/docs/sample/http-connect.c (renamed from protocols/Telegram/libevent/sample/http-connect.c)0
-rw-r--r--libs/libevent/docs/sample/http-server.c (renamed from protocols/Telegram/libevent/sample/http-server.c)0
-rw-r--r--libs/libevent/docs/sample/https-client.c (renamed from protocols/Telegram/libevent/sample/https-client.c)0
-rw-r--r--libs/libevent/docs/sample/include.am (renamed from protocols/Telegram/libevent/sample/include.am)0
-rw-r--r--libs/libevent/docs/sample/le-proxy.c (renamed from protocols/Telegram/libevent/sample/le-proxy.c)0
-rw-r--r--libs/libevent/docs/sample/openssl_hostname_validation.c (renamed from protocols/Telegram/libevent/sample/openssl_hostname_validation.c)0
-rw-r--r--libs/libevent/docs/sample/openssl_hostname_validation.h (renamed from protocols/Telegram/libevent/sample/openssl_hostname_validation.h)0
-rw-r--r--libs/libevent/docs/sample/signal-test.c (renamed from protocols/Telegram/libevent/sample/signal-test.c)0
-rw-r--r--libs/libevent/docs/sample/time-test.c (renamed from protocols/Telegram/libevent/sample/time-test.c)0
-rw-r--r--libs/libevent/docs/select.c (renamed from protocols/Telegram/libevent/select.c)0
-rw-r--r--libs/libevent/docs/test/Makefile.nmake (renamed from protocols/Telegram/libevent/test/Makefile.nmake)0
-rw-r--r--libs/libevent/docs/test/bench.c (renamed from protocols/Telegram/libevent/test/bench.c)0
-rw-r--r--libs/libevent/docs/test/bench_cascade.c (renamed from protocols/Telegram/libevent/test/bench_cascade.c)0
-rw-r--r--libs/libevent/docs/test/bench_http.c (renamed from protocols/Telegram/libevent/test/bench_http.c)0
-rw-r--r--libs/libevent/docs/test/bench_httpclient.c (renamed from protocols/Telegram/libevent/test/bench_httpclient.c)0
-rw-r--r--libs/libevent/docs/test/check-dumpevents.py (renamed from protocols/Telegram/libevent/test/check-dumpevents.py)0
-rw-r--r--libs/libevent/docs/test/include.am (renamed from protocols/Telegram/libevent/test/include.am)0
-rw-r--r--libs/libevent/docs/test/print-winsock-errors.c (renamed from protocols/Telegram/libevent/test/print-winsock-errors.c)0
-rw-r--r--libs/libevent/docs/test/regress.c (renamed from protocols/Telegram/libevent/test/regress.c)0
-rw-r--r--libs/libevent/docs/test/regress.h (renamed from protocols/Telegram/libevent/test/regress.h)0
-rw-r--r--libs/libevent/docs/test/regress.rpc (renamed from protocols/Telegram/libevent/test/regress.rpc)0
-rw-r--r--libs/libevent/docs/test/regress_buffer.c (renamed from protocols/Telegram/libevent/test/regress_buffer.c)0
-rw-r--r--libs/libevent/docs/test/regress_bufferevent.c (renamed from protocols/Telegram/libevent/test/regress_bufferevent.c)0
-rw-r--r--libs/libevent/docs/test/regress_dns.c (renamed from protocols/Telegram/libevent/test/regress_dns.c)0
-rw-r--r--libs/libevent/docs/test/regress_et.c (renamed from protocols/Telegram/libevent/test/regress_et.c)0
-rw-r--r--libs/libevent/docs/test/regress_finalize.c (renamed from protocols/Telegram/libevent/test/regress_finalize.c)0
-rw-r--r--libs/libevent/docs/test/regress_http.c (renamed from protocols/Telegram/libevent/test/regress_http.c)0
-rw-r--r--libs/libevent/docs/test/regress_iocp.c (renamed from protocols/Telegram/libevent/test/regress_iocp.c)0
-rw-r--r--libs/libevent/docs/test/regress_listener.c (renamed from protocols/Telegram/libevent/test/regress_listener.c)0
-rw-r--r--libs/libevent/docs/test/regress_main.c (renamed from protocols/Telegram/libevent/test/regress_main.c)0
-rw-r--r--libs/libevent/docs/test/regress_minheap.c (renamed from protocols/Telegram/libevent/test/regress_minheap.c)0
-rw-r--r--libs/libevent/docs/test/regress_rpc.c (renamed from protocols/Telegram/libevent/test/regress_rpc.c)0
-rw-r--r--libs/libevent/docs/test/regress_ssl.c (renamed from protocols/Telegram/libevent/test/regress_ssl.c)0
-rw-r--r--libs/libevent/docs/test/regress_testutils.c (renamed from protocols/Telegram/libevent/test/regress_testutils.c)0
-rw-r--r--libs/libevent/docs/test/regress_testutils.h (renamed from protocols/Telegram/libevent/test/regress_testutils.h)0
-rw-r--r--libs/libevent/docs/test/regress_thread.c (renamed from protocols/Telegram/libevent/test/regress_thread.c)0
-rw-r--r--libs/libevent/docs/test/regress_thread.h (renamed from protocols/Telegram/libevent/test/regress_thread.h)0
-rw-r--r--libs/libevent/docs/test/regress_util.c (renamed from protocols/Telegram/libevent/test/regress_util.c)0
-rw-r--r--libs/libevent/docs/test/regress_zlib.c (renamed from protocols/Telegram/libevent/test/regress_zlib.c)0
-rw-r--r--libs/libevent/docs/test/rpcgen_wrapper.sh (renamed from protocols/Telegram/libevent/test/rpcgen_wrapper.sh)0
-rw-r--r--libs/libevent/docs/test/test-changelist.c (renamed from protocols/Telegram/libevent/test/test-changelist.c)0
-rw-r--r--libs/libevent/docs/test/test-closed.c (renamed from protocols/Telegram/libevent/test/test-closed.c)0
-rw-r--r--libs/libevent/docs/test/test-dumpevents.c (renamed from protocols/Telegram/libevent/test/test-dumpevents.c)0
-rw-r--r--libs/libevent/docs/test/test-eof.c (renamed from protocols/Telegram/libevent/test/test-eof.c)0
-rw-r--r--libs/libevent/docs/test/test-fdleak.c (renamed from protocols/Telegram/libevent/test/test-fdleak.c)0
-rw-r--r--libs/libevent/docs/test/test-init.c (renamed from protocols/Telegram/libevent/test/test-init.c)0
-rw-r--r--libs/libevent/docs/test/test-ratelim.c (renamed from protocols/Telegram/libevent/test/test-ratelim.c)0
-rw-r--r--libs/libevent/docs/test/test-ratelim.sh (renamed from protocols/Telegram/libevent/test/test-ratelim.sh)0
-rw-r--r--libs/libevent/docs/test/test-time.c (renamed from protocols/Telegram/libevent/test/test-time.c)0
-rw-r--r--libs/libevent/docs/test/test-weof.c (renamed from protocols/Telegram/libevent/test/test-weof.c)0
-rw-r--r--libs/libevent/docs/test/test.sh (renamed from protocols/Telegram/libevent/test/test.sh)0
-rw-r--r--libs/libevent/docs/test/tinytest.c (renamed from protocols/Telegram/libevent/test/tinytest.c)0
-rw-r--r--libs/libevent/docs/test/tinytest.h (renamed from protocols/Telegram/libevent/test/tinytest.h)0
-rw-r--r--libs/libevent/docs/test/tinytest_demo.c (renamed from protocols/Telegram/libevent/test/tinytest_demo.c)0
-rw-r--r--libs/libevent/docs/test/tinytest_local.h (renamed from protocols/Telegram/libevent/test/tinytest_local.h)0
-rw-r--r--libs/libevent/docs/test/tinytest_macros.h (renamed from protocols/Telegram/libevent/test/tinytest_macros.h)0
-rw-r--r--libs/libevent/docs/whatsnew-2.0.txt (renamed from protocols/Telegram/libevent/whatsnew-2.0.txt)0
-rw-r--r--libs/libevent/docs/whatsnew-2.1.txt (renamed from protocols/Telegram/libevent/whatsnew-2.1.txt)0
-rw-r--r--libs/libevent/include/evconfig-private.h35
-rw-r--r--libs/libevent/include/evdns.h (renamed from protocols/Telegram/libevent/include/evdns.h)0
-rw-r--r--libs/libevent/include/event.h (renamed from protocols/Telegram/libevent/include/event.h)0
-rw-r--r--libs/libevent/include/event2/buffer.h (renamed from protocols/Telegram/libevent/include/event2/buffer.h)0
-rw-r--r--libs/libevent/include/event2/buffer_compat.h (renamed from protocols/Telegram/libevent/include/event2/buffer_compat.h)0
-rw-r--r--libs/libevent/include/event2/bufferevent.h (renamed from protocols/Telegram/libevent/include/event2/bufferevent.h)0
-rw-r--r--libs/libevent/include/event2/bufferevent_compat.h (renamed from protocols/Telegram/libevent/include/event2/bufferevent_compat.h)0
-rw-r--r--libs/libevent/include/event2/bufferevent_ssl.h (renamed from protocols/Telegram/libevent/include/event2/bufferevent_ssl.h)0
-rw-r--r--libs/libevent/include/event2/bufferevent_struct.h (renamed from protocols/Telegram/libevent/include/event2/bufferevent_struct.h)0
-rw-r--r--libs/libevent/include/event2/dns.h (renamed from protocols/Telegram/libevent/include/event2/dns.h)0
-rw-r--r--libs/libevent/include/event2/dns_compat.h (renamed from protocols/Telegram/libevent/include/event2/dns_compat.h)0
-rw-r--r--libs/libevent/include/event2/dns_struct.h (renamed from protocols/Telegram/libevent/include/event2/dns_struct.h)0
-rw-r--r--libs/libevent/include/event2/event-config.h534
-rw-r--r--libs/libevent/include/event2/event.h (renamed from protocols/Telegram/libevent/include/event2/event.h)0
-rw-r--r--libs/libevent/include/event2/event_compat.h (renamed from protocols/Telegram/libevent/include/event2/event_compat.h)0
-rw-r--r--libs/libevent/include/event2/event_struct.h (renamed from protocols/Telegram/libevent/include/event2/event_struct.h)0
-rw-r--r--libs/libevent/include/event2/http.h (renamed from protocols/Telegram/libevent/include/event2/http.h)0
-rw-r--r--libs/libevent/include/event2/http_compat.h (renamed from protocols/Telegram/libevent/include/event2/http_compat.h)0
-rw-r--r--libs/libevent/include/event2/http_struct.h (renamed from protocols/Telegram/libevent/include/event2/http_struct.h)0
-rw-r--r--libs/libevent/include/event2/keyvalq_struct.h (renamed from protocols/Telegram/libevent/include/event2/keyvalq_struct.h)0
-rw-r--r--libs/libevent/include/event2/listener.h (renamed from protocols/Telegram/libevent/include/event2/listener.h)0
-rw-r--r--libs/libevent/include/event2/rpc.h (renamed from protocols/Telegram/libevent/include/event2/rpc.h)0
-rw-r--r--libs/libevent/include/event2/rpc_compat.h (renamed from protocols/Telegram/libevent/include/event2/rpc_compat.h)0
-rw-r--r--libs/libevent/include/event2/rpc_struct.h (renamed from protocols/Telegram/libevent/include/event2/rpc_struct.h)0
-rw-r--r--libs/libevent/include/event2/tag.h (renamed from protocols/Telegram/libevent/include/event2/tag.h)0
-rw-r--r--libs/libevent/include/event2/tag_compat.h (renamed from protocols/Telegram/libevent/include/event2/tag_compat.h)0
-rw-r--r--libs/libevent/include/event2/thread.h (renamed from protocols/Telegram/libevent/include/event2/thread.h)0
-rw-r--r--libs/libevent/include/event2/util.h (renamed from protocols/Telegram/libevent/include/event2/util.h)0
-rw-r--r--libs/libevent/include/event2/visibility.h (renamed from protocols/Telegram/libevent/include/event2/visibility.h)0
-rw-r--r--libs/libevent/include/evhttp.h (renamed from protocols/Telegram/libevent/include/evhttp.h)0
-rw-r--r--libs/libevent/include/evrpc.h (renamed from protocols/Telegram/libevent/include/evrpc.h)0
-rw-r--r--libs/libevent/include/evutil.h (renamed from protocols/Telegram/libevent/include/evutil.h)0
-rw-r--r--libs/libevent/include/include.am (renamed from protocols/Telegram/libevent/include/include.am)0
-rw-r--r--libs/libevent/libevent_12.vcxproj212
-rw-r--r--libs/libevent/libevent_12.vcxproj.filters264
-rw-r--r--libs/libevent/src/WIN32-Code/getopt.c (renamed from protocols/Telegram/libevent/WIN32-Code/getopt.c)0
-rw-r--r--libs/libevent/src/WIN32-Code/getopt.h (renamed from protocols/Telegram/libevent/WIN32-Code/getopt.h)0
-rw-r--r--libs/libevent/src/WIN32-Code/getopt_long.c (renamed from protocols/Telegram/libevent/WIN32-Code/getopt_long.c)0
-rw-r--r--libs/libevent/src/WIN32-Code/nmake/evconfig-private.h (renamed from protocols/Telegram/libevent/WIN32-Code/nmake/evconfig-private.h)0
-rw-r--r--libs/libevent/src/WIN32-Code/nmake/event2/event-config.h (renamed from protocols/Telegram/libevent/WIN32-Code/nmake/event2/event-config.h)0
-rw-r--r--libs/libevent/src/WIN32-Code/tree.h (renamed from protocols/Telegram/libevent/WIN32-Code/tree.h)0
-rw-r--r--libs/libevent/src/arc4random.c (renamed from protocols/Telegram/libevent/arc4random.c)0
-rw-r--r--libs/libevent/src/buffer.c (renamed from protocols/Telegram/libevent/buffer.c)0
-rw-r--r--libs/libevent/src/buffer_iocp.c (renamed from protocols/Telegram/libevent/buffer_iocp.c)0
-rw-r--r--libs/libevent/src/bufferevent-internal.h (renamed from protocols/Telegram/libevent/bufferevent-internal.h)0
-rw-r--r--libs/libevent/src/bufferevent.c (renamed from protocols/Telegram/libevent/bufferevent.c)0
-rw-r--r--libs/libevent/src/bufferevent_async.c (renamed from protocols/Telegram/libevent/bufferevent_async.c)0
-rw-r--r--libs/libevent/src/bufferevent_filter.c (renamed from protocols/Telegram/libevent/bufferevent_filter.c)0
-rw-r--r--libs/libevent/src/bufferevent_openssl.c (renamed from protocols/Telegram/libevent/bufferevent_openssl.c)0
-rw-r--r--libs/libevent/src/bufferevent_pair.c (renamed from protocols/Telegram/libevent/bufferevent_pair.c)0
-rw-r--r--libs/libevent/src/bufferevent_ratelim.c (renamed from protocols/Telegram/libevent/bufferevent_ratelim.c)0
-rw-r--r--libs/libevent/src/bufferevent_sock.c (renamed from protocols/Telegram/libevent/bufferevent_sock.c)0
-rw-r--r--libs/libevent/src/changelist-internal.h (renamed from protocols/Telegram/libevent/changelist-internal.h)0
-rw-r--r--libs/libevent/src/compat/sys/queue.h (renamed from protocols/Telegram/libevent/compat/sys/queue.h)0
-rw-r--r--libs/libevent/src/defer-internal.h (renamed from protocols/Telegram/libevent/defer-internal.h)0
-rw-r--r--libs/libevent/src/epolltable-internal.h (renamed from protocols/Telegram/libevent/epolltable-internal.h)0
-rw-r--r--libs/libevent/src/evbuffer-internal.h (renamed from protocols/Telegram/libevent/evbuffer-internal.h)0
-rw-r--r--libs/libevent/src/evdns.c (renamed from protocols/Telegram/libevent/evdns.c)0
-rw-r--r--libs/libevent/src/event-internal.h (renamed from protocols/Telegram/libevent/event-internal.h)0
-rw-r--r--libs/libevent/src/event.c (renamed from protocols/Telegram/libevent/event.c)0
-rw-r--r--libs/libevent/src/event_iocp.c (renamed from protocols/Telegram/libevent/event_iocp.c)0
-rw-r--r--libs/libevent/src/event_tagging.c (renamed from protocols/Telegram/libevent/event_tagging.c)0
-rw-r--r--libs/libevent/src/evmap-internal.h (renamed from protocols/Telegram/libevent/evmap-internal.h)0
-rw-r--r--libs/libevent/src/evmap.c (renamed from protocols/Telegram/libevent/evmap.c)0
-rw-r--r--libs/libevent/src/evrpc-internal.h (renamed from protocols/Telegram/libevent/evrpc-internal.h)0
-rw-r--r--libs/libevent/src/evrpc.c (renamed from protocols/Telegram/libevent/evrpc.c)0
-rw-r--r--libs/libevent/src/evsignal-internal.h (renamed from protocols/Telegram/libevent/evsignal-internal.h)0
-rw-r--r--libs/libevent/src/evthread-internal.h (renamed from protocols/Telegram/libevent/evthread-internal.h)0
-rw-r--r--libs/libevent/src/evthread.c (renamed from protocols/Telegram/libevent/evthread.c)0
-rw-r--r--libs/libevent/src/evthread_win32.c (renamed from protocols/Telegram/libevent/evthread_win32.c)0
-rw-r--r--libs/libevent/src/evutil.c (renamed from protocols/Telegram/libevent/evutil.c)0
-rw-r--r--libs/libevent/src/evutil_rand.c (renamed from protocols/Telegram/libevent/evutil_rand.c)0
-rw-r--r--libs/libevent/src/evutil_time.c (renamed from protocols/Telegram/libevent/evutil_time.c)0
-rw-r--r--libs/libevent/src/ht-internal.h (renamed from protocols/Telegram/libevent/ht-internal.h)0
-rw-r--r--libs/libevent/src/http-internal.h (renamed from protocols/Telegram/libevent/http-internal.h)0
-rw-r--r--libs/libevent/src/http.c (renamed from protocols/Telegram/libevent/http.c)0
-rw-r--r--libs/libevent/src/iocp-internal.h (renamed from protocols/Telegram/libevent/iocp-internal.h)0
-rw-r--r--libs/libevent/src/ipv6-internal.h (renamed from protocols/Telegram/libevent/ipv6-internal.h)0
-rw-r--r--libs/libevent/src/listener.c (renamed from protocols/Telegram/libevent/listener.c)0
-rw-r--r--libs/libevent/src/log-internal.h (renamed from protocols/Telegram/libevent/log-internal.h)0
-rw-r--r--libs/libevent/src/log.c (renamed from protocols/Telegram/libevent/log.c)0
-rw-r--r--libs/libevent/src/minheap-internal.h (renamed from protocols/Telegram/libevent/minheap-internal.h)0
-rw-r--r--libs/libevent/src/mm-internal.h (renamed from protocols/Telegram/libevent/mm-internal.h)0
-rw-r--r--libs/libevent/src/ratelim-internal.h (renamed from protocols/Telegram/libevent/ratelim-internal.h)0
-rw-r--r--libs/libevent/src/signal.c (renamed from protocols/Telegram/libevent/signal.c)0
-rw-r--r--libs/libevent/src/strlcpy-internal.h (renamed from protocols/Telegram/libevent/strlcpy-internal.h)0
-rw-r--r--libs/libevent/src/strlcpy.c (renamed from protocols/Telegram/libevent/strlcpy.c)0
-rw-r--r--libs/libevent/src/time-internal.h (renamed from protocols/Telegram/libevent/time-internal.h)0
-rw-r--r--libs/libevent/src/util-internal.h (renamed from protocols/Telegram/libevent/util-internal.h)6
-rw-r--r--libs/libevent/src/win32select.c (renamed from protocols/Telegram/libevent/win32select.c)0
-rw-r--r--protocols/Telegram/libevent/buffer.objbin60982 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/buffer_iocp.objbin9403 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/bufferevent.objbin15234 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/bufferevent_async.objbin15266 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/bufferevent_filter.objbin11273 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/bufferevent_pair.objbin6819 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/bufferevent_ratelim.objbin17746 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/bufferevent_sock.objbin12301 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/evdns.objbin114563 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/event.objbin99401 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/event_iocp.objbin4531 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/event_tagging.objbin7415 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/evmap.objbin29315 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/evrpc.objbin26303 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/evthread.objbin18993 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/evthread_win32.objbin3376 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/evutil.objbin35911 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/evutil_rand.objbin5206 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/evutil_time.objbin3882 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/http.objbin79042 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/libevent.libbin652848 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/libevent_core.libbin412906 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/libevent_extras.libbin240764 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/listener.objbin12967 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/log.objbin6459 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/signal.objbin9157 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/strlcpy.objbin677 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/print-winsock-errors.exebin250368 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/print-winsock-errors.objbin6289 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress.exebin1094144 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress.gen.c1
-rw-r--r--protocols/Telegram/libevent/test/regress.gen.h1
-rw-r--r--protocols/Telegram/libevent/test/regress.gen.objbin411 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress.objbin163578 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_buffer.objbin321947 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_bufferevent.objbin66403 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_dns.objbin154118 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_et.objbin11988 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_finalize.objbin12620 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_http.objbin458516 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_iocp.objbin34456 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_listener.objbin13673 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_main.objbin9935 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_minheap.objbin7823 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_rpc.objbin1031 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_testutils.objbin9621 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_thread.objbin20527 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/regress_util.objbin126463 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-changelist.exebin248320 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-changelist.objbin4723 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-closed.exebin247808 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-closed.objbin3077 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-eof.exebin247808 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-eof.objbin3282 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-init.exebin247296 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-init.objbin906 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-time.exebin247808 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-time.objbin3031 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-weof.exebin247808 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/test-weof.objbin2971 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/test/tinytest.objbin10330 -> 0 bytes
-rw-r--r--protocols/Telegram/libevent/win32select.objbin6923 -> 0 bytes
-rw-r--r--protocols/Telegram/src/tgl/auto-static-fetch.c2
-rw-r--r--protocols/Telegram/src/tgl/auto-static-print-ds.c2
-rw-r--r--protocols/Telegram/src/tgl/queries.c4
-rw-r--r--protocols/Telegram/telegram.vcxproj8
-rw-r--r--protocols/Telegram/telegram.vcxproj.filters40
274 files changed, 1091 insertions, 18 deletions
diff --git a/protocols/Telegram/libevent/.gitignore b/libs/libevent/docs/.gitignore
index 01821fe1c5..01821fe1c5 100644
--- a/protocols/Telegram/libevent/.gitignore
+++ b/libs/libevent/docs/.gitignore
diff --git a/protocols/Telegram/libevent/.travis.yml b/libs/libevent/docs/.travis.yml
index f1d8141f5a..f1d8141f5a 100644
--- a/protocols/Telegram/libevent/.travis.yml
+++ b/libs/libevent/docs/.travis.yml
diff --git a/protocols/Telegram/libevent/CMakeLists.txt b/libs/libevent/docs/CMakeLists.txt
index 708f8a1bfa..708f8a1bfa 100644
--- a/protocols/Telegram/libevent/CMakeLists.txt
+++ b/libs/libevent/docs/CMakeLists.txt
diff --git a/protocols/Telegram/libevent/ChangeLog b/libs/libevent/docs/ChangeLog
index 1499637504..1499637504 100644
--- a/protocols/Telegram/libevent/ChangeLog
+++ b/libs/libevent/docs/ChangeLog
diff --git a/protocols/Telegram/libevent/ChangeLog-1.4 b/libs/libevent/docs/ChangeLog-1.4
index 166d30872f..166d30872f 100644
--- a/protocols/Telegram/libevent/ChangeLog-1.4
+++ b/libs/libevent/docs/ChangeLog-1.4
diff --git a/protocols/Telegram/libevent/ChangeLog-2.0 b/libs/libevent/docs/ChangeLog-2.0
index a925d33b18..a925d33b18 100644
--- a/protocols/Telegram/libevent/ChangeLog-2.0
+++ b/libs/libevent/docs/ChangeLog-2.0
diff --git a/protocols/Telegram/libevent/Doxyfile b/libs/libevent/docs/Doxyfile
index d9d6603459..d9d6603459 100644
--- a/protocols/Telegram/libevent/Doxyfile
+++ b/libs/libevent/docs/Doxyfile
diff --git a/protocols/Telegram/libevent/LICENSE b/libs/libevent/docs/LICENSE
index 402ca50896..402ca50896 100644
--- a/protocols/Telegram/libevent/LICENSE
+++ b/libs/libevent/docs/LICENSE
diff --git a/protocols/Telegram/libevent/Makefile.am b/libs/libevent/docs/Makefile.am
index 3053cc016a..3053cc016a 100644
--- a/protocols/Telegram/libevent/Makefile.am
+++ b/libs/libevent/docs/Makefile.am
diff --git a/protocols/Telegram/libevent/Makefile.nmake b/libs/libevent/docs/Makefile.nmake
index f27cd61949..f27cd61949 100644
--- a/protocols/Telegram/libevent/Makefile.nmake
+++ b/libs/libevent/docs/Makefile.nmake
diff --git a/protocols/Telegram/libevent/README.md b/libs/libevent/docs/README.md
index fdd777ee8d..fdd777ee8d 100644
--- a/protocols/Telegram/libevent/README.md
+++ b/libs/libevent/docs/README.md
diff --git a/protocols/Telegram/libevent/appveyor.yml b/libs/libevent/docs/appveyor.yml
index f9af62d2db..f9af62d2db 100644
--- a/protocols/Telegram/libevent/appveyor.yml
+++ b/libs/libevent/docs/appveyor.yml
diff --git a/protocols/Telegram/libevent/autogen.sh b/libs/libevent/docs/autogen.sh
index 57eeb940b9..57eeb940b9 100644
--- a/protocols/Telegram/libevent/autogen.sh
+++ b/libs/libevent/docs/autogen.sh
diff --git a/protocols/Telegram/libevent/cmake/AddCompilerFlags.cmake b/libs/libevent/docs/cmake/AddCompilerFlags.cmake
index c7da188b7a..c7da188b7a 100644
--- a/protocols/Telegram/libevent/cmake/AddCompilerFlags.cmake
+++ b/libs/libevent/docs/cmake/AddCompilerFlags.cmake
diff --git a/protocols/Telegram/libevent/cmake/COPYING-CMAKE-SCRIPTS b/libs/libevent/docs/cmake/COPYING-CMAKE-SCRIPTS
index ab3c4d25d1..ab3c4d25d1 100644
--- a/protocols/Telegram/libevent/cmake/COPYING-CMAKE-SCRIPTS
+++ b/libs/libevent/docs/cmake/COPYING-CMAKE-SCRIPTS
diff --git a/protocols/Telegram/libevent/cmake/CheckFileOffsetBits.c b/libs/libevent/docs/cmake/CheckFileOffsetBits.c
index d948fecf2b..d948fecf2b 100644
--- a/protocols/Telegram/libevent/cmake/CheckFileOffsetBits.c
+++ b/libs/libevent/docs/cmake/CheckFileOffsetBits.c
diff --git a/protocols/Telegram/libevent/cmake/CheckFileOffsetBits.cmake b/libs/libevent/docs/cmake/CheckFileOffsetBits.cmake
index 1253440160..1253440160 100644
--- a/protocols/Telegram/libevent/cmake/CheckFileOffsetBits.cmake
+++ b/libs/libevent/docs/cmake/CheckFileOffsetBits.cmake
diff --git a/protocols/Telegram/libevent/cmake/CheckFunctionExistsEx.c b/libs/libevent/docs/cmake/CheckFunctionExistsEx.c
index 5ee3e5913a..5ee3e5913a 100644
--- a/protocols/Telegram/libevent/cmake/CheckFunctionExistsEx.c
+++ b/libs/libevent/docs/cmake/CheckFunctionExistsEx.c
diff --git a/protocols/Telegram/libevent/cmake/CheckFunctionExistsEx.cmake b/libs/libevent/docs/cmake/CheckFunctionExistsEx.cmake
index f513f4e108..f513f4e108 100644
--- a/protocols/Telegram/libevent/cmake/CheckFunctionExistsEx.cmake
+++ b/libs/libevent/docs/cmake/CheckFunctionExistsEx.cmake
diff --git a/protocols/Telegram/libevent/cmake/CheckFunctionKeywords.cmake b/libs/libevent/docs/cmake/CheckFunctionKeywords.cmake
index 3d968b8a6b..3d968b8a6b 100644
--- a/protocols/Telegram/libevent/cmake/CheckFunctionKeywords.cmake
+++ b/libs/libevent/docs/cmake/CheckFunctionKeywords.cmake
diff --git a/protocols/Telegram/libevent/cmake/CheckPrototypeDefinition.c.in b/libs/libevent/docs/cmake/CheckPrototypeDefinition.c.in
index a97344ac3e..a97344ac3e 100644
--- a/protocols/Telegram/libevent/cmake/CheckPrototypeDefinition.c.in
+++ b/libs/libevent/docs/cmake/CheckPrototypeDefinition.c.in
diff --git a/protocols/Telegram/libevent/cmake/CheckPrototypeDefinition.cmake b/libs/libevent/docs/cmake/CheckPrototypeDefinition.cmake
index e0c6a572c0..e0c6a572c0 100644
--- a/protocols/Telegram/libevent/cmake/CheckPrototypeDefinition.cmake
+++ b/libs/libevent/docs/cmake/CheckPrototypeDefinition.cmake
diff --git a/protocols/Telegram/libevent/cmake/CheckWorkingKqueue.cmake b/libs/libevent/docs/cmake/CheckWorkingKqueue.cmake
index 47bf4e838a..47bf4e838a 100644
--- a/protocols/Telegram/libevent/cmake/CheckWorkingKqueue.cmake
+++ b/libs/libevent/docs/cmake/CheckWorkingKqueue.cmake
diff --git a/protocols/Telegram/libevent/cmake/CodeCoverage.cmake b/libs/libevent/docs/cmake/CodeCoverage.cmake
index 969f273253..969f273253 100644
--- a/protocols/Telegram/libevent/cmake/CodeCoverage.cmake
+++ b/libs/libevent/docs/cmake/CodeCoverage.cmake
diff --git a/protocols/Telegram/libevent/cmake/Copyright.txt b/libs/libevent/docs/cmake/Copyright.txt
index 813124f02e..813124f02e 100644
--- a/protocols/Telegram/libevent/cmake/Copyright.txt
+++ b/libs/libevent/docs/cmake/Copyright.txt
diff --git a/protocols/Telegram/libevent/cmake/FindGit.cmake b/libs/libevent/docs/cmake/FindGit.cmake
index 2abbfe4e9d..2abbfe4e9d 100644
--- a/protocols/Telegram/libevent/cmake/FindGit.cmake
+++ b/libs/libevent/docs/cmake/FindGit.cmake
diff --git a/protocols/Telegram/libevent/cmake/LibeventConfig.cmake.in b/libs/libevent/docs/cmake/LibeventConfig.cmake.in
index b28cacb5fb..b28cacb5fb 100644
--- a/protocols/Telegram/libevent/cmake/LibeventConfig.cmake.in
+++ b/libs/libevent/docs/cmake/LibeventConfig.cmake.in
diff --git a/protocols/Telegram/libevent/cmake/LibeventConfigBuildTree.cmake.in b/libs/libevent/docs/cmake/LibeventConfigBuildTree.cmake.in
index 02edef32fc..02edef32fc 100644
--- a/protocols/Telegram/libevent/cmake/LibeventConfigBuildTree.cmake.in
+++ b/libs/libevent/docs/cmake/LibeventConfigBuildTree.cmake.in
diff --git a/protocols/Telegram/libevent/cmake/LibeventConfigVersion.cmake.in b/libs/libevent/docs/cmake/LibeventConfigVersion.cmake.in
index 56371a8fee..56371a8fee 100644
--- a/protocols/Telegram/libevent/cmake/LibeventConfigVersion.cmake.in
+++ b/libs/libevent/docs/cmake/LibeventConfigVersion.cmake.in
diff --git a/protocols/Telegram/libevent/cmake/VersionViaGit.cmake b/libs/libevent/docs/cmake/VersionViaGit.cmake
index f183a64713..f183a64713 100644
--- a/protocols/Telegram/libevent/cmake/VersionViaGit.cmake
+++ b/libs/libevent/docs/cmake/VersionViaGit.cmake
diff --git a/protocols/Telegram/libevent/configure.ac b/libs/libevent/docs/configure.ac
index 6a669fb701..6a669fb701 100644
--- a/protocols/Telegram/libevent/configure.ac
+++ b/libs/libevent/docs/configure.ac
diff --git a/protocols/Telegram/libevent/devpoll.c b/libs/libevent/docs/devpoll.c
index 3a2f86d6f1..3a2f86d6f1 100644
--- a/protocols/Telegram/libevent/devpoll.c
+++ b/libs/libevent/docs/devpoll.c
diff --git a/protocols/Telegram/libevent/epoll.c b/libs/libevent/docs/epoll.c
index bf730b23db..bf730b23db 100644
--- a/protocols/Telegram/libevent/epoll.c
+++ b/libs/libevent/docs/epoll.c
diff --git a/protocols/Telegram/libevent/epoll_sub.c b/libs/libevent/docs/epoll_sub.c
index 3f01f6a699..3f01f6a699 100644
--- a/protocols/Telegram/libevent/epoll_sub.c
+++ b/libs/libevent/docs/epoll_sub.c
diff --git a/protocols/Telegram/libevent/evconfig-private.h.cmake b/libs/libevent/docs/evconfig-private.h.cmake
index 32f04794d2..32f04794d2 100644
--- a/protocols/Telegram/libevent/evconfig-private.h.cmake
+++ b/libs/libevent/docs/evconfig-private.h.cmake
diff --git a/protocols/Telegram/libevent/evconfig-private.h.in b/libs/libevent/docs/evconfig-private.h.in
index 7b3dfdb10e..7b3dfdb10e 100644
--- a/protocols/Telegram/libevent/evconfig-private.h.in
+++ b/libs/libevent/docs/evconfig-private.h.in
diff --git a/protocols/Telegram/libevent/evdns.3 b/libs/libevent/docs/evdns.3
index 10414fa2ef..10414fa2ef 100644
--- a/protocols/Telegram/libevent/evdns.3
+++ b/libs/libevent/docs/evdns.3
diff --git a/protocols/Telegram/libevent/event-config.h.cmake b/libs/libevent/docs/event-config.h.cmake
index 76e0d1f981..76e0d1f981 100644
--- a/protocols/Telegram/libevent/event-config.h.cmake
+++ b/libs/libevent/docs/event-config.h.cmake
diff --git a/protocols/Telegram/libevent/event.3 b/libs/libevent/docs/event.3
index 655a823efe..655a823efe 100644
--- a/protocols/Telegram/libevent/event.3
+++ b/libs/libevent/docs/event.3
diff --git a/protocols/Telegram/libevent/event_rpcgen.py b/libs/libevent/docs/event_rpcgen.py
index c537565696..c537565696 100644
--- a/protocols/Telegram/libevent/event_rpcgen.py
+++ b/libs/libevent/docs/event_rpcgen.py
diff --git a/protocols/Telegram/libevent/evport.c b/libs/libevent/docs/evport.c
index a014386bfe..a014386bfe 100644
--- a/protocols/Telegram/libevent/evport.c
+++ b/libs/libevent/docs/evport.c
diff --git a/protocols/Telegram/libevent/evthread_pthread.c b/libs/libevent/docs/evthread_pthread.c
index 4e11f74970..4e11f74970 100644
--- a/protocols/Telegram/libevent/evthread_pthread.c
+++ b/libs/libevent/docs/evthread_pthread.c
diff --git a/protocols/Telegram/libevent/kqueue-internal.h b/libs/libevent/docs/kqueue-internal.h
index 02c5a3606c..02c5a3606c 100644
--- a/protocols/Telegram/libevent/kqueue-internal.h
+++ b/libs/libevent/docs/kqueue-internal.h
diff --git a/protocols/Telegram/libevent/kqueue.c b/libs/libevent/docs/kqueue.c
index 1f41b5a768..1f41b5a768 100644
--- a/protocols/Telegram/libevent/kqueue.c
+++ b/libs/libevent/docs/kqueue.c
diff --git a/protocols/Telegram/libevent/libevent.pc.in b/libs/libevent/docs/libevent.pc.in
index 7030884eeb..7030884eeb 100644
--- a/protocols/Telegram/libevent/libevent.pc.in
+++ b/libs/libevent/docs/libevent.pc.in
diff --git a/protocols/Telegram/libevent/libevent_openssl.pc.in b/libs/libevent/docs/libevent_openssl.pc.in
index a65d1e0668..a65d1e0668 100644
--- a/protocols/Telegram/libevent/libevent_openssl.pc.in
+++ b/libs/libevent/docs/libevent_openssl.pc.in
diff --git a/protocols/Telegram/libevent/libevent_pthreads.pc.in b/libs/libevent/docs/libevent_pthreads.pc.in
index 9bc2392b34..9bc2392b34 100644
--- a/protocols/Telegram/libevent/libevent_pthreads.pc.in
+++ b/libs/libevent/docs/libevent_pthreads.pc.in
diff --git a/protocols/Telegram/libevent/m4/ac_backport_259_ssizet.m4 b/libs/libevent/docs/m4/ac_backport_259_ssizet.m4
index 75fde386cb..75fde386cb 100644
--- a/protocols/Telegram/libevent/m4/ac_backport_259_ssizet.m4
+++ b/libs/libevent/docs/m4/ac_backport_259_ssizet.m4
diff --git a/protocols/Telegram/libevent/m4/acx_pthread.m4 b/libs/libevent/docs/m4/acx_pthread.m4
index d2b116945f..d2b116945f 100644
--- a/protocols/Telegram/libevent/m4/acx_pthread.m4
+++ b/libs/libevent/docs/m4/acx_pthread.m4
diff --git a/protocols/Telegram/libevent/m4/libevent_openssl.m4 b/libs/libevent/docs/m4/libevent_openssl.m4
index 3cb064a0bd..3cb064a0bd 100644
--- a/protocols/Telegram/libevent/m4/libevent_openssl.m4
+++ b/libs/libevent/docs/m4/libevent_openssl.m4
diff --git a/protocols/Telegram/libevent/m4/ntp_pkg_config.m4 b/libs/libevent/docs/m4/ntp_pkg_config.m4
index 1bce8a6e4d..1bce8a6e4d 100644
--- a/protocols/Telegram/libevent/m4/ntp_pkg_config.m4
+++ b/libs/libevent/docs/m4/ntp_pkg_config.m4
diff --git a/protocols/Telegram/libevent/make-event-config.sed b/libs/libevent/docs/make-event-config.sed
index e31018a2dd..e31018a2dd 100644
--- a/protocols/Telegram/libevent/make-event-config.sed
+++ b/libs/libevent/docs/make-event-config.sed
diff --git a/protocols/Telegram/libevent/make_epoll_table.py b/libs/libevent/docs/make_epoll_table.py
index 1b15a91a67..1b15a91a67 100644
--- a/protocols/Telegram/libevent/make_epoll_table.py
+++ b/libs/libevent/docs/make_epoll_table.py
diff --git a/protocols/Telegram/libevent/poll.c b/libs/libevent/docs/poll.c
index 51475934b3..51475934b3 100644
--- a/protocols/Telegram/libevent/poll.c
+++ b/libs/libevent/docs/poll.c
diff --git a/protocols/Telegram/libevent/sample/dns-example.c b/libs/libevent/docs/sample/dns-example.c
index fb705664aa..fb705664aa 100644
--- a/protocols/Telegram/libevent/sample/dns-example.c
+++ b/libs/libevent/docs/sample/dns-example.c
diff --git a/protocols/Telegram/libevent/sample/event-read-fifo.c b/libs/libevent/docs/sample/event-read-fifo.c
index 27b0b530d5..27b0b530d5 100644
--- a/protocols/Telegram/libevent/sample/event-read-fifo.c
+++ b/libs/libevent/docs/sample/event-read-fifo.c
diff --git a/protocols/Telegram/libevent/sample/hello-world.c b/libs/libevent/docs/sample/hello-world.c
index d3cf058a8b..d3cf058a8b 100644
--- a/protocols/Telegram/libevent/sample/hello-world.c
+++ b/libs/libevent/docs/sample/hello-world.c
diff --git a/protocols/Telegram/libevent/sample/hostcheck.c b/libs/libevent/docs/sample/hostcheck.c
index 50709369c0..50709369c0 100644
--- a/protocols/Telegram/libevent/sample/hostcheck.c
+++ b/libs/libevent/docs/sample/hostcheck.c
diff --git a/protocols/Telegram/libevent/sample/hostcheck.h b/libs/libevent/docs/sample/hostcheck.h
index f40bc43435..f40bc43435 100644
--- a/protocols/Telegram/libevent/sample/hostcheck.h
+++ b/libs/libevent/docs/sample/hostcheck.h
diff --git a/protocols/Telegram/libevent/sample/http-connect.c b/libs/libevent/docs/sample/http-connect.c
index d6c7b5ea0b..d6c7b5ea0b 100644
--- a/protocols/Telegram/libevent/sample/http-connect.c
+++ b/libs/libevent/docs/sample/http-connect.c
diff --git a/protocols/Telegram/libevent/sample/http-server.c b/libs/libevent/docs/sample/http-server.c
index cbb9c914dd..cbb9c914dd 100644
--- a/protocols/Telegram/libevent/sample/http-server.c
+++ b/libs/libevent/docs/sample/http-server.c
diff --git a/protocols/Telegram/libevent/sample/https-client.c b/libs/libevent/docs/sample/https-client.c
index 029cd19c75..029cd19c75 100644
--- a/protocols/Telegram/libevent/sample/https-client.c
+++ b/libs/libevent/docs/sample/https-client.c
diff --git a/protocols/Telegram/libevent/sample/include.am b/libs/libevent/docs/sample/include.am
index d1a7242f7c..d1a7242f7c 100644
--- a/protocols/Telegram/libevent/sample/include.am
+++ b/libs/libevent/docs/sample/include.am
diff --git a/protocols/Telegram/libevent/sample/le-proxy.c b/libs/libevent/docs/sample/le-proxy.c
index 30e0a5f6b9..30e0a5f6b9 100644
--- a/protocols/Telegram/libevent/sample/le-proxy.c
+++ b/libs/libevent/docs/sample/le-proxy.c
diff --git a/protocols/Telegram/libevent/sample/openssl_hostname_validation.c b/libs/libevent/docs/sample/openssl_hostname_validation.c
index 00e63d1e15..00e63d1e15 100644
--- a/protocols/Telegram/libevent/sample/openssl_hostname_validation.c
+++ b/libs/libevent/docs/sample/openssl_hostname_validation.c
diff --git a/protocols/Telegram/libevent/sample/openssl_hostname_validation.h b/libs/libevent/docs/sample/openssl_hostname_validation.h
index 54aa1c436d..54aa1c436d 100644
--- a/protocols/Telegram/libevent/sample/openssl_hostname_validation.h
+++ b/libs/libevent/docs/sample/openssl_hostname_validation.h
diff --git a/protocols/Telegram/libevent/sample/signal-test.c b/libs/libevent/docs/sample/signal-test.c
index a61642f325..a61642f325 100644
--- a/protocols/Telegram/libevent/sample/signal-test.c
+++ b/libs/libevent/docs/sample/signal-test.c
diff --git a/protocols/Telegram/libevent/sample/time-test.c b/libs/libevent/docs/sample/time-test.c
index c94c18a500..c94c18a500 100644
--- a/protocols/Telegram/libevent/sample/time-test.c
+++ b/libs/libevent/docs/sample/time-test.c
diff --git a/protocols/Telegram/libevent/select.c b/libs/libevent/docs/select.c
index 8ae53cc11e..8ae53cc11e 100644
--- a/protocols/Telegram/libevent/select.c
+++ b/libs/libevent/docs/select.c
diff --git a/protocols/Telegram/libevent/test/Makefile.nmake b/libs/libevent/docs/test/Makefile.nmake
index 30c3eb792b..30c3eb792b 100644
--- a/protocols/Telegram/libevent/test/Makefile.nmake
+++ b/libs/libevent/docs/test/Makefile.nmake
diff --git a/protocols/Telegram/libevent/test/bench.c b/libs/libevent/docs/test/bench.c
index 214479c1ff..214479c1ff 100644
--- a/protocols/Telegram/libevent/test/bench.c
+++ b/libs/libevent/docs/test/bench.c
diff --git a/protocols/Telegram/libevent/test/bench_cascade.c b/libs/libevent/docs/test/bench_cascade.c
index 2d85cc1f10..2d85cc1f10 100644
--- a/protocols/Telegram/libevent/test/bench_cascade.c
+++ b/libs/libevent/docs/test/bench_cascade.c
diff --git a/protocols/Telegram/libevent/test/bench_http.c b/libs/libevent/docs/test/bench_http.c
index 6d0d971799..6d0d971799 100644
--- a/protocols/Telegram/libevent/test/bench_http.c
+++ b/libs/libevent/docs/test/bench_http.c
diff --git a/protocols/Telegram/libevent/test/bench_httpclient.c b/libs/libevent/docs/test/bench_httpclient.c
index bcddc95f43..bcddc95f43 100644
--- a/protocols/Telegram/libevent/test/bench_httpclient.c
+++ b/libs/libevent/docs/test/bench_httpclient.c
diff --git a/protocols/Telegram/libevent/test/check-dumpevents.py b/libs/libevent/docs/test/check-dumpevents.py
index 16fe9bc92f..16fe9bc92f 100644
--- a/protocols/Telegram/libevent/test/check-dumpevents.py
+++ b/libs/libevent/docs/test/check-dumpevents.py
diff --git a/protocols/Telegram/libevent/test/include.am b/libs/libevent/docs/test/include.am
index 4cd49ef630..4cd49ef630 100644
--- a/protocols/Telegram/libevent/test/include.am
+++ b/libs/libevent/docs/test/include.am
diff --git a/protocols/Telegram/libevent/test/print-winsock-errors.c b/libs/libevent/docs/test/print-winsock-errors.c
index ab6e610e84..ab6e610e84 100644
--- a/protocols/Telegram/libevent/test/print-winsock-errors.c
+++ b/libs/libevent/docs/test/print-winsock-errors.c
diff --git a/protocols/Telegram/libevent/test/regress.c b/libs/libevent/docs/test/regress.c
index b12c66dfa0..b12c66dfa0 100644
--- a/protocols/Telegram/libevent/test/regress.c
+++ b/libs/libevent/docs/test/regress.c
diff --git a/protocols/Telegram/libevent/test/regress.h b/libs/libevent/docs/test/regress.h
index de1aed3089..de1aed3089 100644
--- a/protocols/Telegram/libevent/test/regress.h
+++ b/libs/libevent/docs/test/regress.h
diff --git a/protocols/Telegram/libevent/test/regress.rpc b/libs/libevent/docs/test/regress.rpc
index 0ee904e913..0ee904e913 100644
--- a/protocols/Telegram/libevent/test/regress.rpc
+++ b/libs/libevent/docs/test/regress.rpc
diff --git a/protocols/Telegram/libevent/test/regress_buffer.c b/libs/libevent/docs/test/regress_buffer.c
index 957e59f178..957e59f178 100644
--- a/protocols/Telegram/libevent/test/regress_buffer.c
+++ b/libs/libevent/docs/test/regress_buffer.c
diff --git a/protocols/Telegram/libevent/test/regress_bufferevent.c b/libs/libevent/docs/test/regress_bufferevent.c
index 68e6876405..68e6876405 100644
--- a/protocols/Telegram/libevent/test/regress_bufferevent.c
+++ b/libs/libevent/docs/test/regress_bufferevent.c
diff --git a/protocols/Telegram/libevent/test/regress_dns.c b/libs/libevent/docs/test/regress_dns.c
index 1873636245..1873636245 100644
--- a/protocols/Telegram/libevent/test/regress_dns.c
+++ b/libs/libevent/docs/test/regress_dns.c
diff --git a/protocols/Telegram/libevent/test/regress_et.c b/libs/libevent/docs/test/regress_et.c
index 229a78e2d4..229a78e2d4 100644
--- a/protocols/Telegram/libevent/test/regress_et.c
+++ b/libs/libevent/docs/test/regress_et.c
diff --git a/protocols/Telegram/libevent/test/regress_finalize.c b/libs/libevent/docs/test/regress_finalize.c
index 552210fe9d..552210fe9d 100644
--- a/protocols/Telegram/libevent/test/regress_finalize.c
+++ b/libs/libevent/docs/test/regress_finalize.c
diff --git a/protocols/Telegram/libevent/test/regress_http.c b/libs/libevent/docs/test/regress_http.c
index cbe7aea34c..cbe7aea34c 100644
--- a/protocols/Telegram/libevent/test/regress_http.c
+++ b/libs/libevent/docs/test/regress_http.c
diff --git a/protocols/Telegram/libevent/test/regress_iocp.c b/libs/libevent/docs/test/regress_iocp.c
index 17b385241f..17b385241f 100644
--- a/protocols/Telegram/libevent/test/regress_iocp.c
+++ b/libs/libevent/docs/test/regress_iocp.c
diff --git a/protocols/Telegram/libevent/test/regress_listener.c b/libs/libevent/docs/test/regress_listener.c
index 4db102df68..4db102df68 100644
--- a/protocols/Telegram/libevent/test/regress_listener.c
+++ b/libs/libevent/docs/test/regress_listener.c
diff --git a/protocols/Telegram/libevent/test/regress_main.c b/libs/libevent/docs/test/regress_main.c
index 6d045bb833..6d045bb833 100644
--- a/protocols/Telegram/libevent/test/regress_main.c
+++ b/libs/libevent/docs/test/regress_main.c
diff --git a/protocols/Telegram/libevent/test/regress_minheap.c b/libs/libevent/docs/test/regress_minheap.c
index 05db32e26f..05db32e26f 100644
--- a/protocols/Telegram/libevent/test/regress_minheap.c
+++ b/libs/libevent/docs/test/regress_minheap.c
diff --git a/protocols/Telegram/libevent/test/regress_rpc.c b/libs/libevent/docs/test/regress_rpc.c
index 01a058cbb2..01a058cbb2 100644
--- a/protocols/Telegram/libevent/test/regress_rpc.c
+++ b/libs/libevent/docs/test/regress_rpc.c
diff --git a/protocols/Telegram/libevent/test/regress_ssl.c b/libs/libevent/docs/test/regress_ssl.c
index a415952a7d..a415952a7d 100644
--- a/protocols/Telegram/libevent/test/regress_ssl.c
+++ b/libs/libevent/docs/test/regress_ssl.c
diff --git a/protocols/Telegram/libevent/test/regress_testutils.c b/libs/libevent/docs/test/regress_testutils.c
index 7554a5413f..7554a5413f 100644
--- a/protocols/Telegram/libevent/test/regress_testutils.c
+++ b/libs/libevent/docs/test/regress_testutils.c
diff --git a/protocols/Telegram/libevent/test/regress_testutils.h b/libs/libevent/docs/test/regress_testutils.h
index 040516a585..040516a585 100644
--- a/protocols/Telegram/libevent/test/regress_testutils.h
+++ b/libs/libevent/docs/test/regress_testutils.h
diff --git a/protocols/Telegram/libevent/test/regress_thread.c b/libs/libevent/docs/test/regress_thread.c
index 9ff6a8fa88..9ff6a8fa88 100644
--- a/protocols/Telegram/libevent/test/regress_thread.c
+++ b/libs/libevent/docs/test/regress_thread.c
diff --git a/protocols/Telegram/libevent/test/regress_thread.h b/libs/libevent/docs/test/regress_thread.h
index 831b51e507..831b51e507 100644
--- a/protocols/Telegram/libevent/test/regress_thread.h
+++ b/libs/libevent/docs/test/regress_thread.h
diff --git a/protocols/Telegram/libevent/test/regress_util.c b/libs/libevent/docs/test/regress_util.c
index 60f085bf1d..60f085bf1d 100644
--- a/protocols/Telegram/libevent/test/regress_util.c
+++ b/libs/libevent/docs/test/regress_util.c
diff --git a/protocols/Telegram/libevent/test/regress_zlib.c b/libs/libevent/docs/test/regress_zlib.c
index 8406676932..8406676932 100644
--- a/protocols/Telegram/libevent/test/regress_zlib.c
+++ b/libs/libevent/docs/test/regress_zlib.c
diff --git a/protocols/Telegram/libevent/test/rpcgen_wrapper.sh b/libs/libevent/docs/test/rpcgen_wrapper.sh
index aaa03031a1..aaa03031a1 100644
--- a/protocols/Telegram/libevent/test/rpcgen_wrapper.sh
+++ b/libs/libevent/docs/test/rpcgen_wrapper.sh
diff --git a/protocols/Telegram/libevent/test/test-changelist.c b/libs/libevent/docs/test/test-changelist.c
index 6e2466d5a5..6e2466d5a5 100644
--- a/protocols/Telegram/libevent/test/test-changelist.c
+++ b/libs/libevent/docs/test/test-changelist.c
diff --git a/protocols/Telegram/libevent/test/test-closed.c b/libs/libevent/docs/test/test-closed.c
index 5b04f354ac..5b04f354ac 100644
--- a/protocols/Telegram/libevent/test/test-closed.c
+++ b/libs/libevent/docs/test/test-closed.c
diff --git a/protocols/Telegram/libevent/test/test-dumpevents.c b/libs/libevent/docs/test/test-dumpevents.c
index 1c272d4c01..1c272d4c01 100644
--- a/protocols/Telegram/libevent/test/test-dumpevents.c
+++ b/libs/libevent/docs/test/test-dumpevents.c
diff --git a/protocols/Telegram/libevent/test/test-eof.c b/libs/libevent/docs/test/test-eof.c
index a9ca5343a2..a9ca5343a2 100644
--- a/protocols/Telegram/libevent/test/test-eof.c
+++ b/libs/libevent/docs/test/test-eof.c
diff --git a/protocols/Telegram/libevent/test/test-fdleak.c b/libs/libevent/docs/test/test-fdleak.c
index 4c4eba25e7..4c4eba25e7 100644
--- a/protocols/Telegram/libevent/test/test-fdleak.c
+++ b/libs/libevent/docs/test/test-fdleak.c
diff --git a/protocols/Telegram/libevent/test/test-init.c b/libs/libevent/docs/test/test-init.c
index 92fbc6b146..92fbc6b146 100644
--- a/protocols/Telegram/libevent/test/test-init.c
+++ b/libs/libevent/docs/test/test-init.c
diff --git a/protocols/Telegram/libevent/test/test-ratelim.c b/libs/libevent/docs/test/test-ratelim.c
index 17babfdcbc..17babfdcbc 100644
--- a/protocols/Telegram/libevent/test/test-ratelim.c
+++ b/libs/libevent/docs/test/test-ratelim.c
diff --git a/protocols/Telegram/libevent/test/test-ratelim.sh b/libs/libevent/docs/test/test-ratelim.sh
index b5e0ca62a9..b5e0ca62a9 100644
--- a/protocols/Telegram/libevent/test/test-ratelim.sh
+++ b/libs/libevent/docs/test/test-ratelim.sh
diff --git a/protocols/Telegram/libevent/test/test-time.c b/libs/libevent/docs/test/test-time.c
index bcc7086df7..bcc7086df7 100644
--- a/protocols/Telegram/libevent/test/test-time.c
+++ b/libs/libevent/docs/test/test-time.c
diff --git a/protocols/Telegram/libevent/test/test-weof.c b/libs/libevent/docs/test/test-weof.c
index c379f287cb..c379f287cb 100644
--- a/protocols/Telegram/libevent/test/test-weof.c
+++ b/libs/libevent/docs/test/test-weof.c
diff --git a/protocols/Telegram/libevent/test/test.sh b/libs/libevent/docs/test/test.sh
index b73c1adced..b73c1adced 100644
--- a/protocols/Telegram/libevent/test/test.sh
+++ b/libs/libevent/docs/test/test.sh
diff --git a/protocols/Telegram/libevent/test/tinytest.c b/libs/libevent/docs/test/tinytest.c
index 3a8e331055..3a8e331055 100644
--- a/protocols/Telegram/libevent/test/tinytest.c
+++ b/libs/libevent/docs/test/tinytest.c
diff --git a/protocols/Telegram/libevent/test/tinytest.h b/libs/libevent/docs/test/tinytest.h
index ed07b26bc0..ed07b26bc0 100644
--- a/protocols/Telegram/libevent/test/tinytest.h
+++ b/libs/libevent/docs/test/tinytest.h
diff --git a/protocols/Telegram/libevent/test/tinytest_demo.c b/libs/libevent/docs/test/tinytest_demo.c
index f6bfd66a1a..f6bfd66a1a 100644
--- a/protocols/Telegram/libevent/test/tinytest_demo.c
+++ b/libs/libevent/docs/test/tinytest_demo.c
diff --git a/protocols/Telegram/libevent/test/tinytest_local.h b/libs/libevent/docs/test/tinytest_local.h
index 87ec2fa67e..87ec2fa67e 100644
--- a/protocols/Telegram/libevent/test/tinytest_local.h
+++ b/libs/libevent/docs/test/tinytest_local.h
diff --git a/protocols/Telegram/libevent/test/tinytest_macros.h b/libs/libevent/docs/test/tinytest_macros.h
index c3728d1fdd..c3728d1fdd 100644
--- a/protocols/Telegram/libevent/test/tinytest_macros.h
+++ b/libs/libevent/docs/test/tinytest_macros.h
diff --git a/protocols/Telegram/libevent/whatsnew-2.0.txt b/libs/libevent/docs/whatsnew-2.0.txt
index 3561fcb94c..3561fcb94c 100644
--- a/protocols/Telegram/libevent/whatsnew-2.0.txt
+++ b/libs/libevent/docs/whatsnew-2.0.txt
diff --git a/protocols/Telegram/libevent/whatsnew-2.1.txt b/libs/libevent/docs/whatsnew-2.1.txt
index 0be54ae11b..0be54ae11b 100644
--- a/protocols/Telegram/libevent/whatsnew-2.1.txt
+++ b/libs/libevent/docs/whatsnew-2.1.txt
diff --git a/libs/libevent/include/evconfig-private.h b/libs/libevent/include/evconfig-private.h
new file mode 100644
index 0000000000..5eff5500f5
--- /dev/null
+++ b/libs/libevent/include/evconfig-private.h
@@ -0,0 +1,35 @@
+
+#ifndef EVCONFIG_PRIVATE_H_INCLUDED_
+#define EVCONFIG_PRIVATE_H_INCLUDED_
+
+/* Enable extensions on AIX 3, Interix. */
+/* #undef _ALL_SOURCE */
+
+/* Enable GNU extensions on systems that have them. */
+/* #undef _GNU_SOURCE */
+
+/* Enable threading extensions on Solaris. */
+/* #undef _POSIX_PTHREAD_SEMANTICS */
+
+/* Enable extensions on HP NonStop. */
+/* #undef _TANDEM_SOURCE */
+
+/* Enable general extensions on Solaris. */
+/* #undef __EXTENSIONS__ */
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+/* #undef _FILE_OFFSET_BITS */
+/* Define for large files, on AIX-style hosts. */
+/* #undef _LARGE_FILES */
+
+/* Define to 1 if on MINIX. */
+/* #undef _MINIX */
+
+/* Define to 2 if the system does not provide POSIX.1 features except with
+ this defined. */
+/* #undef _POSIX_1_SOURCE */
+
+/* Define to 1 if you need to in order for `stat' and other things to work. */
+/* #undef _POSIX_SOURCE */
+
+#endif
diff --git a/protocols/Telegram/libevent/include/evdns.h b/libs/libevent/include/evdns.h
index 8672db0369..8672db0369 100644
--- a/protocols/Telegram/libevent/include/evdns.h
+++ b/libs/libevent/include/evdns.h
diff --git a/protocols/Telegram/libevent/include/event.h b/libs/libevent/include/event.h
index ba5186713b..ba5186713b 100644
--- a/protocols/Telegram/libevent/include/event.h
+++ b/libs/libevent/include/event.h
diff --git a/protocols/Telegram/libevent/include/event2/buffer.h b/libs/libevent/include/event2/buffer.h
index 468588b9f1..468588b9f1 100644
--- a/protocols/Telegram/libevent/include/event2/buffer.h
+++ b/libs/libevent/include/event2/buffer.h
diff --git a/protocols/Telegram/libevent/include/event2/buffer_compat.h b/libs/libevent/include/event2/buffer_compat.h
index 24f828c210..24f828c210 100644
--- a/protocols/Telegram/libevent/include/event2/buffer_compat.h
+++ b/libs/libevent/include/event2/buffer_compat.h
diff --git a/protocols/Telegram/libevent/include/event2/bufferevent.h b/libs/libevent/include/event2/bufferevent.h
index 825918e3a4..825918e3a4 100644
--- a/protocols/Telegram/libevent/include/event2/bufferevent.h
+++ b/libs/libevent/include/event2/bufferevent.h
diff --git a/protocols/Telegram/libevent/include/event2/bufferevent_compat.h b/libs/libevent/include/event2/bufferevent_compat.h
index 65482042f9..65482042f9 100644
--- a/protocols/Telegram/libevent/include/event2/bufferevent_compat.h
+++ b/libs/libevent/include/event2/bufferevent_compat.h
diff --git a/protocols/Telegram/libevent/include/event2/bufferevent_ssl.h b/libs/libevent/include/event2/bufferevent_ssl.h
index bf39b844a9..bf39b844a9 100644
--- a/protocols/Telegram/libevent/include/event2/bufferevent_ssl.h
+++ b/libs/libevent/include/event2/bufferevent_ssl.h
diff --git a/protocols/Telegram/libevent/include/event2/bufferevent_struct.h b/libs/libevent/include/event2/bufferevent_struct.h
index e84c082c30..e84c082c30 100644
--- a/protocols/Telegram/libevent/include/event2/bufferevent_struct.h
+++ b/libs/libevent/include/event2/bufferevent_struct.h
diff --git a/protocols/Telegram/libevent/include/event2/dns.h b/libs/libevent/include/event2/dns.h
index 17cd86a2ec..17cd86a2ec 100644
--- a/protocols/Telegram/libevent/include/event2/dns.h
+++ b/libs/libevent/include/event2/dns.h
diff --git a/protocols/Telegram/libevent/include/event2/dns_compat.h b/libs/libevent/include/event2/dns_compat.h
index 965fd65445..965fd65445 100644
--- a/protocols/Telegram/libevent/include/event2/dns_compat.h
+++ b/libs/libevent/include/event2/dns_compat.h
diff --git a/protocols/Telegram/libevent/include/event2/dns_struct.h b/libs/libevent/include/event2/dns_struct.h
index 593a8a70b6..593a8a70b6 100644
--- a/protocols/Telegram/libevent/include/event2/dns_struct.h
+++ b/libs/libevent/include/event2/dns_struct.h
diff --git a/libs/libevent/include/event2/event-config.h b/libs/libevent/include/event2/event-config.h
new file mode 100644
index 0000000000..395396efa3
--- /dev/null
+++ b/libs/libevent/include/event2/event-config.h
@@ -0,0 +1,534 @@
+/* event-config.h
+ *
+ * This file was generated by cmake when the makefiles were generated.
+ *
+ * DO NOT EDIT THIS FILE.
+ *
+ * Do not rely on macros in this file existing in later versions.
+ */
+#ifndef EVENT2_EVENT_CONFIG_H_INCLUDED_
+#define EVENT2_EVENT_CONFIG_H_INCLUDED_
+
+/* Numeric representation of the version */
+#define EVENT__NUMERIC_VERSION 0x02010500
+#define EVENT__PACKAGE_VERSION "2.1.5"
+
+#define EVENT__VERSION_MAJOR 2
+#define EVENT__VERSION_MINOR 1
+#define EVENT__VERSION_PATCH 5
+
+/* Version number of package */
+#define EVENT__VERSION "2.1.5-beta"
+
+/* Name of package */
+#define EVENT__PACKAGE "libevent"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define EVENT__PACKAGE_BUGREPORT ""
+
+/* Define to the full name of this package. */
+#define EVENT__PACKAGE_NAME ""
+
+/* Define to the full name and version of this package. */
+#define EVENT__PACKAGE_STRING ""
+
+/* Define to the one symbol short name of this package. */
+#define EVENT__PACKAGE_TARNAME ""
+
+/* Define if libevent should build without support for a debug mode */
+/* #undef EVENT__DISABLE_DEBUG_MODE */
+
+/* Define if libevent should not allow replacing the mm functions */
+/* #undef EVENT__DISABLE_MM_REPLACEMENT */
+
+/* Define if libevent should not be compiled with thread support */
+/* #undef EVENT__DISABLE_THREAD_SUPPORT */
+
+/* Define to 1 if you have the `accept4' function. */
+/* #undef EVENT__HAVE_ACCEPT4 */
+
+/* Define to 1 if you have the `arc4random' function. */
+/* #undef EVENT__HAVE_ARC4RANDOM */
+
+/* Define to 1 if you have the `arc4random_buf' function. */
+/* #undef EVENT__HAVE_ARC4RANDOM_BUF */
+
+/* Define if clock_gettime is available in libc */
+/* #undef EVENT__DNS_USE_CPU_CLOCK_FOR_ID */
+
+/* Define is no secure id variant is available */
+/* #undef EVENT__DNS_USE_GETTIMEOFDAY_FOR_ID */
+#define EVENT__DNS_USE_FTIME_FOR_ID
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+/* #undef EVENT__HAVE_ARPA_INET_H */
+
+/* Define to 1 if you have the `clock_gettime' function. */
+/* #undef EVENT__HAVE_CLOCK_GETTIME */
+
+/* Define to 1 if you have the declaration of `CTL_KERN'. */
+/* #undef EVENT__HAVE_DECL_CTL_KERN */
+
+/* Define to 1 if you have the declaration of `KERN_ARND'. */
+/* #undef EVENT__HAVE_DECL_KERN_ARND */
+
+/* Define to 1 if you have the declaration of `KERN_RANDOM'. */
+/* #undef EVENT__HAVE_DECL_KERN_RANDOM */
+
+/* Define if /dev/poll is available */
+/* #undef EVENT__HAVE_DEVPOLL */
+
+/* Define to 1 if you have the <netdb.h> header file. */
+/* #undef EVENT__HAVE_NETDB_H */
+
+/* Define to 1 if fd_mask type is defined */
+/* #undef EVENT__HAVE_FD_MASK */
+
+/* Define to 1 if the <sys/queue.h> header file defines TAILQ_FOREACH. */
+/* #undef EVENT__HAVE_TAILQFOREACH */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+/* #undef EVENT__HAVE_DLFCN_H */
+
+/* Define if your system supports the epoll system calls */
+/* #undef EVENT__HAVE_EPOLL */
+
+/* Define to 1 if you have the `epoll_create1' function. */
+/* #undef EVENT__HAVE_EPOLL_CREATE1 */
+
+/* Define to 1 if you have the `epoll_ctl' function. */
+/* #undef EVENT__HAVE_EPOLL_CTL */
+
+/* Define to 1 if you have the `eventfd' function. */
+/* #undef EVENT__HAVE_EVENTFD */
+
+/* Define if your system supports event ports */
+/* #undef EVENT__HAVE_EVENT_PORTS */
+
+/* Define to 1 if you have the `fcntl' function. */
+/* #undef EVENT__HAVE_FCNTL */
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#define EVENT__HAVE_FCNTL_H
+
+/* Define to 1 if you have the `getaddrinfo' function. */
+#define EVENT__HAVE_GETADDRINFO
+
+/* Define to 1 if you have the `getegid' function. */
+/* #undef EVENT__HAVE_GETEGID */
+
+/* Define to 1 if you have the `geteuid' function. */
+/* #undef EVENT__HAVE_GETEUID */
+
+/* TODO: Check for different gethostname argument counts. CheckPrototypeDefinition.cmake can be used. */
+/* Define this if you have any gethostbyname_r() */
+/* #undef EVENT__HAVE_GETHOSTBYNAME_R */
+
+/* Define this if gethostbyname_r takes 3 arguments */
+/* #undef EVENT__HAVE_GETHOSTBYNAME_R_3_ARG */
+
+/* Define this if gethostbyname_r takes 5 arguments */
+/* #undef EVENT__HAVE_GETHOSTBYNAME_R_5_ARG */
+
+/* Define this if gethostbyname_r takes 6 arguments */
+/* #undef EVENT__HAVE_GETHOSTBYNAME_R_6_ARG */
+
+/* Define to 1 if you have the `getifaddrs' function. */
+/* #undef EVENT__HAVE_GETIFADDRS */
+
+/* Define to 1 if you have the `getnameinfo' function. */
+#define EVENT__HAVE_GETNAMEINFO
+
+/* Define to 1 if you have the `getprotobynumber' function. */
+#define EVENT__HAVE_GETPROTOBYNUMBER
+
+/* Define to 1 if you have the `getservbyname' function. */
+#define EVENT__HAVE_GETSERVBYNAME
+
+/* Define to 1 if you have the `gettimeofday' function. */
+/* #undef EVENT__HAVE_GETTIMEOFDAY */
+
+/* Define to 1 if you have the <ifaddrs.h> header file. */
+/* #undef EVENT__HAVE_IFADDRS_H */
+
+/* Define to 1 if you have the `inet_ntop' function. */
+/* #undef EVENT__HAVE_INET_NTOP */
+
+/* Define to 1 if you have the `inet_pton' function. */
+/* #undef EVENT__HAVE_INET_PTON */
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define EVENT__HAVE_INTTYPES_H
+
+/* Define to 1 if you have the `issetugid' function. */
+/* #undef EVENT__HAVE_ISSETUGID */
+
+/* Define to 1 if you have the `kqueue' function. */
+/* #undef EVENT__HAVE_KQUEUE */
+
+/* Define if the system has zlib */
+/* #undef EVENT__HAVE_LIBZ */
+
+/* Define to 1 if you have the `mach_absolute_time' function. */
+/* #undef EVENT__HAVE_MACH_ABSOLUTE_TIME */
+
+/* Define to 1 if you have the <mach/mach_time.h> header file. */
+/* #undef EVENT__HAVE_MACH_MACH_TIME_H */
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define EVENT__HAVE_MEMORY_H
+
+/* Define to 1 if you have the `mmap' function. */
+/* #undef EVENT__HAVE_MMAP */
+
+/* Define to 1 if you have the `nanosleep' function. */
+/* #undef EVENT__HAVE_NANOSLEEP */
+
+/* Define to 1 if you have the `usleep' function. */
+/* #undef EVENT__HAVE_USLEEP */
+
+/* Define to 1 if you have the <netdb.h> header file. */
+/* #undef EVENT__HAVE_NETDB_H */
+
+/* Define to 1 if you have the <netinet/in6.h> header file. */
+/* #undef EVENT__HAVE_NETINET_IN6_H */
+
+/* Define to 1 if you have the <netinet/in.h> header file. */
+/* #undef EVENT__HAVE_NETINET_IN_H */
+
+/* Define to 1 if you have the <netinet/tcp.h> header file. */
+/* #undef EVENT__HAVE_NETINET_TCP_H */
+
+/* Define if the system has openssl */
+#define EVENT__HAVE_OPENSSL
+
+/* Defines if the system has zlib */
+/* #undef EVENT__HAVE_ZLIB */
+
+/* Define to 1 if you have the `pipe' function. */
+/* #undef EVENT__HAVE_PIPE */
+
+/* Define to 1 if you have the `pipe2' function. */
+/* #undef EVENT__HAVE_PIPE2 */
+
+/* Define to 1 if you have the `poll' function. */
+/* #undef EVENT__HAVE_POLL */
+
+/* Define to 1 if you have the <poll.h> header file. */
+/* #undef EVENT__HAVE_POLL_H */
+
+/* Define to 1 if you have the `port_create' function. */
+/* #undef EVENT__HAVE_PORT_CREATE */
+
+/* Define to 1 if you have the <port.h> header file. */
+/* #undef EVENT__HAVE_PORT_H */
+
+/* Define if you have POSIX threads libraries and header files. */
+/* #undef EVENT__HAVE_PTHREAD */
+
+/* Define if we have pthreads on this system */
+/* #undef EVENT__HAVE_PTHREADS */
+
+/* Define to 1 if you have the `putenv' function. */
+#define EVENT__HAVE_PUTENV
+
+/* Define to 1 if the system has the type `sa_family_t'. */
+/* #undef EVENT__HAVE_SA_FAMILY_T */
+
+/* Define to 1 if you have the `select' function. */
+/* #undef EVENT__HAVE_SELECT */
+
+/* Define to 1 if you have the `setenv' function. */
+/* #undef EVENT__HAVE_SETENV */
+
+/* Define if F_SETFD is defined in <fcntl.h> */
+/* #undef EVENT__HAVE_SETFD */
+
+/* Define to 1 if you have the `setrlimit' function. */
+/* #undef EVENT__HAVE_SETRLIMIT */
+
+/* Define to 1 if you have the `sendfile' function. */
+/* #undef EVENT__HAVE_SENDFILE */
+
+/* Define if F_SETFD is defined in <fcntl.h> */
+/* #undef EVENT__HAVE_SETFD */
+
+/* Define to 1 if you have the `sigaction' function. */
+/* #undef EVENT__HAVE_SIGACTION */
+
+/* Define to 1 if you have the `signal' function. */
+/* #undef EVENT__HAVE_SIGNAL */
+
+/* Define to 1 if you have the `splice' function. */
+/* #undef EVENT__HAVE_SPLICE */
+
+/* Define to 1 if you have the <stdarg.h> header file. */
+#define EVENT__HAVE_STDARG_H
+
+/* Define to 1 if you have the <stddef.h> header file. */
+#define EVENT__HAVE_STDDEF_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define EVENT__HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define EVENT__HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+/* #undef EVENT__HAVE_STRINGS_H */
+
+/* Define to 1 if you have the <string.h> header file. */
+#define EVENT__HAVE_STRING_H
+
+/* Define to 1 if you have the `strlcpy' function. */
+/* #undef EVENT__HAVE_STRLCPY */
+
+/* Define to 1 if you have the `strsep' function. */
+/* #undef EVENT__HAVE_STRSEP */
+
+/* Define to 1 if you have the `strtok_r' function. */
+/* #undef EVENT__HAVE_STRTOK_R */
+
+/* Define to 1 if you have the `strtoll' function. */
+#define EVENT__HAVE_STRTOLL
+
+/* Define to 1 if the system has the type `struct addrinfo'. */
+#define EVENT__HAVE_STRUCT_ADDRINFO
+
+/* Define to 1 if the system has the type `struct in6_addr'. */
+#define EVENT__HAVE_STRUCT_IN6_ADDR
+
+/* Define to 1 if `s6_addr16' is member of `struct in6_addr'. */
+/* #undef EVENT__HAVE_STRUCT_IN6_ADDR_S6_ADDR16 */
+
+/* Define to 1 if `s6_addr32' is member of `struct in6_addr'. */
+/* #undef EVENT__HAVE_STRUCT_IN6_ADDR_S6_ADDR32 */
+
+/* Define to 1 if the system has the type `struct sockaddr_in6'. */
+#define EVENT__HAVE_STRUCT_SOCKADDR_IN6
+
+/* Define to 1 if `sin6_len' is member of `struct sockaddr_in6'. */
+/* #undef EVENT__HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN */
+
+/* Define to 1 if `sin_len' is member of `struct sockaddr_in'. */
+/* #undef EVENT__HAVE_STRUCT_SOCKADDR_IN_SIN_LEN */
+
+/* Define to 1 if the system has the type `struct sockaddr_storage'. */
+#define EVENT__HAVE_STRUCT_SOCKADDR_STORAGE
+
+/* Define to 1 if `ss_family' is a member of `struct sockaddr_storage'. */
+#define EVENT__HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
+
+/* Define to 1 if `__ss_family' is a member of `struct sockaddr_storage'. */
+/* #undef EVENT__HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY */
+
+/* Define to 1 if you have the `sysctl' function. */
+/* #undef EVENT__HAVE_SYSCTL */
+
+/* Define to 1 if you have the <sys/devpoll.h> header file. */
+/* #undef EVENT__HAVE_SYS_DEVPOLL_H */
+
+/* Define to 1 if you have the <sys/epoll.h> header file. */
+/* #undef EVENT__HAVE_SYS_EPOLL_H */
+
+/* Define to 1 if you have the <sys/eventfd.h> header file. */
+/* #undef EVENT__HAVE_SYS_EVENTFD_H */
+
+/* Define to 1 if you have the <sys/event.h> header file. */
+/* #undef EVENT__HAVE_SYS_EVENT_H */
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+/* #undef EVENT__HAVE_SYS_IOCTL_H */
+
+/* Define to 1 if you have the <sys/mman.h> header file. */
+/* #undef EVENT__HAVE_SYS_MMAN_H */
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+/* #undef EVENT__HAVE_SYS_PARAM_H */
+
+/* Define to 1 if you have the <sys/queue.h> header file. */
+/* #undef EVENT__HAVE_SYS_QUEUE_H */
+
+/* Define to 1 if you have the <sys/resource.h> header file. */
+/* #undef EVENT__HAVE_SYS_RESOURCE_H */
+
+/* Define to 1 if you have the <sys/select.h> header file. */
+/* #undef EVENT__HAVE_SYS_SELECT_H */
+
+/* Define to 1 if you have the <sys/sendfile.h> header file. */
+/* #undef EVENT__HAVE_SYS_SENDFILE_H */
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+/* #undef EVENT__HAVE_SYS_SOCKET_H */
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define EVENT__HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/sysctl.h> header file. */
+/* #undef EVENT__HAVE_SYS_SYSCTL_H */
+
+/* Define to 1 if you have the <sys/timerfd.h> header file. */
+/* #undef EVENT__HAVE_SYS_TIMERFD_H */
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+/* #undef EVENT__HAVE_SYS_TIME_H */
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define EVENT__HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <sys/uio.h> header file. */
+/* #undef EVENT__HAVE_SYS_UIO_H */
+
+/* Define to 1 if you have the <sys/wait.h> header file. */
+/* #undef EVENT__HAVE_SYS_WAIT_H */
+
+/* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
+/* #undef EVENT__HAVE_TAILQFOREACH */
+
+/* Define if timeradd is defined in <sys/time.h> */
+/* #undef EVENT__HAVE_TIMERADD */
+
+/* Define if timerclear is defined in <sys/time.h> */
+/* #undef EVENT__HAVE_TIMERCLEAR */
+
+/* Define if timercmp is defined in <sys/time.h> */
+/* #undef EVENT__HAVE_TIMERCMP */
+
+/* Define to 1 if you have the `timerfd_create' function. */
+/* #undef EVENT__HAVE_TIMERFD_CREATE */
+
+/* Define if timerisset is defined in <sys/time.h> */
+/* #undef EVENT__HAVE_TIMERISSET */
+
+/* Define to 1 if the system has the type `uint8_t'. */
+#define EVENT__HAVE_UINT8_T
+
+/* Define to 1 if the system has the type `uint16_t'. */
+#define EVENT__HAVE_UINT16_T
+
+/* Define to 1 if the system has the type `uint32_t'. */
+#define EVENT__HAVE_UINT32_T
+
+/* Define to 1 if the system has the type `uint64_t'. */
+#define EVENT__HAVE_UINT64_T
+
+/* Define to 1 if the system has the type `uintptr_t'. */
+#define EVENT__HAVE_UINTPTR_T
+
+/* Define to 1 if you have the `umask' function. */
+/* #undef EVENT__HAVE_UMASK */
+
+/* Define to 1 if you have the <unistd.h> header file. */
+/* #undef EVENT__HAVE_UNISTD_H */
+
+/* Define to 1 if you have the `unsetenv' function. */
+/* #undef EVENT__HAVE_UNSETENV */
+
+/* Define to 1 if you have the `vasprintf' function. */
+/* #undef EVENT__HAVE_VASPRINTF */
+
+/* Define if kqueue works correctly with pipes */
+/* #undef EVENT__HAVE_WORKING_KQUEUE */
+
+#ifdef __USE_UNUSED_DEFINITIONS__
+/* Define to necessary symbol if this constant uses a non-standard name on your system. */
+/* XXX: Hello, this isn't even used, nor is it defined anywhere... - Ellzey */
+#define EVENT__PTHREAD_CREATE_JOINABLE
+#endif
+
+/* The size of `pthread_t', as computed by sizeof. */
+#define EVENT__SIZEOF_PTHREAD_T
+
+/* The size of a `int', as computed by sizeof. */
+#define EVENT__SIZEOF_INT 4
+
+/* The size of a `long', as computed by sizeof. */
+#define EVENT__SIZEOF_LONG 4
+
+/* The size of a `long long', as computed by sizeof. */
+#define EVENT__SIZEOF_LONG_LONG 8
+
+/* The size of `off_t', as computed by sizeof. */
+#define EVENT__SIZEOF_OFF_T 4
+
+#define EVENT__SIZEOF_SSIZE_T
+
+
+/* The size of a `short', as computed by sizeof. */
+#define EVENT__SIZEOF_SHORT 2
+
+/* The size of `size_t', as computed by sizeof. */
+#define EVENT__SIZEOF_SIZE_T 4
+
+/* Define to 1 if you have the ANSI C header files. */
+/* #undef EVENT__STDC_HEADERS */
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+/* #undef EVENT__TIME_WITH_SYS_TIME */
+
+/* The size of `socklen_t', as computed by sizeof. */
+#define EVENT__SIZEOF_SOCKLEN_T 4
+
+/* The size of 'void *', as computer by sizeof */
+#define EVENT__SIZEOF_VOID_P 4
+
+/* set an alias for whatever __func__ __FUNCTION__ is, what sillyness */
+#if defined (__func__)
+#define EVENT____func__ __func__
+#elif defined(__FUNCTION__)
+#define EVENT____func__ __FUNCTION__
+#else
+#define EVENT____func__ __FILE__
+#endif
+
+
+#ifdef __THESE_ARE_NOT_CONFIG_H_THINGS_THEY_ARE_DASH_D_THINGS__
+/* Number of bits in a file offset, on hosts where this is settable. */
+/* Ellzey is not satisfied */
+#define EVENT___FILE_OFFSET_BITS
+
+/* Define for large files, on AIX-style hosts. */
+#define
+#endif
+
+#ifdef _WhAT_DOES_THIS_EVEN_DO_
+/* Define to empty if `const' does not conform to ANSI C. */
+/* lolwut? - ellzey */
+#undef EVENT__const
+#endif
+
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+/* why not c++?
+ *
+ * and are we really expected to use EVENT__inline everywhere,
+ * shouldn't we just do:
+ * ifdef EVENT__inline
+ * define inline EVENT__inline
+ *
+ * - Ellzey
+ */
+
+#define EVENT__inline inline
+#endif
+
+/* Define to `int' if <sys/tyes.h> does not define. */
+#define EVENT__pid_t int
+
+/* Define to `unsigned' if <sys/types.h> does not define. */
+#define EVENT__size_t unsigned
+
+/* Define to unsigned int if you dont have it */
+#define EVENT__socklen_t socklen_t
+
+/* Define to `int' if <sys/types.h> does not define. */
+#define EVENT__ssize_t SSIZE_T
+
+/* #undef EVENT__NEED_DLLIMPORT */
+
+/* Define to 1 if you have ERR_remove_thread_stat(). */
+/* #undef EVENT__HAVE_ERR_REMOVE_THREAD_STATE */
+
+#endif
diff --git a/protocols/Telegram/libevent/include/event2/event.h b/libs/libevent/include/event2/event.h
index 6e0a4f04c7..6e0a4f04c7 100644
--- a/protocols/Telegram/libevent/include/event2/event.h
+++ b/libs/libevent/include/event2/event.h
diff --git a/protocols/Telegram/libevent/include/event2/event_compat.h b/libs/libevent/include/event2/event_compat.h
index 5110175a1b..5110175a1b 100644
--- a/protocols/Telegram/libevent/include/event2/event_compat.h
+++ b/libs/libevent/include/event2/event_compat.h
diff --git a/protocols/Telegram/libevent/include/event2/event_struct.h b/libs/libevent/include/event2/event_struct.h
index 1c8b71b6b0..1c8b71b6b0 100644
--- a/protocols/Telegram/libevent/include/event2/event_struct.h
+++ b/libs/libevent/include/event2/event_struct.h
diff --git a/protocols/Telegram/libevent/include/event2/http.h b/libs/libevent/include/event2/http.h
index e99782073f..e99782073f 100644
--- a/protocols/Telegram/libevent/include/event2/http.h
+++ b/libs/libevent/include/event2/http.h
diff --git a/protocols/Telegram/libevent/include/event2/http_compat.h b/libs/libevent/include/event2/http_compat.h
index 0d9af17f3f..0d9af17f3f 100644
--- a/protocols/Telegram/libevent/include/event2/http_compat.h
+++ b/libs/libevent/include/event2/http_compat.h
diff --git a/protocols/Telegram/libevent/include/event2/http_struct.h b/libs/libevent/include/event2/http_struct.h
index 4bf5b1ff60..4bf5b1ff60 100644
--- a/protocols/Telegram/libevent/include/event2/http_struct.h
+++ b/libs/libevent/include/event2/http_struct.h
diff --git a/protocols/Telegram/libevent/include/event2/keyvalq_struct.h b/libs/libevent/include/event2/keyvalq_struct.h
index bffa54b3a7..bffa54b3a7 100644
--- a/protocols/Telegram/libevent/include/event2/keyvalq_struct.h
+++ b/libs/libevent/include/event2/keyvalq_struct.h
diff --git a/protocols/Telegram/libevent/include/event2/listener.h b/libs/libevent/include/event2/listener.h
index 84b4da055d..84b4da055d 100644
--- a/protocols/Telegram/libevent/include/event2/listener.h
+++ b/libs/libevent/include/event2/listener.h
diff --git a/protocols/Telegram/libevent/include/event2/rpc.h b/libs/libevent/include/event2/rpc.h
index dd43df266a..dd43df266a 100644
--- a/protocols/Telegram/libevent/include/event2/rpc.h
+++ b/libs/libevent/include/event2/rpc.h
diff --git a/protocols/Telegram/libevent/include/event2/rpc_compat.h b/libs/libevent/include/event2/rpc_compat.h
index 8d8334d25f..8d8334d25f 100644
--- a/protocols/Telegram/libevent/include/event2/rpc_compat.h
+++ b/libs/libevent/include/event2/rpc_compat.h
diff --git a/protocols/Telegram/libevent/include/event2/rpc_struct.h b/libs/libevent/include/event2/rpc_struct.h
index 8f691f49fb..8f691f49fb 100644
--- a/protocols/Telegram/libevent/include/event2/rpc_struct.h
+++ b/libs/libevent/include/event2/rpc_struct.h
diff --git a/protocols/Telegram/libevent/include/event2/tag.h b/libs/libevent/include/event2/tag.h
index 2f73bfc00e..2f73bfc00e 100644
--- a/protocols/Telegram/libevent/include/event2/tag.h
+++ b/libs/libevent/include/event2/tag.h
diff --git a/protocols/Telegram/libevent/include/event2/tag_compat.h b/libs/libevent/include/event2/tag_compat.h
index a276c0d35b..a276c0d35b 100644
--- a/protocols/Telegram/libevent/include/event2/tag_compat.h
+++ b/libs/libevent/include/event2/tag_compat.h
diff --git a/protocols/Telegram/libevent/include/event2/thread.h b/libs/libevent/include/event2/thread.h
index b51998631b..b51998631b 100644
--- a/protocols/Telegram/libevent/include/event2/thread.h
+++ b/libs/libevent/include/event2/thread.h
diff --git a/protocols/Telegram/libevent/include/event2/util.h b/libs/libevent/include/event2/util.h
index 3936786ec9..3936786ec9 100644
--- a/protocols/Telegram/libevent/include/event2/util.h
+++ b/libs/libevent/include/event2/util.h
diff --git a/protocols/Telegram/libevent/include/event2/visibility.h b/libs/libevent/include/event2/visibility.h
index fb16dbeedd..fb16dbeedd 100644
--- a/protocols/Telegram/libevent/include/event2/visibility.h
+++ b/libs/libevent/include/event2/visibility.h
diff --git a/protocols/Telegram/libevent/include/evhttp.h b/libs/libevent/include/evhttp.h
index 549bc9b14a..549bc9b14a 100644
--- a/protocols/Telegram/libevent/include/evhttp.h
+++ b/libs/libevent/include/evhttp.h
diff --git a/protocols/Telegram/libevent/include/evrpc.h b/libs/libevent/include/evrpc.h
index 7e986f7dab..7e986f7dab 100644
--- a/protocols/Telegram/libevent/include/evrpc.h
+++ b/libs/libevent/include/evrpc.h
diff --git a/protocols/Telegram/libevent/include/evutil.h b/libs/libevent/include/evutil.h
index 12c137d745..12c137d745 100644
--- a/protocols/Telegram/libevent/include/evutil.h
+++ b/libs/libevent/include/evutil.h
diff --git a/protocols/Telegram/libevent/include/include.am b/libs/libevent/include/include.am
index 9aad2dba4a..9aad2dba4a 100644
--- a/protocols/Telegram/libevent/include/include.am
+++ b/libs/libevent/include/include.am
diff --git a/libs/libevent/libevent_12.vcxproj b/libs/libevent/libevent_12.vcxproj
new file mode 100644
index 0000000000..11876a5aa9
--- /dev/null
+++ b/libs/libevent/libevent_12.vcxproj
@@ -0,0 +1,212 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGUID>{46D53888-E60E-32A7-91EB-6336DE0D84D8}</ProjectGUID>
+ <ProjectName>libevent</ProjectName>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <PlatformToolset>v120_xp</PlatformToolset>
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <PlatformToolset>v120_xp</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <PlatformToolset>v120_xp</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <PlatformToolset>v120_xp</PlatformToolset>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup>
+ <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)\$(Configuration)\Libs\</OutDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)\$(Configuration)64\Libs\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)\$(Configuration)\Obj\$(ProjectName)\</IntDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)\$(Configuration)64\Obj\$(ProjectName)\</IntDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)\$(Configuration)\Libs\</OutDir>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)\$(Configuration)64\Libs\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)\$(Configuration)\Obj\$(ProjectName)\</IntDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)\$(Configuration)64\Obj\$(ProjectName)\</IntDir>
+ <IgnoreImportLibrary>true</IgnoreImportLibrary>
+ </PropertyGroup>
+ <PropertyGroup>
+ <TargetExt>.mir</TargetExt>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <AdditionalIncludeDirectories>include;src\compat;..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <Optimization>Disabled</Optimization>
+ <WarningLevel>Level3</WarningLevel>
+ <PreprocessorDefinitions>_WINDOWS;_DEBUG;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <AdditionalDependencies>ws2_32.lib;libeay32.lib;ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalLibraryDirectories>..\win32</AdditionalLibraryDirectories>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <AdditionalIncludeDirectories>include;src\compat;..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <Optimization>Full</Optimization>
+ <WarningLevel>Level3</WarningLevel>
+ <PreprocessorDefinitions>_WINDOWS;NDEBUG;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Link>
+ <AdditionalDependencies>ws2_32.lib;libeay32.lib;ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalLibraryDirectories>..\win32</AdditionalLibraryDirectories>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ <OptimizeReferences>true</OptimizeReferences>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <AdditionalIncludeDirectories>include;src\compat;..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <Optimization>Disabled</Optimization>
+ <WarningLevel>Level3</WarningLevel>
+ <PreprocessorDefinitions>_WINDOWS;_DEBUG;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+ </ClCompile>
+ <Link>
+ <AdditionalDependencies>ws2_32.lib;libeay32.lib;ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalLibraryDirectories>..\win64</AdditionalLibraryDirectories>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <AdditionalIncludeDirectories>include;src\compat;..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <Optimization>Full</Optimization>
+ <WarningLevel>Level3</WarningLevel>
+ <PreprocessorDefinitions>_WINDOWS;NDEBUG;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ <Link>
+ <AdditionalDependencies>ws2_32.lib;libeay32.lib;ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalLibraryDirectories>..\win64</AdditionalLibraryDirectories>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <SubSystem>Windows</SubSystem>
+ <OptimizeReferences>true</OptimizeReferences>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClInclude Include="src\bufferevent-internal.h" />
+ <ClInclude Include="src\changelist-internal.h" />
+ <ClInclude Include="src\defer-internal.h" />
+ <ClInclude Include="src\epolltable-internal.h" />
+ <ClInclude Include="src\evbuffer-internal.h" />
+ <ClInclude Include="src\event-internal.h" />
+ <ClInclude Include="src\evmap-internal.h" />
+ <ClInclude Include="src\evrpc-internal.h" />
+ <ClInclude Include="src\evsignal-internal.h" />
+ <ClInclude Include="src\evthread-internal.h" />
+ <ClInclude Include="src\ht-internal.h" />
+ <ClInclude Include="src\http-internal.h" />
+ <ClInclude Include="src\iocp-internal.h" />
+ <ClInclude Include="src\ipv6-internal.h" />
+ <ClInclude Include="src\log-internal.h" />
+ <ClInclude Include="src\minheap-internal.h" />
+ <ClInclude Include="src\mm-internal.h" />
+ <ClInclude Include="src\ratelim-internal.h" />
+ <ClInclude Include="src\strlcpy-internal.h" />
+ <ClInclude Include="src\util-internal.h" />
+ <ClInclude Include="src\compat\sys\queue.h" />
+ <ClInclude Include="src\WIN32-Code\getopt.h" />
+ <ClInclude Include="include\evdns.h" />
+ <ClInclude Include="include\evrpc.h" />
+ <ClInclude Include="include\event.h" />
+ <ClInclude Include="include\evhttp.h" />
+ <ClInclude Include="include\evutil.h" />
+ <ClInclude Include="include\event2\buffer.h" />
+ <ClInclude Include="include\event2\bufferevent.h" />
+ <ClInclude Include="include\event2\bufferevent_compat.h" />
+ <ClInclude Include="include\event2\bufferevent_struct.h" />
+ <ClInclude Include="include\event2\buffer_compat.h" />
+ <ClInclude Include="include\event2\dns.h" />
+ <ClInclude Include="include\event2\dns_compat.h" />
+ <ClInclude Include="include\event2\dns_struct.h" />
+ <ClInclude Include="include\event2\event.h" />
+ <ClInclude Include="include\event2\event_compat.h" />
+ <ClInclude Include="include\event2\event_struct.h" />
+ <ClInclude Include="include\event2\http.h" />
+ <ClInclude Include="include\event2\http_compat.h" />
+ <ClInclude Include="include\event2\http_struct.h" />
+ <ClInclude Include="include\event2\keyvalq_struct.h" />
+ <ClInclude Include="include\event2\listener.h" />
+ <ClInclude Include="include\event2\rpc.h" />
+ <ClInclude Include="include\event2\rpc_compat.h" />
+ <ClInclude Include="include\event2\rpc_struct.h" />
+ <ClInclude Include="include\event2\tag.h" />
+ <ClInclude Include="include\event2\tag_compat.h" />
+ <ClInclude Include="include\event2\thread.h" />
+ <ClInclude Include="include\event2\util.h" />
+ <ClInclude Include="include\event2\visibility.h" />
+ <ClInclude Include="include\event2\event-config.h" />
+ <ClInclude Include="include\event2\bufferevent_ssl.h" />
+ <ClCompile Include="src\buffer.c" />
+ <ClCompile Include="src\bufferevent.c" />
+ <ClCompile Include="src\bufferevent_filter.c" />
+ <ClCompile Include="src\bufferevent_pair.c" />
+ <ClCompile Include="src\bufferevent_ratelim.c" />
+ <ClCompile Include="src\bufferevent_sock.c" />
+ <ClCompile Include="src\event.c" />
+ <ClCompile Include="src\evmap.c" />
+ <ClCompile Include="src\evthread.c" />
+ <ClCompile Include="src\evutil.c" />
+ <ClCompile Include="src\evutil_rand.c" />
+ <ClCompile Include="src\evutil_time.c" />
+ <ClCompile Include="src\listener.c" />
+ <ClCompile Include="src\log.c" />
+ <ClCompile Include="src\signal.c" />
+ <ClCompile Include="src\strlcpy.c" />
+ <ClCompile Include="src\bufferevent_openssl.c" />
+ <ClCompile Include="src\evthread_win32.c" />
+ <ClCompile Include="src\buffer_iocp.c" />
+ <ClCompile Include="src\bufferevent_async.c" />
+ <ClCompile Include="src\event_iocp.c" />
+ <ClCompile Include="src\win32select.c" />
+ <ClCompile Include="src\event_tagging.c" />
+ <ClCompile Include="src\http.c" />
+ <ClCompile Include="src\evdns.c" />
+ <ClCompile Include="src\evrpc.c" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project> \ No newline at end of file
diff --git a/libs/libevent/libevent_12.vcxproj.filters b/libs/libevent/libevent_12.vcxproj.filters
new file mode 100644
index 0000000000..52a3297f3a
--- /dev/null
+++ b/libs/libevent/libevent_12.vcxproj.filters
@@ -0,0 +1,264 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <ClCompile Include="src\buffer.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\bufferevent.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\bufferevent_filter.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\bufferevent_pair.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\bufferevent_ratelim.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\bufferevent_sock.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\event.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\evmap.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\evthread.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\evutil.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\evutil_rand.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\evutil_time.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\listener.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\log.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\signal.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\strlcpy.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\bufferevent_openssl.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\evthread_win32.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\buffer_iocp.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\bufferevent_async.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\event_iocp.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\win32select.c">
+ <Filter>Source Core</Filter>
+ </ClCompile>
+ <ClCompile Include="src\event_tagging.c">
+ <Filter>Source Extra</Filter>
+ </ClCompile>
+ <ClCompile Include="src\http.c">
+ <Filter>Source Extra</Filter>
+ </ClCompile>
+ <ClCompile Include="src\evdns.c">
+ <Filter>Source Extra</Filter>
+ </ClCompile>
+ <ClCompile Include="src\evrpc.c">
+ <Filter>Source Extra</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="src\bufferevent-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\changelist-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\defer-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\epolltable-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\evbuffer-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\event-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\evmap-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\evrpc-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\evsignal-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\evthread-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\ht-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\http-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\iocp-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\ipv6-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\log-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\minheap-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\mm-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\ratelim-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\strlcpy-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\util-internal.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\compat\sys\queue.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="src\WIN32-Code\getopt.h">
+ <Filter>Headers Private</Filter>
+ </ClInclude>
+ <ClInclude Include="include\evdns.h">
+ <Filter>Header Compat</Filter>
+ </ClInclude>
+ <ClInclude Include="include\evrpc.h">
+ <Filter>Header Compat</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event.h">
+ <Filter>Header Compat</Filter>
+ </ClInclude>
+ <ClInclude Include="include\evhttp.h">
+ <Filter>Header Compat</Filter>
+ </ClInclude>
+ <ClInclude Include="include\evutil.h">
+ <Filter>Header Compat</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\buffer.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\bufferevent.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\bufferevent_compat.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\bufferevent_struct.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\buffer_compat.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\dns.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\dns_compat.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\dns_struct.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\event.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\event_compat.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\event_struct.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\http.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\http_compat.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\http_struct.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\keyvalq_struct.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\listener.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\rpc.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\rpc_compat.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\rpc_struct.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\tag.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\tag_compat.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\thread.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\util.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\visibility.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\event-config.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ <ClInclude Include="include\event2\bufferevent_ssl.h">
+ <Filter>Headers Public</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <Filter Include="Header Files">
+ <UniqueIdentifier>{918036C9-880E-383E-A0A0-E2F1133C4BF0}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Headers Private">
+ <UniqueIdentifier>{403FD3F2-243C-3501-846D-EC6DB43B0865}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Header Compat">
+ <UniqueIdentifier>{6259BD7B-787D-3652-9A11-0698644E1128}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Headers Public">
+ <UniqueIdentifier>{D8BDFFA3-4BC2-3E42-BC8E-450D2147C8CA}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Source Core">
+ <UniqueIdentifier>{70C5E5A7-1F69-39E0-8BF9-5F35EFB07481}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Source Extra">
+ <UniqueIdentifier>{D7733A27-70AE-358A-911E-F7687E9FECFF}</UniqueIdentifier>
+ </Filter>
+ </ItemGroup>
+</Project>
diff --git a/protocols/Telegram/libevent/WIN32-Code/getopt.c b/libs/libevent/src/WIN32-Code/getopt.c
index 0fcba5d915..0fcba5d915 100644
--- a/protocols/Telegram/libevent/WIN32-Code/getopt.c
+++ b/libs/libevent/src/WIN32-Code/getopt.c
diff --git a/protocols/Telegram/libevent/WIN32-Code/getopt.h b/libs/libevent/src/WIN32-Code/getopt.h
index 796f455050..796f455050 100644
--- a/protocols/Telegram/libevent/WIN32-Code/getopt.h
+++ b/libs/libevent/src/WIN32-Code/getopt.h
diff --git a/protocols/Telegram/libevent/WIN32-Code/getopt_long.c b/libs/libevent/src/WIN32-Code/getopt_long.c
index 03f0c01a15..03f0c01a15 100644
--- a/protocols/Telegram/libevent/WIN32-Code/getopt_long.c
+++ b/libs/libevent/src/WIN32-Code/getopt_long.c
diff --git a/protocols/Telegram/libevent/WIN32-Code/nmake/evconfig-private.h b/libs/libevent/src/WIN32-Code/nmake/evconfig-private.h
index 88e206272b..88e206272b 100644
--- a/protocols/Telegram/libevent/WIN32-Code/nmake/evconfig-private.h
+++ b/libs/libevent/src/WIN32-Code/nmake/evconfig-private.h
diff --git a/protocols/Telegram/libevent/WIN32-Code/nmake/event2/event-config.h b/libs/libevent/src/WIN32-Code/nmake/event2/event-config.h
index 8cbf190289..8cbf190289 100644
--- a/protocols/Telegram/libevent/WIN32-Code/nmake/event2/event-config.h
+++ b/libs/libevent/src/WIN32-Code/nmake/event2/event-config.h
diff --git a/protocols/Telegram/libevent/WIN32-Code/tree.h b/libs/libevent/src/WIN32-Code/tree.h
index 2ccfbf20ac..2ccfbf20ac 100644
--- a/protocols/Telegram/libevent/WIN32-Code/tree.h
+++ b/libs/libevent/src/WIN32-Code/tree.h
diff --git a/protocols/Telegram/libevent/arc4random.c b/libs/libevent/src/arc4random.c
index a2338e692a..a2338e692a 100644
--- a/protocols/Telegram/libevent/arc4random.c
+++ b/libs/libevent/src/arc4random.c
diff --git a/protocols/Telegram/libevent/buffer.c b/libs/libevent/src/buffer.c
index 7cca0e8a7d..7cca0e8a7d 100644
--- a/protocols/Telegram/libevent/buffer.c
+++ b/libs/libevent/src/buffer.c
diff --git a/protocols/Telegram/libevent/buffer_iocp.c b/libs/libevent/src/buffer_iocp.c
index 2d76a90e77..2d76a90e77 100644
--- a/protocols/Telegram/libevent/buffer_iocp.c
+++ b/libs/libevent/src/buffer_iocp.c
diff --git a/protocols/Telegram/libevent/bufferevent-internal.h b/libs/libevent/src/bufferevent-internal.h
index d9d9e66640..d9d9e66640 100644
--- a/protocols/Telegram/libevent/bufferevent-internal.h
+++ b/libs/libevent/src/bufferevent-internal.h
diff --git a/protocols/Telegram/libevent/bufferevent.c b/libs/libevent/src/bufferevent.c
index 59ae24f143..59ae24f143 100644
--- a/protocols/Telegram/libevent/bufferevent.c
+++ b/libs/libevent/src/bufferevent.c
diff --git a/protocols/Telegram/libevent/bufferevent_async.c b/libs/libevent/src/bufferevent_async.c
index 6395e57a9f..6395e57a9f 100644
--- a/protocols/Telegram/libevent/bufferevent_async.c
+++ b/libs/libevent/src/bufferevent_async.c
diff --git a/protocols/Telegram/libevent/bufferevent_filter.c b/libs/libevent/src/bufferevent_filter.c
index 6c3ffc4f2d..6c3ffc4f2d 100644
--- a/protocols/Telegram/libevent/bufferevent_filter.c
+++ b/libs/libevent/src/bufferevent_filter.c
diff --git a/protocols/Telegram/libevent/bufferevent_openssl.c b/libs/libevent/src/bufferevent_openssl.c
index 37478b6a83..37478b6a83 100644
--- a/protocols/Telegram/libevent/bufferevent_openssl.c
+++ b/libs/libevent/src/bufferevent_openssl.c
diff --git a/protocols/Telegram/libevent/bufferevent_pair.c b/libs/libevent/src/bufferevent_pair.c
index d80e5f81d6..d80e5f81d6 100644
--- a/protocols/Telegram/libevent/bufferevent_pair.c
+++ b/libs/libevent/src/bufferevent_pair.c
diff --git a/protocols/Telegram/libevent/bufferevent_ratelim.c b/libs/libevent/src/bufferevent_ratelim.c
index bde192021b..bde192021b 100644
--- a/protocols/Telegram/libevent/bufferevent_ratelim.c
+++ b/libs/libevent/src/bufferevent_ratelim.c
diff --git a/protocols/Telegram/libevent/bufferevent_sock.c b/libs/libevent/src/bufferevent_sock.c
index a2b381ac4d..a2b381ac4d 100644
--- a/protocols/Telegram/libevent/bufferevent_sock.c
+++ b/libs/libevent/src/bufferevent_sock.c
diff --git a/protocols/Telegram/libevent/changelist-internal.h b/libs/libevent/src/changelist-internal.h
index 98fc52aebf..98fc52aebf 100644
--- a/protocols/Telegram/libevent/changelist-internal.h
+++ b/libs/libevent/src/changelist-internal.h
diff --git a/protocols/Telegram/libevent/compat/sys/queue.h b/libs/libevent/src/compat/sys/queue.h
index c387bdcf50..c387bdcf50 100644
--- a/protocols/Telegram/libevent/compat/sys/queue.h
+++ b/libs/libevent/src/compat/sys/queue.h
diff --git a/protocols/Telegram/libevent/defer-internal.h b/libs/libevent/src/defer-internal.h
index e3c7d7da5b..e3c7d7da5b 100644
--- a/protocols/Telegram/libevent/defer-internal.h
+++ b/libs/libevent/src/defer-internal.h
diff --git a/protocols/Telegram/libevent/epolltable-internal.h b/libs/libevent/src/epolltable-internal.h
index da30e0973a..da30e0973a 100644
--- a/protocols/Telegram/libevent/epolltable-internal.h
+++ b/libs/libevent/src/epolltable-internal.h
diff --git a/protocols/Telegram/libevent/evbuffer-internal.h b/libs/libevent/src/evbuffer-internal.h
index cf4bddc80e..cf4bddc80e 100644
--- a/protocols/Telegram/libevent/evbuffer-internal.h
+++ b/libs/libevent/src/evbuffer-internal.h
diff --git a/protocols/Telegram/libevent/evdns.c b/libs/libevent/src/evdns.c
index c4112330a9..c4112330a9 100644
--- a/protocols/Telegram/libevent/evdns.c
+++ b/libs/libevent/src/evdns.c
diff --git a/protocols/Telegram/libevent/event-internal.h b/libs/libevent/src/event-internal.h
index 66dcfc329c..66dcfc329c 100644
--- a/protocols/Telegram/libevent/event-internal.h
+++ b/libs/libevent/src/event-internal.h
diff --git a/protocols/Telegram/libevent/event.c b/libs/libevent/src/event.c
index 503003e249..503003e249 100644
--- a/protocols/Telegram/libevent/event.c
+++ b/libs/libevent/src/event.c
diff --git a/protocols/Telegram/libevent/event_iocp.c b/libs/libevent/src/event_iocp.c
index a9902fbc42..a9902fbc42 100644
--- a/protocols/Telegram/libevent/event_iocp.c
+++ b/libs/libevent/src/event_iocp.c
diff --git a/protocols/Telegram/libevent/event_tagging.c b/libs/libevent/src/event_tagging.c
index 6459dfa72e..6459dfa72e 100644
--- a/protocols/Telegram/libevent/event_tagging.c
+++ b/libs/libevent/src/event_tagging.c
diff --git a/protocols/Telegram/libevent/evmap-internal.h b/libs/libevent/src/evmap-internal.h
index dfc81d5087..dfc81d5087 100644
--- a/protocols/Telegram/libevent/evmap-internal.h
+++ b/libs/libevent/src/evmap-internal.h
diff --git a/protocols/Telegram/libevent/evmap.c b/libs/libevent/src/evmap.c
index 3f76dd0ae1..3f76dd0ae1 100644
--- a/protocols/Telegram/libevent/evmap.c
+++ b/libs/libevent/src/evmap.c
diff --git a/protocols/Telegram/libevent/evrpc-internal.h b/libs/libevent/src/evrpc-internal.h
index 9eb376386d..9eb376386d 100644
--- a/protocols/Telegram/libevent/evrpc-internal.h
+++ b/libs/libevent/src/evrpc-internal.h
diff --git a/protocols/Telegram/libevent/evrpc.c b/libs/libevent/src/evrpc.c
index 2443ab2793..2443ab2793 100644
--- a/protocols/Telegram/libevent/evrpc.c
+++ b/libs/libevent/src/evrpc.c
diff --git a/protocols/Telegram/libevent/evsignal-internal.h b/libs/libevent/src/evsignal-internal.h
index 5cff03b525..5cff03b525 100644
--- a/protocols/Telegram/libevent/evsignal-internal.h
+++ b/libs/libevent/src/evsignal-internal.h
diff --git a/protocols/Telegram/libevent/evthread-internal.h b/libs/libevent/src/evthread-internal.h
index efdecf81e7..efdecf81e7 100644
--- a/protocols/Telegram/libevent/evthread-internal.h
+++ b/libs/libevent/src/evthread-internal.h
diff --git a/protocols/Telegram/libevent/evthread.c b/libs/libevent/src/evthread.c
index f3f1eddc89..f3f1eddc89 100644
--- a/protocols/Telegram/libevent/evthread.c
+++ b/libs/libevent/src/evthread.c
diff --git a/protocols/Telegram/libevent/evthread_win32.c b/libs/libevent/src/evthread_win32.c
index 2ec80560a5..2ec80560a5 100644
--- a/protocols/Telegram/libevent/evthread_win32.c
+++ b/libs/libevent/src/evthread_win32.c
diff --git a/protocols/Telegram/libevent/evutil.c b/libs/libevent/src/evutil.c
index 495bfcc029..495bfcc029 100644
--- a/protocols/Telegram/libevent/evutil.c
+++ b/libs/libevent/src/evutil.c
diff --git a/protocols/Telegram/libevent/evutil_rand.c b/libs/libevent/src/evutil_rand.c
index 046a14b07a..046a14b07a 100644
--- a/protocols/Telegram/libevent/evutil_rand.c
+++ b/libs/libevent/src/evutil_rand.c
diff --git a/protocols/Telegram/libevent/evutil_time.c b/libs/libevent/src/evutil_time.c
index 8f53c66b68..8f53c66b68 100644
--- a/protocols/Telegram/libevent/evutil_time.c
+++ b/libs/libevent/src/evutil_time.c
diff --git a/protocols/Telegram/libevent/ht-internal.h b/libs/libevent/src/ht-internal.h
index 50375bbaa9..50375bbaa9 100644
--- a/protocols/Telegram/libevent/ht-internal.h
+++ b/libs/libevent/src/ht-internal.h
diff --git a/protocols/Telegram/libevent/http-internal.h b/libs/libevent/src/http-internal.h
index ba6e49ef9b..ba6e49ef9b 100644
--- a/protocols/Telegram/libevent/http-internal.h
+++ b/libs/libevent/src/http-internal.h
diff --git a/protocols/Telegram/libevent/http.c b/libs/libevent/src/http.c
index fd7ce3cbf2..fd7ce3cbf2 100644
--- a/protocols/Telegram/libevent/http.c
+++ b/libs/libevent/src/http.c
diff --git a/protocols/Telegram/libevent/iocp-internal.h b/libs/libevent/src/iocp-internal.h
index 93dbe2b1a4..93dbe2b1a4 100644
--- a/protocols/Telegram/libevent/iocp-internal.h
+++ b/libs/libevent/src/iocp-internal.h
diff --git a/protocols/Telegram/libevent/ipv6-internal.h b/libs/libevent/src/ipv6-internal.h
index 0c207377b8..0c207377b8 100644
--- a/protocols/Telegram/libevent/ipv6-internal.h
+++ b/libs/libevent/src/ipv6-internal.h
diff --git a/protocols/Telegram/libevent/listener.c b/libs/libevent/src/listener.c
index 2af14e3a7b..2af14e3a7b 100644
--- a/protocols/Telegram/libevent/listener.c
+++ b/libs/libevent/src/listener.c
diff --git a/protocols/Telegram/libevent/log-internal.h b/libs/libevent/src/log-internal.h
index 330478a9ed..330478a9ed 100644
--- a/protocols/Telegram/libevent/log-internal.h
+++ b/libs/libevent/src/log-internal.h
diff --git a/protocols/Telegram/libevent/log.c b/libs/libevent/src/log.c
index e8ae9fdc31..e8ae9fdc31 100644
--- a/protocols/Telegram/libevent/log.c
+++ b/libs/libevent/src/log.c
diff --git a/protocols/Telegram/libevent/minheap-internal.h b/libs/libevent/src/minheap-internal.h
index b3b6f1fd49..b3b6f1fd49 100644
--- a/protocols/Telegram/libevent/minheap-internal.h
+++ b/libs/libevent/src/minheap-internal.h
diff --git a/protocols/Telegram/libevent/mm-internal.h b/libs/libevent/src/mm-internal.h
index 4ba6fce4ad..4ba6fce4ad 100644
--- a/protocols/Telegram/libevent/mm-internal.h
+++ b/libs/libevent/src/mm-internal.h
diff --git a/protocols/Telegram/libevent/ratelim-internal.h b/libs/libevent/src/ratelim-internal.h
index 6cc1cdde2c..6cc1cdde2c 100644
--- a/protocols/Telegram/libevent/ratelim-internal.h
+++ b/libs/libevent/src/ratelim-internal.h
diff --git a/protocols/Telegram/libevent/signal.c b/libs/libevent/src/signal.c
index 3f46295024..3f46295024 100644
--- a/protocols/Telegram/libevent/signal.c
+++ b/libs/libevent/src/signal.c
diff --git a/protocols/Telegram/libevent/strlcpy-internal.h b/libs/libevent/src/strlcpy-internal.h
index cfc27ec662..cfc27ec662 100644
--- a/protocols/Telegram/libevent/strlcpy-internal.h
+++ b/libs/libevent/src/strlcpy-internal.h
diff --git a/protocols/Telegram/libevent/strlcpy.c b/libs/libevent/src/strlcpy.c
index 3876475f5a..3876475f5a 100644
--- a/protocols/Telegram/libevent/strlcpy.c
+++ b/libs/libevent/src/strlcpy.c
diff --git a/protocols/Telegram/libevent/time-internal.h b/libs/libevent/src/time-internal.h
index 2c584fa752..2c584fa752 100644
--- a/protocols/Telegram/libevent/time-internal.h
+++ b/libs/libevent/src/time-internal.h
diff --git a/protocols/Telegram/libevent/util-internal.h b/libs/libevent/src/util-internal.h
index 06aa97299a..a6318f2890 100644
--- a/protocols/Telegram/libevent/util-internal.h
+++ b/libs/libevent/src/util-internal.h
@@ -52,7 +52,13 @@ extern "C" {
/* If we need magic to say "inline", get it for free internally. */
#ifdef EVENT__inline
+#if(_MSC_VER < 1900)
+#define inline __inline
+#else
#define inline EVENT__inline
+#endif
+
+
#endif
#ifdef EVENT____func__
#define __func__ EVENT____func__
diff --git a/protocols/Telegram/libevent/win32select.c b/libs/libevent/src/win32select.c
index 1766858c2c..1766858c2c 100644
--- a/protocols/Telegram/libevent/win32select.c
+++ b/libs/libevent/src/win32select.c
diff --git a/protocols/Telegram/libevent/buffer.obj b/protocols/Telegram/libevent/buffer.obj
deleted file mode 100644
index 231994448e..0000000000
--- a/protocols/Telegram/libevent/buffer.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/buffer_iocp.obj b/protocols/Telegram/libevent/buffer_iocp.obj
deleted file mode 100644
index 0fe943a60a..0000000000
--- a/protocols/Telegram/libevent/buffer_iocp.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/bufferevent.obj b/protocols/Telegram/libevent/bufferevent.obj
deleted file mode 100644
index ae232c3748..0000000000
--- a/protocols/Telegram/libevent/bufferevent.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/bufferevent_async.obj b/protocols/Telegram/libevent/bufferevent_async.obj
deleted file mode 100644
index 2318267d42..0000000000
--- a/protocols/Telegram/libevent/bufferevent_async.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/bufferevent_filter.obj b/protocols/Telegram/libevent/bufferevent_filter.obj
deleted file mode 100644
index b9e202e3cf..0000000000
--- a/protocols/Telegram/libevent/bufferevent_filter.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/bufferevent_pair.obj b/protocols/Telegram/libevent/bufferevent_pair.obj
deleted file mode 100644
index 99d0ab332c..0000000000
--- a/protocols/Telegram/libevent/bufferevent_pair.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/bufferevent_ratelim.obj b/protocols/Telegram/libevent/bufferevent_ratelim.obj
deleted file mode 100644
index 1e481e49f1..0000000000
--- a/protocols/Telegram/libevent/bufferevent_ratelim.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/bufferevent_sock.obj b/protocols/Telegram/libevent/bufferevent_sock.obj
deleted file mode 100644
index f7d3083037..0000000000
--- a/protocols/Telegram/libevent/bufferevent_sock.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/evdns.obj b/protocols/Telegram/libevent/evdns.obj
deleted file mode 100644
index 354cf6a3da..0000000000
--- a/protocols/Telegram/libevent/evdns.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/event.obj b/protocols/Telegram/libevent/event.obj
deleted file mode 100644
index dfc99f232e..0000000000
--- a/protocols/Telegram/libevent/event.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/event_iocp.obj b/protocols/Telegram/libevent/event_iocp.obj
deleted file mode 100644
index 3a32d6e6cd..0000000000
--- a/protocols/Telegram/libevent/event_iocp.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/event_tagging.obj b/protocols/Telegram/libevent/event_tagging.obj
deleted file mode 100644
index 920a698e34..0000000000
--- a/protocols/Telegram/libevent/event_tagging.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/evmap.obj b/protocols/Telegram/libevent/evmap.obj
deleted file mode 100644
index 7b16cf4a94..0000000000
--- a/protocols/Telegram/libevent/evmap.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/evrpc.obj b/protocols/Telegram/libevent/evrpc.obj
deleted file mode 100644
index 4733bf298b..0000000000
--- a/protocols/Telegram/libevent/evrpc.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/evthread.obj b/protocols/Telegram/libevent/evthread.obj
deleted file mode 100644
index e956cc88ae..0000000000
--- a/protocols/Telegram/libevent/evthread.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/evthread_win32.obj b/protocols/Telegram/libevent/evthread_win32.obj
deleted file mode 100644
index f50cf71184..0000000000
--- a/protocols/Telegram/libevent/evthread_win32.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/evutil.obj b/protocols/Telegram/libevent/evutil.obj
deleted file mode 100644
index 6beedbadef..0000000000
--- a/protocols/Telegram/libevent/evutil.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/evutil_rand.obj b/protocols/Telegram/libevent/evutil_rand.obj
deleted file mode 100644
index 576e3d79a1..0000000000
--- a/protocols/Telegram/libevent/evutil_rand.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/evutil_time.obj b/protocols/Telegram/libevent/evutil_time.obj
deleted file mode 100644
index 3b4a859019..0000000000
--- a/protocols/Telegram/libevent/evutil_time.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/http.obj b/protocols/Telegram/libevent/http.obj
deleted file mode 100644
index 203f779154..0000000000
--- a/protocols/Telegram/libevent/http.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/libevent.lib b/protocols/Telegram/libevent/libevent.lib
deleted file mode 100644
index c1beefd6af..0000000000
--- a/protocols/Telegram/libevent/libevent.lib
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/libevent_core.lib b/protocols/Telegram/libevent/libevent_core.lib
deleted file mode 100644
index 36bcb0e417..0000000000
--- a/protocols/Telegram/libevent/libevent_core.lib
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/libevent_extras.lib b/protocols/Telegram/libevent/libevent_extras.lib
deleted file mode 100644
index 44f6619eaf..0000000000
--- a/protocols/Telegram/libevent/libevent_extras.lib
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/listener.obj b/protocols/Telegram/libevent/listener.obj
deleted file mode 100644
index 5791e090eb..0000000000
--- a/protocols/Telegram/libevent/listener.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/log.obj b/protocols/Telegram/libevent/log.obj
deleted file mode 100644
index 4a0dff73c4..0000000000
--- a/protocols/Telegram/libevent/log.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/signal.obj b/protocols/Telegram/libevent/signal.obj
deleted file mode 100644
index 97a9c944b5..0000000000
--- a/protocols/Telegram/libevent/signal.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/strlcpy.obj b/protocols/Telegram/libevent/strlcpy.obj
deleted file mode 100644
index 2bc0f36f3e..0000000000
--- a/protocols/Telegram/libevent/strlcpy.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/print-winsock-errors.exe b/protocols/Telegram/libevent/test/print-winsock-errors.exe
deleted file mode 100644
index 7bdbd19034..0000000000
--- a/protocols/Telegram/libevent/test/print-winsock-errors.exe
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/print-winsock-errors.obj b/protocols/Telegram/libevent/test/print-winsock-errors.obj
deleted file mode 100644
index ca803f6340..0000000000
--- a/protocols/Telegram/libevent/test/print-winsock-errors.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress.exe b/protocols/Telegram/libevent/test/regress.exe
deleted file mode 100644
index 651b62c564..0000000000
--- a/protocols/Telegram/libevent/test/regress.exe
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress.gen.c b/protocols/Telegram/libevent/test/regress.gen.c
deleted file mode 100644
index 2cf8925e9a..0000000000
--- a/protocols/Telegram/libevent/test/regress.gen.c
+++ /dev/null
@@ -1 +0,0 @@
-//
diff --git a/protocols/Telegram/libevent/test/regress.gen.h b/protocols/Telegram/libevent/test/regress.gen.h
deleted file mode 100644
index 4578e5f7f3..0000000000
--- a/protocols/Telegram/libevent/test/regress.gen.h
+++ /dev/null
@@ -1 +0,0 @@
-#define NO_PYTHON_EXISTS
diff --git a/protocols/Telegram/libevent/test/regress.gen.obj b/protocols/Telegram/libevent/test/regress.gen.obj
deleted file mode 100644
index ba20c4cca8..0000000000
--- a/protocols/Telegram/libevent/test/regress.gen.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress.obj b/protocols/Telegram/libevent/test/regress.obj
deleted file mode 100644
index b3832b8411..0000000000
--- a/protocols/Telegram/libevent/test/regress.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_buffer.obj b/protocols/Telegram/libevent/test/regress_buffer.obj
deleted file mode 100644
index a2db69f000..0000000000
--- a/protocols/Telegram/libevent/test/regress_buffer.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_bufferevent.obj b/protocols/Telegram/libevent/test/regress_bufferevent.obj
deleted file mode 100644
index 1142945e51..0000000000
--- a/protocols/Telegram/libevent/test/regress_bufferevent.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_dns.obj b/protocols/Telegram/libevent/test/regress_dns.obj
deleted file mode 100644
index 4406585f06..0000000000
--- a/protocols/Telegram/libevent/test/regress_dns.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_et.obj b/protocols/Telegram/libevent/test/regress_et.obj
deleted file mode 100644
index e745dc87e6..0000000000
--- a/protocols/Telegram/libevent/test/regress_et.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_finalize.obj b/protocols/Telegram/libevent/test/regress_finalize.obj
deleted file mode 100644
index 765fd66e38..0000000000
--- a/protocols/Telegram/libevent/test/regress_finalize.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_http.obj b/protocols/Telegram/libevent/test/regress_http.obj
deleted file mode 100644
index 85099a6a04..0000000000
--- a/protocols/Telegram/libevent/test/regress_http.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_iocp.obj b/protocols/Telegram/libevent/test/regress_iocp.obj
deleted file mode 100644
index 5e2f0d2149..0000000000
--- a/protocols/Telegram/libevent/test/regress_iocp.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_listener.obj b/protocols/Telegram/libevent/test/regress_listener.obj
deleted file mode 100644
index b05b290d36..0000000000
--- a/protocols/Telegram/libevent/test/regress_listener.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_main.obj b/protocols/Telegram/libevent/test/regress_main.obj
deleted file mode 100644
index 27aaa4eb28..0000000000
--- a/protocols/Telegram/libevent/test/regress_main.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_minheap.obj b/protocols/Telegram/libevent/test/regress_minheap.obj
deleted file mode 100644
index 0ab530f4fa..0000000000
--- a/protocols/Telegram/libevent/test/regress_minheap.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_rpc.obj b/protocols/Telegram/libevent/test/regress_rpc.obj
deleted file mode 100644
index 6c1d24abcd..0000000000
--- a/protocols/Telegram/libevent/test/regress_rpc.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_testutils.obj b/protocols/Telegram/libevent/test/regress_testutils.obj
deleted file mode 100644
index f596a67e4c..0000000000
--- a/protocols/Telegram/libevent/test/regress_testutils.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_thread.obj b/protocols/Telegram/libevent/test/regress_thread.obj
deleted file mode 100644
index 9654fe8ddb..0000000000
--- a/protocols/Telegram/libevent/test/regress_thread.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/regress_util.obj b/protocols/Telegram/libevent/test/regress_util.obj
deleted file mode 100644
index 79a948f2a5..0000000000
--- a/protocols/Telegram/libevent/test/regress_util.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-changelist.exe b/protocols/Telegram/libevent/test/test-changelist.exe
deleted file mode 100644
index 2adeacc62f..0000000000
--- a/protocols/Telegram/libevent/test/test-changelist.exe
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-changelist.obj b/protocols/Telegram/libevent/test/test-changelist.obj
deleted file mode 100644
index d5e1a181f6..0000000000
--- a/protocols/Telegram/libevent/test/test-changelist.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-closed.exe b/protocols/Telegram/libevent/test/test-closed.exe
deleted file mode 100644
index 68bd7e1de1..0000000000
--- a/protocols/Telegram/libevent/test/test-closed.exe
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-closed.obj b/protocols/Telegram/libevent/test/test-closed.obj
deleted file mode 100644
index 3894c88833..0000000000
--- a/protocols/Telegram/libevent/test/test-closed.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-eof.exe b/protocols/Telegram/libevent/test/test-eof.exe
deleted file mode 100644
index 0c20f43d91..0000000000
--- a/protocols/Telegram/libevent/test/test-eof.exe
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-eof.obj b/protocols/Telegram/libevent/test/test-eof.obj
deleted file mode 100644
index 05c17400b8..0000000000
--- a/protocols/Telegram/libevent/test/test-eof.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-init.exe b/protocols/Telegram/libevent/test/test-init.exe
deleted file mode 100644
index c404d2c1a1..0000000000
--- a/protocols/Telegram/libevent/test/test-init.exe
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-init.obj b/protocols/Telegram/libevent/test/test-init.obj
deleted file mode 100644
index 606fcf91d5..0000000000
--- a/protocols/Telegram/libevent/test/test-init.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-time.exe b/protocols/Telegram/libevent/test/test-time.exe
deleted file mode 100644
index 7cdcfd61ac..0000000000
--- a/protocols/Telegram/libevent/test/test-time.exe
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-time.obj b/protocols/Telegram/libevent/test/test-time.obj
deleted file mode 100644
index c5fa6cbeac..0000000000
--- a/protocols/Telegram/libevent/test/test-time.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-weof.exe b/protocols/Telegram/libevent/test/test-weof.exe
deleted file mode 100644
index 1fe6973f46..0000000000
--- a/protocols/Telegram/libevent/test/test-weof.exe
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/test-weof.obj b/protocols/Telegram/libevent/test/test-weof.obj
deleted file mode 100644
index 5ca123d600..0000000000
--- a/protocols/Telegram/libevent/test/test-weof.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/test/tinytest.obj b/protocols/Telegram/libevent/test/tinytest.obj
deleted file mode 100644
index f9b5885695..0000000000
--- a/protocols/Telegram/libevent/test/tinytest.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/libevent/win32select.obj b/protocols/Telegram/libevent/win32select.obj
deleted file mode 100644
index 225738415a..0000000000
--- a/protocols/Telegram/libevent/win32select.obj
+++ /dev/null
Binary files differ
diff --git a/protocols/Telegram/src/tgl/auto-static-fetch.c b/protocols/Telegram/src/tgl/auto-static-fetch.c
index 4d4e47cc5c..db32029ff2 100644
--- a/protocols/Telegram/src/tgl/auto-static-fetch.c
+++ b/protocols/Telegram/src/tgl/auto-static-fetch.c
@@ -10,7 +10,7 @@ static int out_buf_pos;
#define eprintf(...) \
do { \
- out_buf_pos += snprintf (out_buf + out_buf_pos, OUT_BUF_SIZE - out_buf_pos, __VA_ARGS__);\
+ out_buf_pos += _snprintf (out_buf + out_buf_pos, OUT_BUF_SIZE - out_buf_pos, __VA_ARGS__);\
assert (out_buf_pos < OUT_BUF_SIZE);\
} while (0)\
diff --git a/protocols/Telegram/src/tgl/auto-static-print-ds.c b/protocols/Telegram/src/tgl/auto-static-print-ds.c
index cfec470fcc..cb006728d9 100644
--- a/protocols/Telegram/src/tgl/auto-static-print-ds.c
+++ b/protocols/Telegram/src/tgl/auto-static-print-ds.c
@@ -10,7 +10,7 @@ static int out_buf_pos;
#define eprintf(...) \
do { \
- out_buf_pos += snprintf (out_buf + out_buf_pos, OUT_BUF_SIZE - out_buf_pos, __VA_ARGS__);\
+ out_buf_pos += _snprintf (out_buf + out_buf_pos, OUT_BUF_SIZE - out_buf_pos, __VA_ARGS__);\
assert (out_buf_pos < OUT_BUF_SIZE);\
} while (0)\
diff --git a/protocols/Telegram/src/tgl/queries.c b/protocols/Telegram/src/tgl/queries.c
index 374f78e1f1..6c22acc0b2 100644
--- a/protocols/Telegram/src/tgl/queries.c
+++ b/protocols/Telegram/src/tgl/queries.c
@@ -3733,7 +3733,7 @@ static int set_get_password_on_answer (struct tgl_state *TLS, struct query *q, v
TLS->callback.get_values (TLS, tgl_new_password, "new password: ", 2, tgl_on_new_pwd, E);
} else {
static char s[512];
- snprintf (s, 511, "old password (hint %.*s): ", DS_RSTR (DS_AP->hint));
+ _snprintf (s, 511, "old password (hint %.*s): ", DS_RSTR (DS_AP->hint));
TLS->callback.get_values (TLS, tgl_cur_and_new_password, s, 3, tgl_on_old_pwd, E);
}
return 0;
@@ -3844,7 +3844,7 @@ static int check_get_password_on_answer (struct tgl_state *TLS, struct query *q,
return 0;
}
static char s[512];
- snprintf (s, 511, "type password (hint %.*s): ", DS_RSTR (DS_AP->hint));
+ _snprintf (s, 511, "type password (hint %.*s): ", DS_RSTR (DS_AP->hint));
struct check_password_extra *E = talloc0 (sizeof (*E));
diff --git a/protocols/Telegram/telegram.vcxproj b/protocols/Telegram/telegram.vcxproj
index 4f9b50585e..809fb04ab1 100644
--- a/protocols/Telegram/telegram.vcxproj
+++ b/protocols/Telegram/telegram.vcxproj
@@ -27,11 +27,11 @@
</ImportGroup>
<ItemDefinitionGroup>
<ClCompile>
- <AdditionalIncludeDirectories>openssl\include;libevent\include\;libevent\WIN32-Code\nmake\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>openssl\include;..\..\libs\libevent\include;..\..\libs\libevent\src\WIN32-Code\nmake;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
- <AdditionalDependencies>libevent\libevent.lib;libeay32.lib;ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>libeay32.lib;ssleay32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
@@ -129,5 +129,9 @@
<Project>{e2a369cd-eda3-414f-8ad0-e732cd7ee68c}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
+ <ProjectReference Include="..\..\libs\libevent\libevent_12.vcxproj">
+ <Project>{46D53888-E60E-32A7-91EB-6336DE0D84D8}</Project>
+ <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+ </ProjectReference>
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/protocols/Telegram/telegram.vcxproj.filters b/protocols/Telegram/telegram.vcxproj.filters
index 6751e0a06c..ee9c1b1e32 100644
--- a/protocols/Telegram/telegram.vcxproj.filters
+++ b/protocols/Telegram/telegram.vcxproj.filters
@@ -15,11 +15,6 @@
</ClCompile>
<ClCompile Include="src\t_accounts.cpp" />
<ClCompile Include="src\t_proto.cpp" />
- <ClCompile Include="src\main.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="src\t_accounts.cpp" />
- <ClCompile Include="src\t_proto.cpp" />
<ClCompile Include="src\tgl\binlog.c">
<Filter>Source Files\tgl</Filter>
</ClCompile>
@@ -116,6 +111,21 @@
</ClCompile>
<ClCompile Include="src\t_accounts.cpp" />
<ClCompile Include="src\t_proto.cpp" />
+ <ClCompile Include="src\main.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="src\t_accounts.cpp" />
+ <ClCompile Include="src\t_proto.cpp" />
+ <ClCompile Include="src\main.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="src\t_accounts.cpp" />
+ <ClCompile Include="src\t_proto.cpp" />
+ <ClCompile Include="src\main.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="src\t_accounts.cpp" />
+ <ClCompile Include="src\t_proto.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\stdafx.h">
@@ -128,11 +138,6 @@
</ClInclude>
<ClInclude Include="src\t_proto.h" />
<ClInclude Include="src\version.h" />
- <ClInclude Include="src\stdafx.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="src\t_proto.h" />
- <ClInclude Include="src\version.h" />
<ClInclude Include="src\tgl\auto.h">
<Filter>Header Files\tgl</Filter>
</ClInclude>
@@ -223,6 +228,21 @@
</ClInclude>
<ClInclude Include="src\t_proto.h" />
<ClInclude Include="src\version.h" />
+ <ClInclude Include="src\stdafx.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="src\t_proto.h" />
+ <ClInclude Include="src\version.h" />
+ <ClInclude Include="src\stdafx.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="src\t_proto.h" />
+ <ClInclude Include="src\version.h" />
+ <ClInclude Include="src\stdafx.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="src\t_proto.h" />
+ <ClInclude Include="src\version.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\*.rc">