http 1.12.10
|
00001 /* 00002 * This file is part of the Sofia-SIP package 00003 * 00004 * Copyright (C) 2005 Nokia Corporation. 00005 * 00006 * Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden> 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * as published by the Free Software Foundation; either version 2.1 of 00011 * the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, but 00014 * WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00021 * 02110-1301 USA 00022 * 00023 */ 00024 00025 #ifndef HTTP_TAG_CLASS_H 00026 00027 #define HTTP_TAG_CLASS_H 00028 00037 #ifndef SU_TAG_CLASS_H 00038 #include <sofia-sip/su_tag_class.h> 00039 #endif 00040 00041 #ifndef MSG_TAG_CLASS_H 00042 #include <sofia-sip/msg_tag_class.h> 00043 #endif 00044 00045 SOFIA_BEGIN_DECLS 00046 00048 #define HTTPHDRTAG_NAMED_TYPEDEF(n, t) \ 00049 {{ TAG_NAMESPACE, #n, httphdrtag_class, \ 00050 (tag_value_t)http_##t##_class }} 00051 00053 #define HTTPHDRTAG_TYPEDEF(t) HTTPHDRTAG_NAMED_TYPEDEF(t, t) 00054 00056 #define HTTPSTRTAG_TYPEDEF(t) \ 00057 {{ TAG_NAMESPACE, #t "_str", httpstrtag_class, \ 00058 (tag_value_t)http_##t##_class }} 00059 00061 #define HTTPMSGTAG_TYPEDEF(t) \ 00062 {{ TAG_NAMESPACE, #t, httpmsgtag_class, \ 00063 (tag_value_t)HTTP_PROTOCOL_TAG }} 00064 00066 SOFIAPUBFUN tagi_t *httptag_filter(tagi_t *dst, tagi_t const f[], 00067 tagi_t const *src, 00068 void **bb); 00069 00070 SOFIA_END_DECLS 00071 00072 #endif /* !defined(HTTP_TAG_CLASS_H) */