Thu, 07 Apr 2005 14:55:02 +0000
[gaim-migrate @ 12431]
" The following log snippets should explain it: " --rlaager
(20:24:00) rlaager: Regarding the signal handling
conversation the other day... I've written a patch to stop
calling signal handlers and return as soon as we find one
signal handler that returns TRUE to indicate that it's
handled the signal. Is this the right approach?
(20:24:22) Ethan Blanton (Paco-Paco): the trouble is that it's
documented to behave exactly the way it does
(20:24:31) Ethan Blanton (Paco-Paco): so changing it is
notbackwards compatible
(20:24:31) rlaager: I'm talking for HEAD.
(20:24:41) Ethan Blanton (Paco-Paco): oh, I think that's a
good approach, yes
(20:24:53) rlaager: The way I've described is how I
*expected* it to work, having not read the documentation.
(20:25:09) Ethan Blanton (Paco-Paco): I'm convinced
(20:27:04) Stu Tomlinson (nosnilmot): rlaager: this, I
assume, breaks the generic-ness of signals, by assuming
that any that return values return booleans?
(20:27:26) Ethan Blanton (Paco-Paco): please break it
(20:27:33) Ethan Blanton (Paco-Paco): we already have
out-parameters
(20:27:42) rlaager: nosnilmot: from what I can see, the
return type is handled as a (void *)... so I'm checking that
ret_value != NULL
(20:27:57) rlaager: nosnilmot: that's the correct way to do it,
right?
...
(20:29:01) Ethan Blanton (Paco-Paco): allowing a
meaningful return value is an over-engineering
(20:30:07) rlaager: even after this patch, you should be able
to return meaningful return values
(20:30:15) rlaager: it'll just short-circuit on the first handler
that does
committer: Luke Schierer <lschiere@pidgin.im>
| 5872 | 1 | /** |
| 2 | * @file server.h Server API | |
| 3 | * @ingroup core | |
| 4 | * | |
| 5 | * gaim | |
| 6 | * | |
| 8046 | 7 | * Gaim is the legal property of its developers, whose names are too numerous |
| 8 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 9 | * source distribution. | |
|
6787
7d8e0ba98f68
[gaim-migrate @ 7326]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
10 | * |
| 5872 | 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | */ | |
| 25 | #ifndef _GAIM_SERVER_H_ | |
| 26 | #define _GAIM_SERVER_H_ | |
| 27 | ||
| 28 | #include "account.h" | |
| 29 | #include "conversation.h" | |
|
9718
aeee69c6c784
[gaim-migrate @ 10579]
Mark Doliner <markdoliner@pidgin.im>
parents:
9584
diff
changeset
|
30 | #include "prpl.h" |
| 5872 | 31 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
32 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
33 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
34 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
35 | |
| 5872 | 36 | void serv_touch_idle(GaimConnection *); |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7032
diff
changeset
|
37 | int serv_send_im(GaimConnection *, const char *, const char *, GaimConvImFlags); |
|
6059
9934c862ca14
[gaim-migrate @ 6509]
John Silvestri <john.silvestri@gmail.com>
parents:
5954
diff
changeset
|
38 | void serv_get_info(GaimConnection *, const char *); |
|
9934c862ca14
[gaim-migrate @ 6509]
John Silvestri <john.silvestri@gmail.com>
parents:
5954
diff
changeset
|
39 | void serv_get_dir(GaimConnection *, const char *); |
| 5872 | 40 | void serv_set_idle(GaimConnection *, int); |
|
5954
58e43cf2dc1f
[gaim-migrate @ 6398]
Mark Doliner <markdoliner@pidgin.im>
parents:
5944
diff
changeset
|
41 | void serv_set_info(GaimConnection *, const char *); |
|
6059
9934c862ca14
[gaim-migrate @ 6509]
John Silvestri <john.silvestri@gmail.com>
parents:
5954
diff
changeset
|
42 | int serv_send_typing(GaimConnection *, const char *, int); |
| 5872 | 43 | void serv_change_passwd(GaimConnection *, const char *, const char *); |
|
9285
9cedf5d26577
[gaim-migrate @ 10088]
Mark Doliner <markdoliner@pidgin.im>
parents:
8568
diff
changeset
|
44 | void serv_add_buddy(GaimConnection *, GaimBuddy *); |
| 5872 | 45 | void serv_add_buddies(GaimConnection *, GList *); |
|
9285
9cedf5d26577
[gaim-migrate @ 10088]
Mark Doliner <markdoliner@pidgin.im>
parents:
8568
diff
changeset
|
46 | void serv_remove_buddy(GaimConnection *, GaimBuddy *, GaimGroup *); |
|
9cedf5d26577
[gaim-migrate @ 10088]
Mark Doliner <markdoliner@pidgin.im>
parents:
8568
diff
changeset
|
47 | void serv_remove_buddies(GaimConnection *, GList *, GList *); |
|
9cedf5d26577
[gaim-migrate @ 10088]
Mark Doliner <markdoliner@pidgin.im>
parents:
8568
diff
changeset
|
48 | void serv_remove_group(GaimConnection *, GaimGroup *); |
|
9cedf5d26577
[gaim-migrate @ 10088]
Mark Doliner <markdoliner@pidgin.im>
parents:
8568
diff
changeset
|
49 | void serv_move_buddy(GaimBuddy *, GaimGroup *, GaimGroup *); |
|
9cedf5d26577
[gaim-migrate @ 10088]
Mark Doliner <markdoliner@pidgin.im>
parents:
8568
diff
changeset
|
50 | void serv_rename_group(GaimConnection *, const char *, GaimGroup *, GList *); |
| 5872 | 51 | void serv_add_permit(GaimConnection *, const char *); |
| 52 | void serv_add_deny(GaimConnection *, const char *); | |
| 53 | void serv_rem_permit(GaimConnection *, const char *); | |
| 54 | void serv_rem_deny(GaimConnection *, const char *); | |
| 55 | void serv_set_permit_deny(GaimConnection *); | |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9718
diff
changeset
|
56 | void serv_warn(GaimConnection *, const char *, gboolean); |
| 5872 | 57 | void serv_set_dir(GaimConnection *, const char *, const char *, |
| 58 | const char *, const char *, const char *, | |
| 59 | const char *, const char *, int); | |
| 60 | void serv_dir_search(GaimConnection *, const char *, const char *, | |
| 61 | const char *, const char *, const char *, const char *, | |
| 62 | const char *, const char *); | |
| 63 | void serv_join_chat(GaimConnection *, GHashTable *); | |
|
8562
7e73676d1772
[gaim-migrate @ 9306]
Christopher O'Brien <siege@pidgin.im>
parents:
8046
diff
changeset
|
64 | void serv_reject_chat(GaimConnection *, GHashTable *); |
| 5872 | 65 | void serv_chat_invite(GaimConnection *, int, const char *, const char *); |
| 66 | void serv_chat_leave(GaimConnection *, int); | |
|
6059
9934c862ca14
[gaim-migrate @ 6509]
John Silvestri <john.silvestri@gmail.com>
parents:
5954
diff
changeset
|
67 | void serv_chat_whisper(GaimConnection *, int, const char *, const char *); |
|
9934c862ca14
[gaim-migrate @ 6509]
John Silvestri <john.silvestri@gmail.com>
parents:
5954
diff
changeset
|
68 | int serv_chat_send(GaimConnection *, int, const char *); |
| 6695 | 69 | void serv_alias_buddy(GaimBuddy *); |
| 5872 | 70 | void serv_got_alias(GaimConnection *gc, const char *who, const char *alias); |
| 71 | void serv_got_typing(GaimConnection *gc, const char *name, int timeout, | |
| 72 | GaimTypingState state); | |
| 73 | void serv_set_buddyicon(GaimConnection *gc, const char *filename); | |
| 74 | void serv_got_typing_stopped(GaimConnection *gc, const char *name); | |
| 75 | void serv_got_im(GaimConnection *gc, const char *who, const char *msg, | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7032
diff
changeset
|
76 | GaimConvImFlags imflags, time_t mtime); |
| 5872 | 77 | void serv_got_chat_invite(GaimConnection *gc, const char *name, |
| 78 | const char *who, const char *message, | |
| 79 | GHashTable *data); | |
| 80 | GaimConversation *serv_got_joined_chat(GaimConnection *gc, | |
| 81 | int id, const char *name); | |
| 82 | void serv_got_chat_left(GaimConnection *g, int id); | |
|
6059
9934c862ca14
[gaim-migrate @ 6509]
John Silvestri <john.silvestri@gmail.com>
parents:
5954
diff
changeset
|
83 | void serv_got_chat_in(GaimConnection *g, int id, const char *who, |
|
9584
1a6198375303
[gaim-migrate @ 10427]
Nathan Fredrickson <nathan@silverorange.com>
parents:
9466
diff
changeset
|
84 | GaimConvChatFlags chatflags, const char *message, time_t mtime); |
|
9466
b6425eab60ca
[gaim-migrate @ 10291]
Daniel Atallah <datallah@pidgin.im>
parents:
9285
diff
changeset
|
85 | void serv_send_file(GaimConnection *gc, const char *who, const char *file); |
| 5872 | 86 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
87 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
88 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
89 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
90 | |
| 5872 | 91 | #endif /* _GAIM_SERVER_H_ */ |