Include translation functions and restructure includes

This commit is contained in:
mjentsch 2015-10-04 16:58:25 +02:00
parent a91a6ab304
commit 08168c6339
6 changed files with 22 additions and 23 deletions

View file

@ -46,7 +46,6 @@
#include "tgp-request.h"
#include "lodepng/lodepng.h"
#define _(m) m
#define DC_SERIALIZED_MAGIC 0x868aa81d
#define STATE_FILE_MAGIC 0x28949a93
#define SECRET_CHAT_FILE_MAGIC 0x37a1988a

View file

@ -18,9 +18,7 @@
Copyright Matthias Jentsch, Vitaly Valtman, Christopher Althaus, Markus Endres 2014-2015
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "telegram-purple.h"
#include <glib.h>
#include <string.h>
@ -64,7 +62,6 @@
#include "msglog.h"
#include "telegram-base.h"
#include "telegram-purple.h"
#include "tgp-structs.h"
#include "tgp-2prpl.h"
#include "tgp-net.h"

View file

@ -20,18 +20,29 @@
#ifndef __TG_PURPLE_H__
#define __TG_PURPLE_H__
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
// Define macros for gettext translation, ENABLE_NLS should be set if configure has detected
// libintl.h. If this is not the case a dummy macro is defined to bypass the translation functions
#ifdef ENABLE_NLS
# include <glib/gi18n-lib.h>
#elseif
# define _(String) String
#endif
#include <tgl.h>
#define PLUGIN_ID "prpl-telegram"
#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."
#define TG_BUILD "12"
#include <notify.h>
#include <plugin.h>
#include <version.h>
#include <account.h>
#include <connection.h>
#define PLUGIN_ID "prpl-telegram"
#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."
#define TG_BUILD "13"
#define TGP_APP_HASH "99428c722d0ed59b9cd844e4577cb4bb"
#define TGP_APP_ID 16154

View file

@ -18,16 +18,13 @@
Copyright Matthias Jentsch 2014
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "telegram-purple.h"
#ifdef HAVE_LIBWEBP
#include <webp/decode.h>
#include "lodepng/lodepng.h"
#endif
#include "telegram-purple.h"
#include "tgp-2prpl.h"
#include "tgp-structs.h"
#include "telegram-purple.h"

View file

@ -18,19 +18,15 @@
Copyright Matthias Jentsch 2014-2015
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "telegram-purple.h"
#include <assert.h>
#include <tgl.h>
#include <glib.h>
#include <errno.h>
#include <locale.h>
#include <tgl-queries.h>
#include "telegram-purple.h"
#include "telegram-base.h"
#include "tgp-structs.h"
#include "tgp-msg.h"

View file

@ -18,18 +18,17 @@
Copyright Matthias Jentsch 2014-2015
*/
#include "telegram-purple.h"
#include <glib.h>
#include <tgl.h>
#include <tgl-binlog.h>
#include <tgl-methods-in.h>
#include <tgl-queries.h>
#define _(m) m
#include "msglog.h"
#include "tgp-request.h"
#include "telegram-base.h"
#include "telegram-purple.h"
#include "tgp-2prpl.h"
#include "tgp-utils.h"