Fri, 21 May 2004 14:33:32 +0000
[gaim-migrate @ 9774]
" This patch renames the existing received-*-msg signals
to receiving-*msg to fit the naming of other signals
where a pointer to the message is passed (writing,
sending, displaying)
It adds new received-*-msg signals which are emitted
after the receiving signals, in line with the other
conversation signals (wrote, sent, displayed)
This is necessary to allow plugins which depend on the
final received message to work alongside plugins which
may modify the message.
One known example of this is festival-gaim alongside
gaim-encryption - festival-gaim would try to "speak"
the encrypted text:
http://sf.net/tracker/?func=detail&aid=943216&group_id=89763&atid=591320
I've tested this with gaim-encryption and festival-gaim
(locally modified so gaim-encryption uses the receiving
signal and festival uses the received signal)
All in-tree users of received-*-msg are updated to use
receiving-*-msg if they do modify the message, the
conversation-signals documentation is updated, the
signals-test.c & signal-test.tcl plugins are also updated." --Stu Tomlinson
committer: Luke Schierer <lschiere@pidgin.im>
| 2086 | 1 | /* |
| 2 | * zephyr_err.c: | |
| 3 | * This file is automatically generated; please do not edit it. | |
| 4 | */ | |
| 5 | #ifdef __STDC__ | |
| 6 | #define NOARGS void | |
| 7 | #else | |
| 8 | #define NOARGS | |
| 9 | #define const | |
| 10 | #endif | |
| 11 | ||
| 12 | static const char * const text[] = { | |
| 13 | "Packet too long or buffer too small", | |
| 14 | "Notice header too large", | |
| 15 | "Illegal value in notice", | |
| 16 | "Can't get host manager port", | |
| 17 | "Can't assign port", | |
| 18 | "Bad packet format", | |
| 19 | "Incompatible version numbers", | |
| 20 | "No port opened", | |
| 21 | "No notices match criteria", | |
| 22 | "Input queue too long", | |
| 23 | "Hostmanager not responding", | |
| 24 | "Internal error", | |
| 25 | "No previous call to ZLocateUser", | |
| 26 | "No more locations available", | |
| 27 | "Field too long for buffer", | |
| 28 | "Improperly formatted field", | |
| 29 | "SERVNAK received", | |
| 30 | "Server could not verify authentication", | |
| 31 | "Not logged-in", | |
| 32 | "No previous call to ZRetrieveSubscriptions", | |
| 33 | "No more subscriptions available", | |
| 34 | "Too many subscriptions to transmit", | |
| 35 | "End of file detected during read", | |
| 36 | 0 | |
| 37 | }; | |
| 38 | ||
| 39 | struct error_table { | |
| 40 | char const * const * msgs; | |
| 41 | long base; | |
| 42 | int n_msgs; | |
| 43 | }; | |
| 44 | struct et_list { | |
| 45 | struct et_list *next; | |
| 46 | const struct error_table * table; | |
| 47 | }; | |
| 48 | extern struct et_list *_et_list; | |
| 49 | ||
| 50 | static const struct error_table et = { text, -772103680L, 23 }; | |
| 51 | ||
| 52 | static struct et_list link = { 0, 0 }; | |
| 53 | ||
| 54 | void initialize_zeph_error_table (NOARGS) { | |
| 55 | if (!link.table) { | |
| 56 | link.next = _et_list; | |
| 57 | link.table = &et; | |
| 58 | _et_list = &link; | |
| 59 | } | |
| 60 | } |