Mercurial > pidgin
comparison libpurple/protocols/simple/simple.h @ 21149:b2d9f859663e
Patch from Will Hawkins to make the SIMPLE prpl more standards compliant by keeping all subscribe/notify messaging within a dialog. This didn't apply cleanly, so I had to manually apply it - hopefully I didn't break anything during the process. Fixes #3778.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 06 Nov 2007 02:52:41 +0000 |
parents | 61a87e02da29 |
children | 5295c7f113da |
comparison
equal
deleted
inserted
replaced
21148:3635ddf4170f | 21149:b2d9f859663e |
---|---|
41 | 41 |
42 #define SIMPLE_REGISTER_SENT 1 | 42 #define SIMPLE_REGISTER_SENT 1 |
43 #define SIMPLE_REGISTER_RETRY 2 | 43 #define SIMPLE_REGISTER_RETRY 2 |
44 #define SIMPLE_REGISTER_COMPLETE 3 | 44 #define SIMPLE_REGISTER_COMPLETE 3 |
45 | 45 |
46 #define PUBLISH_EXPIRATION 600 | |
47 #define SUBSCRIBE_EXPIRATION 1200 | |
48 | |
46 struct sip_dialog { | 49 struct sip_dialog { |
47 gchar *ourtag; | 50 gchar *ourtag; |
48 gchar *theirtag; | 51 gchar *theirtag; |
49 gchar *callid; | 52 gchar *callid; |
50 }; | 53 }; |
57 }; | 60 }; |
58 | 61 |
59 struct simple_buddy { | 62 struct simple_buddy { |
60 gchar *name; | 63 gchar *name; |
61 time_t resubscribe; | 64 time_t resubscribe; |
65 struct sip_dialog *dialog; | |
62 }; | 66 }; |
63 | 67 |
64 struct sip_auth { | 68 struct sip_auth { |
65 int type; /* 1 = Digest / 2 = NTLM */ | 69 int type; /* 1 = Digest / 2 = NTLM */ |
66 gchar *nonce; | 70 gchar *nonce; |