Frameworks/libpurple.framework/Versions/0.6.2/Headers/gg.h
author Zachary West <zacw@adium.im>
Fri Aug 21 13:25:11 2009 -0700 (2009-08-21)
changeset 2592 e8d15275025e
parent 1739 Frameworks/libpurple.framework/Versions/0.6.0/Headers/gg.h@8b0daad9656c
permissions -rw-r--r--
im.pidgin.adium.1-4 at 267c6165e02e34318a1823960bd04c0639952f73
     1 /**
     2  * @file gg.h
     3  *
     4  * purple
     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., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
    21  */
    22 
    23 
    24 #ifndef _PURPLE_GG_H
    25 #define _PURPLE_GG_H
    26 
    27 #include <libgadu.h>
    28 #include "internal.h"
    29 #include "search.h"
    30 #include "connection.h"
    31 
    32 
    33 #define PUBDIR_RESULTS_MAX 20
    34 
    35 
    36 typedef struct
    37 {
    38 	char *name;
    39 	GList *participants;
    40 
    41 } GGPChat;
    42 
    43 typedef void (*GGPTokenCallback)(PurpleConnection *);
    44 
    45 typedef struct
    46 {
    47 	char *id;
    48 	char *data;
    49 	unsigned int size;
    50 
    51 	struct gg_http *req;
    52 	guint inpa;
    53 
    54 	GGPTokenCallback cb;
    55 
    56 } GGPToken;
    57 
    58 typedef struct {
    59 
    60 	struct gg_session *session;
    61 	GGPToken *token;
    62 	GList *chats;
    63 	GGPSearches *searches;
    64 	int chats_count;
    65 	GList *pending_richtext_messages;
    66 	GHashTable *pending_images;
    67 } GGPInfo;
    68 
    69 #endif /* _PURPLE_GG_H */
    70 
    71 /* vim: set ts=8 sts=0 sw=8 noet: */