su 1.12.11devel
Loading...
Searching...
No Matches
su_tag_io.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 SU_TAG_IO_H
27#define SU_TAG_IO_H
28
38#ifndef SU_TAG_H
39#include <sofia-sip/su_tag.h>
40#endif
41#ifndef SU_H
42#include <sofia-sip/su.h>
43#endif
44
45#include <stdio.h>
46
47SOFIA_BEGIN_DECLS
48
49SOFIAPUBFUN void tl_print(FILE *f, char const *title, tagi_t const lst[]);
50
51#if SU_INLINE_TAG_CAST
52su_inline tag_value_t tag_socket_v(su_socket_t v) {
53 return (tag_value_t)v;
54}
55su_inline tag_value_t tag_socket_vr(su_socket_t *vp) {
56 return (tag_value_t)vp;
57}
58#else
59#define tag_socket_v(v) (tag_value_t)(v)
60#define tag_socket_vr(v) (tag_value_t)(v)
61#endif
62
63SOFIA_END_DECLS
64
65#endif
void tl_print(FILE *f, char const *title, tagi_t const lst[])
\
Definition su_tag_io.c:48
Tag item.
Definition su_tag.h:63
Socket and network address interface.
int su_socket_t
Socket descriptor type.
Definition su.h:128
#define SOFIAPUBFUN
SOFIAPUBFUN declares an exported function.
Definition su_config.h:66
#define su_inline
Define as suitable declarator static inline functions.
Definition su_configure.h:90
\ Object-oriented tags and tag list interface.
intptr_t tag_value_t
Tag item value.
Definition su_tag.h:57

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