Frameworks/libpurple.framework/Versions/2.10.12r8d2874a79747/Headers/gg.h
branchadium-1.5.11
changeset 6014 fcb71cb71a3d
parent 5941 307f53385811
parent 6013 f8d0dc659e3f
child 6016 325e2ab3406f
equal deleted inserted replaced
5941:307f53385811 6014:fcb71cb71a3d
     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 "dnsquery.h"
       
    30 #include "search.h"
       
    31 #include "connection.h"
       
    32 
       
    33 
       
    34 #define PUBDIR_RESULTS_MAX 20
       
    35 
       
    36 
       
    37 typedef struct
       
    38 {
       
    39 	char *name;
       
    40 	GList *participants;
       
    41 
       
    42 } GGPChat;
       
    43 
       
    44 typedef void (*GGPTokenCallback)(PurpleConnection *);
       
    45 
       
    46 typedef struct
       
    47 {
       
    48 	char *id;
       
    49 	char *data;
       
    50 	unsigned int size;
       
    51 
       
    52 	struct gg_http *req;
       
    53 	guint inpa;
       
    54 
       
    55 	GGPTokenCallback cb;
       
    56 
       
    57 } GGPToken;
       
    58 
       
    59 typedef struct {
       
    60 
       
    61 	struct gg_session *session;
       
    62 	GGPToken *token;
       
    63 	GList *chats;
       
    64 	GGPSearches *searches;
       
    65 	int chats_count;
       
    66 	GList *pending_richtext_messages;
       
    67 	GHashTable *pending_images;
       
    68 	gboolean status_broadcasting; //When TRUE status is visible to all, when FALSE status is visible only to friends.
       
    69 	PurpleDnsQueryData *dns_query;
       
    70 } GGPInfo;
       
    71 
       
    72 #endif /* _PURPLE_GG_H */
       
    73 
       
    74 /* vim: set ts=8 sts=0 sw=8 noet: */