Wed, 20 Jun 2007 18:23:49 +0000
#include reorganizations to allow compiling with glib < 2.8 using the
G_GNUC_NULL_TERMINATED define from internal.h
| 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 | |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 21 | */ | |
| 22 | ||
| 23 | ||
| 15884 | 24 | #ifndef _PURPLE_GG_H |
| 25 | #define _PURPLE_GG_H | |
| 11414 | 26 | |
| 13318 | 27 | #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
|
28 | #include "internal.h" |
| 11414 | 29 | #include "search.h" |
| 12007 | 30 | #include "connection.h" |
| 11414 | 31 | |
| 13641 | 32 | |
| 13643 | 33 | #define PUBDIR_RESULTS_MAX 20 |
| 34 | ||
| 35 | ||
| 11414 | 36 | typedef struct |
| 37 | { | |
| 38 | char *name; | |
| 39 | GList *participants; | |
| 40 | ||
| 41 | } GGPChat; | |
| 42 | ||
| 15884 | 43 | typedef void (*GGPTokenCallback)(PurpleConnection *); |
| 12007 | 44 | |
| 11414 | 45 | typedef struct |
| 46 | { | |
| 12007 | 47 | char *id; |
| 48 | char *data; | |
| 49 | unsigned int size; | |
| 50 | ||
| 51 | struct gg_http *req; | |
| 52 | guint inpa; | |
| 53 | ||
| 54 | GGPTokenCallback cb; | |
| 11414 | 55 | |
| 56 | } GGPToken; | |
| 57 | ||
| 58 | typedef struct { | |
| 59 | ||
| 60 | struct gg_session *session; | |
| 12007 | 61 | GGPToken *token; |
| 11414 | 62 | GList *chats; |
| 13641 | 63 | GGPSearches *searches; |
| 11414 | 64 | |
| 12961 | 65 | uin_t tmp_buddy; |
| 11414 | 66 | int chats_count; |
| 67 | ||
| 68 | } GGPInfo; | |
| 69 | ||
| 70 | ||
| 15884 | 71 | #endif /* _PURPLE_GG_H */ |
| 11414 | 72 | |
| 12007 | 73 | /* vim: set ts=8 sts=0 sw=8 noet: */ |