Mercurial > pidgin
annotate src/protocols/simple/sipmsg.h @ 14122:dabbcb9b013d
[gaim-migrate @ 16759]
This initializes threads for glib and dbus, because under some
circumstances multithreaded libraries are causing dbus badness
(namely, gnome-vfs). This fix doesn't really belong in Gaim, but in
the interest of expedience (we don't want to wait for upstream
libraries to get their initializations all worked around to make
things safe) the fix goes here. Note that all Gaim frontends will
have to initialize glib threads if other threaded libraries which
interact with glib or dbus or what-have-you come into play.
committer: Tailor Script <tailor@pidgin.im>
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Mon, 14 Aug 2006 21:46:17 +0000 |
| parents | d594f0466585 |
| children |
| 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 | |
|
14069
d594f0466585
[gaim-migrate @ 16690]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11829
diff
changeset
|
42 struct sipmsg *sipmsg_parse_msg(const gchar *msg); |
|
d594f0466585
[gaim-migrate @ 16690]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11829
diff
changeset
|
43 struct sipmsg *sipmsg_parse_header(const gchar *header); |
|
d594f0466585
[gaim-migrate @ 16690]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11829
diff
changeset
|
44 void sipmsg_add_header(struct sipmsg *msg, const gchar *name, const gchar *value); |
| 11181 | 45 void sipmsg_free(struct sipmsg *msg); |
|
14069
d594f0466585
[gaim-migrate @ 16690]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11829
diff
changeset
|
46 gchar *sipmsg_find_header(struct sipmsg *msg, const gchar *name); |
|
d594f0466585
[gaim-migrate @ 16690]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11829
diff
changeset
|
47 void sipmsg_remove_header(struct sipmsg *msg, const gchar *name); |
|
d594f0466585
[gaim-migrate @ 16690]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11829
diff
changeset
|
48 void sipmsg_print(const struct sipmsg *msg); |
|
d594f0466585
[gaim-migrate @ 16690]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11829
diff
changeset
|
49 char *sipmsg_to_string(const struct sipmsg *msg); |
| 11181 | 50 #endif /* _GAIM_SIMPLE_H */ |
