Mercurial > pidgin.yaz
annotate plugins/tcl/tcl_gaim.h @ 13664:4132d997ccec
[gaim-migrate @ 16066]
Fix Coverity CID 45: Check to make sure a channel 2 ICBM actually
contains an IP address TLV before attempting to use it. This
avoids a crash when the server sends us an abnormal channel 2
ICBM. I'm not sure if that ever happens.
Fix Coverity CID 204: Don't attempt to send data over a FLAP
BOS connection that doesn't exist. This should never happen
because the account should get disconnected first.
Fix Coverity CID 205: Don't check that a variable 'od' which
we know is valid is not equal to NULL in aim_search_address()
in family_userlookup.c
Fix Coverity CID 206: Don't check that the variable 'od' which
we know is valid is not equal to NULL in aim_chat_join() in
family_oservice.c
Fix Coverity CID 207: I neglected to remove a "return;" line from
aim_admin_setnick() in family_admin.c which caused setting your
AIM screen name formatting to not work.
Fix Coverity CID 208: Remove a duplicate call to
gaim_connection_get_account() in peer_connection_propose() in peer.c.
Fix Coverity CID 209: Remove the unused variable "username" from
incomingim_chan2() in oscar.c.
Fix Coverity CID 210: Remove the unused variable "account"
from peer_connection_listen_cb() in peer.c.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 20 Apr 2006 04:45:06 +0000 |
parents | fc464a0abccc |
children | a84523152a24 |
rev | line source |
---|---|
6694 | 1 /** |
2 * @file tcl_gaim.h Gaim Tcl definitions | |
3 * | |
4 * gaim | |
5 * | |
6 * Copyright (C) 2003 Ethan Blanton <eblanton@cs.purdue.edu> | |
7 * | |
8 * This program is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 */ | |
22 | |
23 #ifndef _GAIM_TCL_GAIM_H_ | |
24 #define _GAIM_TCL_GAIM_H_ | |
25 | |
26 #include <tcl.h> | |
27 | |
28 #include "internal.h" | |
29 #include "plugin.h" | |
30 #include "value.h" | |
31 | |
32 struct tcl_signal_handler { | |
10597 | 33 Tcl_Obj *signal; |
6694 | 34 Tcl_Interp *interp; |
35 | |
36 void *instance; | |
10597 | 37 Tcl_Obj *namespace; |
38 /* These following two are temporary during setup */ | |
39 Tcl_Obj *args; | |
6694 | 40 Tcl_Obj *proc; |
41 | |
42 GaimValue *returntype; | |
43 int nargs; | |
44 GaimValue **argtypes; | |
45 }; | |
46 | |
47 extern GaimPlugin *_tcl_plugin; | |
48 | |
49 GaimPlugin *tcl_interp_get_plugin(Tcl_Interp *interp); | |
50 | |
12323
fc464a0abccc
[gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents:
10597
diff
changeset
|
51 void tcl_signal_init(void); |
6694 | 52 void tcl_signal_handler_free(struct tcl_signal_handler *handler); |
53 void tcl_signal_cleanup(Tcl_Interp *interp); | |
54 gboolean tcl_signal_connect(struct tcl_signal_handler *handler); | |
55 void tcl_signal_disconnect(void *instance, const char *signal, Tcl_Interp *interp); | |
56 | |
57 Tcl_ObjCmdProc tcl_cmd_account; | |
58 Tcl_ObjCmdProc tcl_cmd_signal_connect; | |
59 Tcl_ObjCmdProc tcl_cmd_buddy; | |
60 Tcl_ObjCmdProc tcl_cmd_connection; | |
61 Tcl_ObjCmdProc tcl_cmd_conversation; | |
62 Tcl_ObjCmdProc tcl_cmd_core; | |
63 Tcl_ObjCmdProc tcl_cmd_debug; | |
64 Tcl_ObjCmdProc tcl_cmd_notify; | |
65 Tcl_ObjCmdProc tcl_cmd_prefs; | |
66 Tcl_ObjCmdProc tcl_cmd_send_im; | |
67 Tcl_ObjCmdProc tcl_cmd_signal; | |
68 Tcl_ObjCmdProc tcl_cmd_unload; | |
69 | |
70 #endif /* _GAIM_TCL_GAIM_H_ */ |