Mercurial > pidgin
annotate finch/gntidle.h @ 23568:0a674616953c
Added `flap_connection_send_snac_with_priority()`, which allows specifying
high versus low priority for the SNAC to be sent.
If we are not rate limited, a SNAC is always sent immediately.
If we are at or near the rate limit, the SNAC may be queued to be sent
when it wouldn't violate a rate limit to do so.
Previously, SNACs were always sent in the order requested.
A SNAC may now be set to be low priority, in which case other SNACs
will be sent first if a queue is in use. This means that even if we have
120 'get ICQ status note' requests in the queue, a 'send message' SNAC can
still be sent nearly immediately (rather than after a 10 minute or so delay).
`flap_connection_send_snac_()` calls `flap_connection_send_snac_with_priority`
with high priority. Get Info requests (including ICQ Status Note requests) are
the only low priority SNACs at this time.
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Sun, 20 Jul 2008 05:47:42 +0000 |
parents | 6bf32c9e15a7 |
children |
rev | line source |
---|---|
15817 | 1 /** |
2 * @file gntidle.h GNT Idle API | |
16194
0f0832c13fcb
Rename the Doxygen group from gntui to finch and define the finch group
Richard Laager <rlaager@wiktel.com>
parents:
15870
diff
changeset
|
3 * @ingroup finch |
20074
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
4 */ |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
5 |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
6 /* finch |
15817 | 7 * |
8 * Pidgin is the legal property of its developers, whose names are too numerous | |
9 * to list here. Please refer to the COPYRIGHT file distributed with this | |
10 * source distribution. | |
11 * | |
12 * This program is free software; you can redistribute it and/or modify | |
13 * it under the terms of the GNU General Public License as published by | |
14 * the Free Software Foundation; either version 2 of the License, or | |
15 * (at your option) any later version. | |
16 * | |
17 * This program is distributed in the hope that it will be useful, | |
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 * GNU General Public License for more details. | |
21 * | |
22 * You should have received a copy of the GNU General Public License | |
23 * along with this program; if not, write to the Free Software | |
19681
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16194
diff
changeset
|
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15817 | 25 */ |
26 #ifndef _GNT_IDLE_H_ | |
27 #define _GNT_IDLE_H_ | |
28 | |
29 #include "idle.h" | |
30 | |
31 /**************************************************************************/ | |
32 /** @name GNT Idle API */ | |
33 /**************************************************************************/ | |
34 /*@{*/ | |
35 | |
36 /** | |
37 * Returns the GNT idle UI ops. | |
38 * | |
39 * @return The UI operations structure. | |
40 */ | |
15822 | 41 PurpleIdleUiOps *finch_idle_get_ui_ops(void); |
15817 | 42 |
43 /*@}*/ | |
44 | |
45 #endif /* _Finch_IDLE_H_ */ |