6 * Copyright (C) 2005, Thomas Butter <butter@uni-mannheim.de>
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.
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.
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
23 #ifndef _GAIM_SIPMSG_H
24 #define _GAIM_SIPMSG_H
29 int response
; /* 0 means request, otherwise response code */
37 struct siphdrelement
{
42 struct sipmsg
*sipmsg_parse_msg(const gchar
*msg
);
43 struct sipmsg
*sipmsg_parse_header(const gchar
*header
);
44 void sipmsg_add_header(struct sipmsg
*msg
, const gchar
*name
, const gchar
*value
);
45 void sipmsg_add_header_pos(struct sipmsg
*msg
, const gchar
*name
, const gchar
*value
, int pos
);
46 void sipmsg_free(struct sipmsg
*msg
);
47 gchar
*sipmsg_find_header(struct sipmsg
*msg
, const gchar
*name
);
48 void sipmsg_remove_header(struct sipmsg
*msg
, const gchar
*name
);
49 void sipmsg_print(const struct sipmsg
*msg
);
50 char *sipmsg_to_string(const struct sipmsg
*msg
);
51 #endif /* _GAIM_SIPMSG_H */