su_tag_io.h 1.67 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3 4 5 6 7
/*
 * This file is part of the Sofia-SIP package
 *
 * Copyright (C) 2005 Nokia Corporation.
 *
 * Contact: Pekka Pessi <pekka.pessi@nokia.com>
 *
8
 * This library is free software; you can redistribute it and/or
Pekka Pessi's avatar
Pekka Pessi committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 *
 */

Pekka Pessi's avatar
Pekka Pessi committed
25 26
#ifndef SU_TAG_IO_H
/** Defined when <sofia-sip/su_tag_io.h> has been included */
Pekka Pessi's avatar
Pekka Pessi committed
27 28
#define SU_TAG_IO_H 

Pekka Pessi's avatar
Pekka Pessi committed
29
/**@SU_TAG
Pekka Pessi's avatar
Pekka Pessi committed
30
 * @file sofia-sip/su_tag_io.h
Pekka Pessi's avatar
Pekka Pessi committed
31 32 33 34 35 36 37 38
 * @brief I/O interface for tag lists
 *
 * @author Pekka Pessi <Pekka.Pessi@nokia.com>
 * 
 * @date Created: Wed Feb 21 12:10:06 2001 ppessi
 */

#ifndef SU_TAG_H
39
#include <sofia-sip/su_tag.h>
Pekka Pessi's avatar
Pekka Pessi committed
40
#endif
41 42 43 44
#ifndef SU_H
#include <sofia-sip/su.h>
#endif

Pekka Pessi's avatar
Pekka Pessi committed
45 46
#include <stdio.h>

47 48
SOFIA_BEGIN_DECLS

49
SOFIAPUBFUN void tl_print(FILE *f, char const *title, tagi_t const lst[]);
Pekka Pessi's avatar
Pekka Pessi committed
50

51 52 53 54 55 56 57 58 59 60 61 62
#if SU_HAVE_INLINE
su_inline tag_value_t tag_socket_v(su_socket_t v) {
  return (tag_value_t)v;
}
su_inline tag_value_t tag_socket_vr(su_socket_t *vp) { 
  return (tag_value_t)vp; 
}
#else
#define tag_socket_v(v)   (tag_value_t)(v)
#define tag_socket_vr(v)  (tag_value_t)(v)
#endif

63 64
SOFIA_END_DECLS

Pekka Pessi's avatar
Pekka Pessi committed
65
#endif