2014-11-16 20:41:03 +01:00
/*
This file is part of telegram - purple
2014-11-11 20:21:14 +03:00
2014-11-16 20:41:03 +01:00
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 51 Franklin Street , Fifth Floor , Boston , MA 02111 - 1301 USA
Copyright Matthias Jentsch , Vitaly Valtman , Christopher Althaus , Markus Endres 2014
*/
2014-11-11 20:21:14 +03:00
# ifndef __TG_PURPLE_H__
# define __TG_PURPLE_H__
2014-11-17 16:27:01 +03:00
# include <tgl.h>
2014-11-11 20:21:14 +03:00
# define PLUGIN_ID "prpl-telegram"
2014-11-16 16:33:27 +01:00
# define TG_AUTHOR "Matthias Jentsch <mtthsjntsch@gmail.com>, Vitaly Valtman, Christopher Althaus <althaus.christopher@gmail.com>, Markus Endres <endresma45241@th-nuernberg.de>. Based on libtgl by Vitaly Valtman."
# define TG_DESCRIPTION "Telegram protocol."
2015-01-09 19:44:03 +01:00
# define TG_VERSION "0.6"
# define TG_BUILD "11"
2014-11-11 20:21:14 +03:00
# include <notify.h>
# include <plugin.h>
# include <version.h>
# include <account.h>
# include <connection.h>
2014-11-17 18:24:09 +03:00
# define TGP_APP_HASH "99428c722d0ed59b9cd844e4577cb4bb"
# define TGP_APP_ID 16154
2014-11-11 20:21:14 +03:00
2014-11-16 20:39:10 +01:00
void on_chat_get_info ( struct tgl_state * TLS , void * extra , int success , struct tgl_chat * C ) ;
void on_ready ( struct tgl_state * TLS ) ;
2014-11-13 00:45:51 +01:00
extern const char * pk_path ;
2014-11-16 16:33:27 +01:00
extern const char * config_dir ;
2014-11-16 21:55:36 +01:00
extern PurplePlugin * _telegram_protocol ;
2014-11-13 00:45:51 +01:00
2014-11-11 20:21:14 +03:00
# endif