⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osip_port.h

📁 osip库中的链表
💻 H
字号:
/*  The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)  Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Aymeric MOIZARD jack@atosc.org    This library is free software; you can redistribute it and/or  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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*/#ifndef _OSIP_PORT_H_#define _OSIP_PORT_H_/* Include necessary headers for osip */#include <stdio.h>#ifdef __cplusplusextern "C"{#endif/**************************//* MALLOC redirections    *//**************************//* MINISIZE code */#ifndef osip_malloc#define osip_malloc(S) malloc(S)#endif#ifndef osip_realloc#define osip_realloc(P,S) realloc(P,S)#endif#ifndef osip_free#define osip_free(P) { if (P!=NULL) { free(P);} }#endif#ifdef WIN32#define alloca _alloca#endif/**************************//* TIMER support          *//**************************/#define SP   " \0"//  void osip_usleep (int useconds);#define osip_atoi  atoi#define osip_strcasecmp  strcasecmp#define osip_strncasecmp  strncasecmp#ifdef __cplusplus}#endif#define OSIP_SUCCESS               0#define OSIP_UNDEFINED_ERROR      -1#define OSIP_BADPARAMETER         -2#define OSIP_WRONG_STATE          -3#define OSIP_NOMEM                -4#define OSIP_SYNTAXERROR          -5#define OSIP_NOTFOUND             -6#define OSIP_API_NOT_INITIALIZED  -7#define OSIP_NO_NETWORK           -10#define OSIP_PORT_BUSY            -11#define OSIP_UNKNOWN_HOST         -12#define OSIP_DISK_FULL            -30#define OSIP_NO_RIGHTS            -31#define OSIP_FILE_NOT_EXIST       -32#define OSIP_TIMEOUT              -50#define OSIP_TOOMUCHCALL          -51#define OSIP_WRONG_FORMAT         -52#define OSIP_NOCOMMONCODEC        -53#endif                          /* _PORT_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -