dnsquery: added option to resolve DNS A records
[siplcs.git] / src / purple / purple-private.h
blob29f286e6bc90a9f36ae6d996302078fd46f7c077
1 /**
2 * @file purple-private.h
4 * pidgin-sipe
6 * Copyright (C) 2010 SIPE Project <http://sipe.sourceforge.net/>
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.
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.
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
23 /* Forward declarations */
24 struct sipe_core_public;
25 struct _PurpleAccount;
26 struct _PurpleConnection;
27 struct _PurpleRoomlist;
28 struct _PurpleXfer;
30 struct sipe_backend_private {
31 struct sipe_core_public *public;
32 struct _PurpleConnection *gc;
33 struct _PurpleAccount *account;
34 struct _PurpleRoomlist *roomlist;
35 GHashTable *roomlist_map; /* name -> uri */
36 time_t last_keepalive;
39 /**
40 * Initiates outgoing file transfer, sending @c file to remote peer identified
41 * by @c who.
43 * @param gc a PurpleConnection
44 * @param who string identifying receiver of the file
45 * @param file local file system path of the file to send
47 void sipe_ft_send_file(struct _PurpleConnection *gc,
48 const char *who,
49 const char *file);
51 /**
52 * Creates new PurpleXfer structure representing a file transfer.
54 * @param gc a PurpleConnection
55 * @param who remote participant in the file transfer session
57 struct _PurpleXfer *sipe_ft_new_xfer(struct _PurpleConnection *gc,
58 const char *who);
60 /* libpurple chat room callbacks */
61 GList *sipe_chat_info(struct _PurpleConnection *gc);
62 GHashTable *sipe_chat_info_defaults(struct _PurpleConnection *gc,
63 const char *chat_name);
64 void sipe_join_chat(struct _PurpleConnection *gc, GHashTable *data);
65 struct _PurpleRoomlist *sipe_roomlist_get_list(struct _PurpleConnection *gc);
66 void sipe_roomlist_cancel(struct _PurpleRoomlist *list);
68 /* Convenience macros */
69 #define PURPLE_ACCOUNT_TO_SIPE_CORE_PUBLIC ((struct sipe_core_public *) account->gc->proto_data)
70 #define PURPLE_GC_TO_SIPE_CORE_PUBLIC ((struct sipe_core_public *) gc->proto_data)
73 Local Variables:
74 mode: c
75 c-file-style: "bsd"
76 indent-tabs-mode: t
77 tab-width: 8
78 End: