http  1.12.11devel
http_tag_class.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Sofia-SIP package
3  *
4  * Copyright (C) 2005 Nokia Corporation.
5  *
6  * Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; either version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24 
25 #ifndef HTTP_TAG_CLASS_H
26 
27 #define HTTP_TAG_CLASS_H
28 
37 #ifndef SU_TAG_CLASS_H
38 #include <sofia-sip/su_tag_class.h>
39 #endif
40 
41 #ifndef MSG_TAG_CLASS_H
43 #endif
44 
45 SOFIA_BEGIN_DECLS
46 
48 #define HTTPHDRTAG_NAMED_TYPEDEF(n, t) \
49 {{ TAG_NAMESPACE, #n, httphdrtag_class, \
50  (tag_value_t)http_##t##_class }}
51 
53 #define HTTPHDRTAG_TYPEDEF(t) HTTPHDRTAG_NAMED_TYPEDEF(t, t)
54 
56 #define HTTPSTRTAG_TYPEDEF(t) \
57 {{ TAG_NAMESPACE, #t "_str", httpstrtag_class, \
58  (tag_value_t)http_##t##_class }}
59 
61 #define HTTPMSGTAG_TYPEDEF(t) \
62  {{ TAG_NAMESPACE, #t, httpmsgtag_class, \
63  (tag_value_t)HTTP_PROTOCOL_TAG }}
64 
67  tagi_t const *src,
68  void **bb);
69 
70 SOFIA_END_DECLS
71 
72 #endif /* !defined(HTTP_TAG_CLASS_H) */
#define SOFIAPUBFUN
tagi_t * httptag_filter(tagi_t *dst, tagi_t const f[], tagi_t const *src, void **bb)
Filter a HTTP header structure.
Definition: http_tag_class.c:101

Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.