6 * Copyright (C) 2007, Anibal Avelar <avelar@gmail.com>
7 * Copyright (C) 2005, Thomas Butter <butter@uni-mannheim.de>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #ifndef _PIDGIN_SIPE_H
25 #define _PIDGIN_SIPE_H
31 #include "circbuffer.h"
37 #include "gaim-compat.h"
41 #define SIMPLE_BUF_INC 1024
52 struct sip_dialog dialog
;
62 int type
; /* 1 = Digest / 2 = NTLM */
71 gchar
*digest_session_key
;
75 struct sipe_account_data
{
80 GaimDnsQueryData
*query_data
;
81 GaimSrvQueryData
*srv_query_data
;
82 GaimNetworkListenData
*listen_data
;
87 int registerstatus
; /* 0 nothing, 1 first registration send, 2 auth received, 3 registered */
88 struct sip_auth registrar
;
89 struct sip_auth proxy
;
95 guint registertimeout
;
99 GaimCircBuffer
*txbuf
;
102 GSList
*transactions
;
106 struct sockaddr_in serveraddr
;
109 int realport
; /* port and hostname from SRV record */
112 struct sip_connection
{
122 typedef gboolean (*TransCallback
) (struct sipe_account_data
*, struct sipmsg
*, struct transaction
*);
127 int transport
; /* 0 = tcp, 1 = udp */
131 TransCallback callback
;
140 #endif /* _PIDGIN_SIPE_H */