1
/* $Id: types.h 3553 2011-05-05 06:14:19Z nanang $ */
3
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
4
* Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
#ifndef __PJNATH_TYPES_H__
21
#define __PJNATH_TYPES_H__
25
* @brief PJNATH types.
29
#include <pjnath/config.h>
32
* @defgroup PJNATH NAT Traversal Helper Library
39
* This constant describes a number to be used to identify an invalid TURN
42
#define PJ_TURN_INVALID_CHANNEL 0xFFFF
46
* Initialize pjnath library.
48
* @return Initialization status.
50
PJ_DECL(pj_status_t) pjnath_init(void);
54
* Display error to the log.
56
* @param sender The sender name.
57
* @param title Title message.
58
* @param status The error status.
60
#if PJNATH_ERROR_LEVEL <= PJ_LOG_MAX_LEVEL
61
PJ_DECL(void) pjnath_perror(const char *sender, const char *title,
64
# define pjnath_perror(sender, title, status)
75
#endif /* __PJNATH_TYPES_H__ */