ospxmlattr.h
来自「mgcp协议源代码。支持多种编码:g711」· C头文件 代码 · 共 89 行
H
89 行
/**########################################################################*########################################################################*########################################################################* * 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. * *******#########################################################################*#########################################################################*#########################################################################*//* * ospxmlattr.h - Structures and prototypes for generic XML attributes. */#ifndef _OSPXMLATTR_H#define _OSPXMLATTR_H#include "osp.h"#include "osplist.h"/* * An XMLAttr structure represents an XML attribute in its * natural form ("natural" in the sense of easiest to reference * in code). It includes the attribute's name, as well as the * character value. The structure is defined as a linked list * so that multiple attributes (e.g. for the same element) can * be linked together. */typedef struct OSPSXMLAttr{ OSPTLISTLINK ospmXMLAttrLink; const char *ospmXMLAttrName; const char *ospmXMLAttrValue;}OSPTXMLATTR;#define OSPC_MAX_ID_LEN 25/**//*-----------------------------------------------------------------------* * macros that emulate functions *-----------------------------------------------------------------------*//* * Note: all macros are also implemented as functions in ospxmlattr.c. * For implementation details, see the comments in that file. To replace * a macro with a true function, simply comment out the macro definition * below. */#ifndef OSPC_DEBUG#define OSPPXMLAttrGetName(ospvXMLAttr) (ospvXMLAttr)?((ospvXMLAttr)->ospmXMLAttrName):OSPC_OSNULL#define OSPPXMLAttrGetValue(ospvXMLAttr) (ospvXMLAttr)?((ospvXMLAttr)->ospmXMLAttrValue):OSPC_OSNULL#endif/**//*-----------------------------------------------------------------------* * function prototypes *-----------------------------------------------------------------------*/OSPTXMLATTR *OSPPXMLAttrNew(const unsigned char *, const unsigned char *);void OSPPXMLAttrDelete(OSPTXMLATTR **);#ifndef OSPPXMLAttrGetNameconst char *OSPPXMLAttrGetName(OSPTXMLATTR *);#endif#ifndef OSPPXMLAttrGetValueconst char *OSPPXMLAttrGetValue(OSPTXMLATTR *);#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?