4 * Copyright (C) 2005, Thomas Butter <butter@uni-mannheim.de>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
21 #ifndef PURPLE_SIMPLE_SIPMSG_H
22 #define PURPLE_SIMPLE_SIPMSG_H
27 int response
; /* 0 means request, otherwise response code */
35 struct siphdrelement
{
40 struct sipmsg
*sipmsg_parse_msg(const gchar
*msg
);
41 struct sipmsg
*sipmsg_parse_header(const gchar
*header
);
42 void sipmsg_add_header(struct sipmsg
*msg
, const gchar
*name
, const gchar
*value
);
43 void sipmsg_free(struct sipmsg
*msg
);
44 const gchar
*sipmsg_find_header(struct sipmsg
*msg
, const gchar
*name
);
45 void sipmsg_remove_header(struct sipmsg
*msg
, const gchar
*name
);
46 void sipmsg_print(const struct sipmsg
*msg
);
47 char *sipmsg_to_string(const struct sipmsg
*msg
);
49 #endif /* PURPLE_SIMPLE_SIPMSG_H */