ospauthcnf.c

来自「mgcp协议源代码。支持多种编码:g711」· C语言 代码 · 共 85 行

C
85
字号
/**########################################################################*########################################################################*########################################################################*                                                               *   COPYRIGHT (c) 1998, 1999 by TransNexus, LLC                          *                                                                    *   This software contains proprietary and confidential information  *   of TransNexus, LLC. Except as may be set forth in the license    *   agreement under which this software is supplied, use, disclosure, *   or reproduction is prohibited without the prior, express, written*   consent of TransNexus, LLC.                                      *                                     *******#########################################################################*#########################################################################*#########################################################################*//* * ospauthcnf.c - OSP authorisation confirmation functions */#include "osp.h"#include "osperrno.h"#include "ospbfr.h"#include "ospxmlattr.h"#include "ospxmlelem.h"#include "ospmsgattr.h"#include "ospmsgelem.h"#include "ospauthcnf.h"#include "ospstatus.h"#include "osputils.h"/*-----------------------------------------------------------------------* * OSPPAuthCnfDelete() - destroy specified AuthCnf object *-----------------------------------------------------------------------*/voidOSPPAuthCnfDelete(    OSPTAUTHCNF **ospvAuthCnf){    if (*ospvAuthCnf != OSPC_OSNULL)    {        if (OSPPAuthCnfHasStatus(*ospvAuthCnf))        {            OSPPStatusDelete(&((*ospvAuthCnf)->ospmAuthCnfStatus));        }        OSPM_FREE(*ospvAuthCnf);        *ospvAuthCnf = OSPC_OSNULL;    }}#ifdef OSPC_DEBUG/**//*-----------------------------------------------------------------------* * OSPPAuthCnfHasStatus() - does the authorisation confirmation have * a status? *-----------------------------------------------------------------------*/unsigned                            /* returns non-zero if number exists */OSPPAuthCnfHasStatus(    OSPTAUTHCNF *ospvAuthCnf       /* authorisation confirmation effected */){    unsigned ospvHasStatus = OSPC_FALSE;    if(ospvAuthCnf != OSPC_OSNULL)    {        ospvHasStatus = ((ospvAuthCnf)->ospmAuthCnfStatus != OSPC_OSNULL);    }    return(ospvHasStatus);}#endif /* OSPC_DEBUG */

⌨️ 快捷键说明

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