Tue, 26 Jun 2012 22:38:37 +0200
Gadu-Gadu: fix receiving of inline images after 3.x changes; code refactoring here as well
| 11414 | 1 | /** |
| 2 | * @file gg.h | |
| 3 | * | |
| 15884 | 4 | * purple |
| 11414 | 5 | * |
| 6 | * Copyright (C) 2005 Bartosz Oler <bartosz@bzimage.us> | |
| 7 | * | |
| 8 | * This program is free software; you can redistribute it and/or modify | |
| 9 | * it under the terms of the GNU General Public License as published by | |
| 10 | * the Free Software Foundation; either version 2 of the License, or | |
| 11 | * (at your option) any later version. | |
| 12 | * | |
| 13 | * This program is distributed in the hope that it will be useful, | |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | * GNU General Public License for more details. | |
| 17 | * | |
| 18 | * You should have received a copy of the GNU General Public License | |
| 19 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18273
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 11414 | 21 | */ |
| 22 | ||
| 23 | ||
| 15884 | 24 | #ifndef _PURPLE_GG_H |
| 25 | #define _PURPLE_GG_H | |
| 11414 | 26 | |
|
32675
a8ba546a18bc
Gadu-Gadu: synchronize internal libgadu with upstream. Refs #343
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
31550
diff
changeset
|
27 | #undef printf |
| 13318 | 28 | #include <libgadu.h> |
|
18273
e61c53184c52
#include reorganizations to allow compiling with glib < 2.8 using the
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
29 | #include "internal.h" |
| 11414 | 30 | #include "search.h" |
| 12007 | 31 | #include "connection.h" |
| 11414 | 32 | |
|
33298
519acf37d16e
Gadu-Gadu: fix receiving of inline images after 3.x changes; code refactoring here as well
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32685
diff
changeset
|
33 | #include "image.h" |
|
519acf37d16e
Gadu-Gadu: fix receiving of inline images after 3.x changes; code refactoring here as well
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32685
diff
changeset
|
34 | |
| 13641 | 35 | |
| 13643 | 36 | #define PUBDIR_RESULTS_MAX 20 |
| 37 | ||
| 38 | ||
| 11414 | 39 | typedef struct |
| 40 | { | |
| 41 | char *name; | |
| 42 | GList *participants; | |
| 43 | ||
| 44 | } GGPChat; | |
| 45 | ||
| 15884 | 46 | typedef void (*GGPTokenCallback)(PurpleConnection *); |
| 12007 | 47 | |
| 11414 | 48 | typedef struct |
| 49 | { | |
| 12007 | 50 | char *id; |
| 51 | char *data; | |
| 52 | unsigned int size; | |
| 53 | ||
| 54 | struct gg_http *req; | |
| 55 | guint inpa; | |
| 56 | ||
| 57 | GGPTokenCallback cb; | |
| 11414 | 58 | |
| 59 | } GGPToken; | |
| 60 | ||
| 61 | typedef struct { | |
| 62 | ||
| 63 | struct gg_session *session; | |
|
32685
140518f18665
GG: Move the "inpa" input watcher into protocol_data.
Andrew Victor <andrew.victor@mxit.com>
parents:
32675
diff
changeset
|
64 | guint inpa; |
| 12007 | 65 | GGPToken *token; |
| 11414 | 66 | GList *chats; |
| 13641 | 67 | GGPSearches *searches; |
| 11414 | 68 | int chats_count; |
|
31550
909496097dcf
Gadu-Gadu: Allow showing your status only to people on your buddy list.
Mateusz Piękos <mateuszpiekos@gmail.com>
parents:
25433
diff
changeset
|
69 | gboolean status_broadcasting; //When TRUE status is visible to all, when FALSE status is visible only to friends. |
|
33298
519acf37d16e
Gadu-Gadu: fix receiving of inline images after 3.x changes; code refactoring here as well
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32685
diff
changeset
|
70 | |
|
519acf37d16e
Gadu-Gadu: fix receiving of inline images after 3.x changes; code refactoring here as well
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32685
diff
changeset
|
71 | ggp_image_connection_data image_data; |
| 11414 | 72 | } GGPInfo; |
| 73 | ||
| 15884 | 74 | #endif /* _PURPLE_GG_H */ |
| 11414 | 75 | |
| 12007 | 76 | /* vim: set ts=8 sts=0 sw=8 noet: */ |