su 1.12.11devel
|
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 SU_TAG_IO_H 00026 00027 #define SU_TAG_IO_H 00028 00038 #ifndef SU_TAG_H 00039 #include <sofia-sip/su_tag.h> 00040 #endif 00041 #ifndef SU_H 00042 #include <sofia-sip/su.h> 00043 #endif 00044 00045 #include <stdio.h> 00046 00047 SOFIA_BEGIN_DECLS 00048 00049 SOFIAPUBFUN void tl_print(FILE *f, char const *title, tagi_t const lst[]); 00050 00051 #if SU_INLINE_TAG_CAST 00052 su_inline tag_value_t tag_socket_v(su_socket_t v) { 00053 return (tag_value_t)v; 00054 } 00055 su_inline tag_value_t tag_socket_vr(su_socket_t *vp) { 00056 return (tag_value_t)vp; 00057 } 00058 #else 00059 #define tag_socket_v(v) (tag_value_t)(v) 00060 #define tag_socket_vr(v) (tag_value_t)(v) 00061 #endif 00062 00063 SOFIA_END_DECLS 00064 00065 #endif