Alexandre Lision | 8af73cb | 2013-12-10 14:11:20 -0500 | [diff] [blame] | 1 | /* $Id$ */ |
| 2 | /* |
| 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) |
| 4 | * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> |
| 5 | * |
| 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. |
| 10 | * |
| 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. |
| 15 | * |
| 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 |
| 19 | */ |
| 20 | #ifndef __PJNATH_TYPES_H__ |
| 21 | #define __PJNATH_TYPES_H__ |
| 22 | |
| 23 | /** |
| 24 | * @file types.h |
| 25 | * @brief PJNATH types. |
| 26 | */ |
| 27 | |
| 28 | #include <pj/types.h> |
| 29 | #include <pjnath/config.h> |
| 30 | |
| 31 | /** |
| 32 | * @defgroup PJNATH NAT Traversal Helper Library |
| 33 | * @{ |
| 34 | */ |
| 35 | |
| 36 | PJ_BEGIN_DECL |
| 37 | |
| 38 | /** |
| 39 | * This constant describes a number to be used to identify an invalid TURN |
| 40 | * channel number. |
| 41 | */ |
| 42 | #define PJ_TURN_INVALID_CHANNEL 0xFFFF |
| 43 | |
| 44 | |
| 45 | /** |
| 46 | * Initialize pjnath library. |
| 47 | * |
| 48 | * @return Initialization status. |
| 49 | */ |
| 50 | PJ_DECL(pj_status_t) pjnath_init(void); |
| 51 | |
| 52 | |
| 53 | /** |
| 54 | * Display error to the log. |
| 55 | * |
| 56 | * @param sender The sender name. |
| 57 | * @param title Title message. |
| 58 | * @param status The error status. |
| 59 | */ |
| 60 | #if PJNATH_ERROR_LEVEL <= PJ_LOG_MAX_LEVEL |
| 61 | PJ_DECL(void) pjnath_perror(const char *sender, const char *title, |
| 62 | pj_status_t status); |
| 63 | #else |
| 64 | # define pjnath_perror(sender, title, status) |
| 65 | #endif |
| 66 | |
| 67 | |
| 68 | |
| 69 | PJ_END_DECL |
| 70 | |
| 71 | /** |
| 72 | * @} |
| 73 | */ |
| 74 | |
| 75 | #endif /* __PJNATH_TYPES_H__ */ |
| 76 | |