Mercurial > pidgin
annotate src/protocols/simple/sipmsg.h @ 13131:47ecef83e2e1
[gaim-migrate @ 15493]
A lot of our conversation code assumes that conv->account != NULL.
This is a completely invalid assumption. If you have a conversation
open on an account, and you delete the account, Gaim should leave the
conversation window open and set the account to NULL and handle
everything appropriately. Currently it does not, and that makes me
a little unhappy.
To reproduce this:
1. Open a conversation with someone
2. Delete the account that you're sending messages from
3. Watch the assertion failures scroll by in the debug window
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Mon, 06 Feb 2006 05:43:09 +0000 |
| parents | 4669e7461968 |
| children | d594f0466585 |
| rev | line source |
|---|---|
| 11181 | 1 /** |
| 2 * @file sipmsg.h | |
| 3 * | |
| 4 * gaim | |
| 5 * | |
| 6 * Copyright (C) 2005, Thomas Butter <butter@uni-mannheim.de> | |
| 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_SIPMSG_H | |
| 24 #define _GAIM_SIPMSG_H | |
| 25 | |
| 26 #include <glib.h> | |
| 27 | |
| 28 struct sipmsg { | |
|
11829
4669e7461968
[gaim-migrate @ 14120]
Richard Laager <rlaager@wiktel.com>
parents:
11181
diff
changeset
|
29 int response; /* 0 means request, otherwise response code */ |
| 11181 | 30 gchar *method; |
| 31 gchar *target; | |
| 32 GSList *headers; | |
| 33 int bodylen; | |
| 34 gchar *body; | |
| 35 }; | |
| 36 | |
| 37 struct siphdrelement { | |
| 38 gchar *name; | |
| 39 gchar *value; | |
| 40 }; | |
| 41 | |
| 42 struct sipmsg *sipmsg_parse_msg(gchar *msg); | |
| 43 struct sipmsg *sipmsg_parse_header(gchar *header); | |
| 44 void sipmsg_add_header(struct sipmsg *msg, gchar *name, gchar *value); | |
| 45 void sipmsg_free(struct sipmsg *msg); | |
| 46 gchar *sipmsg_find_header(struct sipmsg *msg, gchar *name); | |
| 47 void sipmsg_remove_header(struct sipmsg *msg, gchar *name); | |
| 48 void sipmsg_print(struct sipmsg *msg); | |
| 49 char *sipmsg_to_string(struct sipmsg *msg); | |
| 50 #endif /* _GAIM_SIMPLE_H */ |
