Sun, 15 Apr 2007 02:10:37 +0000
propagate from branch 'im.pidgin.gaim' (head b2836a24d81e7a1bd1d21b3aea8794b094391344)
to branch 'im.pidgin.rlaager.merging.soc-msnp13-to-svn18164' (head 463b4fa9f067b279f843520d95a822adc86a0a1b)
| 11414 | 1 | /** |
| 2 | * @file gg.h | |
| 3 | * | |
| 4 | * gaim | |
| 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 | |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 | */ | |
| 22 | ||
| 23 | ||
| 24 | #ifndef _GAIM_GG_H | |
| 25 | #define _GAIM_GG_H | |
| 26 | ||
| 13318 | 27 | #include <libgadu.h> |
| 11414 | 28 | #include "search.h" |
| 12007 | 29 | #include "connection.h" |
| 11414 | 30 | |
| 13641 | 31 | |
| 13643 | 32 | #define PUBDIR_RESULTS_MAX 20 |
| 33 | ||
| 34 | ||
| 11414 | 35 | typedef struct |
| 36 | { | |
| 37 | char *name; | |
| 38 | GList *participants; | |
| 39 | ||
| 40 | } GGPChat; | |
| 41 | ||
| 12007 | 42 | typedef void (*GGPTokenCallback)(GaimConnection *); |
| 43 | ||
| 11414 | 44 | typedef struct |
| 45 | { | |
| 12007 | 46 | char *id; |
| 47 | char *data; | |
| 48 | unsigned int size; | |
| 49 | ||
| 50 | struct gg_http *req; | |
| 51 | guint inpa; | |
| 52 | ||
| 53 | GGPTokenCallback cb; | |
| 11414 | 54 | |
| 55 | } GGPToken; | |
| 56 | ||
| 57 | typedef struct { | |
| 58 | ||
| 59 | struct gg_session *session; | |
| 12007 | 60 | GGPToken *token; |
| 11414 | 61 | GList *chats; |
| 13641 | 62 | GGPSearches *searches; |
| 11414 | 63 | |
| 12961 | 64 | uin_t tmp_buddy; |
| 11414 | 65 | int chats_count; |
| 66 | ||
| 67 | } GGPInfo; | |
| 68 | ||
| 69 | ||
| 70 | #endif /* _GAIM_GG_H */ | |
| 71 | ||
| 12007 | 72 | /* vim: set ts=8 sts=0 sw=8 noet: */ |