diff options
author | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2017-01-15 00:22:00 +0300 |
---|---|---|
committer | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2017-02-05 14:10:58 +0300 |
commit | 198e97c9f64802715565094a7c5b1aca5d234208 (patch) | |
tree | bfbf7f45cc7662fb8eba71b065898f2b52a3a754 /tgl-queries.h | |
parent | f0b40dc64186d567961520a74e7285aaad056d1a (diff) |
C++ compatibility fixes
Diffstat (limited to 'tgl-queries.h')
-rw-r--r-- | tgl-queries.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tgl-queries.h b/tgl-queries.h index 614dc6d..0fdd26b 100644 --- a/tgl-queries.h +++ b/tgl-queries.h @@ -3,6 +3,10 @@ #include "tgl.h" +#ifdef __cplusplus +extern "C" { +#endif + void tgl_do_get_terms_of_service (struct tgl_state *TLS, void (*callback)(struct tgl_state *TLS, void *callback_extra, int success, const char *ans), void *callback_extra); /* {{{ WORK WITH ACCOUNT */ @@ -121,7 +125,7 @@ void tgl_do_export_chat_link (struct tgl_state *TLS, tgl_peer_id_t id, void (*ca // joins to secret chat by link (or hash of this link) void tgl_do_import_chat_link (struct tgl_state *TLS, const char *link, int link_len, void (*callback)(struct tgl_state *TLS, void *callback_extra, int success), void *callback_extra); -// upgrades chat to channel. +// upgrades chat to channel. void tgl_do_upgrade_group (struct tgl_state *TLS, tgl_peer_id_t id, void (*callback)(struct tgl_state *TLS, void *callback_extra, int success), void *callback_extra); /* }}} */ @@ -299,4 +303,8 @@ char *tglf_extf_fetch (struct tgl_state *TLS, struct paramed_type *T); void tgl_do_start_bot (struct tgl_state *TLS, tgl_peer_id_t bot, tgl_peer_id_t chat, const char *str, int str_len, void (*callback)(struct tgl_state *TLS, void *callback_extra, int success), void *callback_extra); /* }}} */ +#ifdef __cplusplus +} +#endif + #endif |