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

📄 parsfp.h

📁 ipt网关源码
💻 H
字号:
/**********************************************************************************************
* 
* $ProjectName: X:\SIPROJ\VOIP\HOST\WIN_NT\DEMOS\VOIPGATE\PROJECT.PJ $
* $ProjectRevision: 1.4 $
* $Label$
* $Revision: 1.7 $ - $Date: 1997/08/17 10:58:48 $
* 
**********************************************************************************************/

#ifndef _PARSFP_H
#define  _PARSFP_H                

#ifdef __cplusplus
extern "C" {
#endif /* def __cplusplus */



      ///////////////////////////////////////////////////////
      ///                                                 ///
      ///      DEFINITION OF GLOBAL FUNCTIONS              ///
      ///                                                 ///
      ///////////////////////////////////////////////////////



/*****FUNCTION***************************************************
*        NAME : gateConfiguration
* DESCRIPTION : Static function to read .cfg file to fill in 
*                 Session
*
*       INPUT : config file name
*      OUTPUT : None
*     RETURNS : Ssuccess or fail
*    CAUTIONS : None
****************************************************************/
BOOL gateConfiguration(char *);



      ///////////////////////////////////////////////////////
      ///                                                 ///
      ///      DECLARATION OF LOCAL FUNCTIONS             ///
      ///                                                 ///
      ///////////////////////////////////////////////////////


/*******************************************************************
 *       NAME : ut_aschex(msg)
 *DESCRIPTION : Utility to convert ascii hex characters to binary.
 *      INPUT : msg = Pointer to ascii string.
 *     OUTPUT : None.
 *    RETURNS : Binary value of msg.
 *   CAUTIONS : None.
 *******************************************************************/
long ut_aschex(char *);

/*******************************************************************
 *       NAME : ut_aschex(msg)
 *DESCRIPTION : Utility to convert ascii characters to binary.
 *      INPUT : msg = Pointer to ascii string.
 *     OUTPUT : None.
 *    RETURNS : Binary value of msg.
 *   CAUTIONS : None.
 *******************************************************************/
long ut_asnum(char *);


/****************************************************************
*        NAME : skip
* DESCRIPTION : Gets line of data file, and converts text to numbers 
*               Input line may be of the form:
*               TITLE = 5 7 aaaa
*               Skip() deals only with seconf half of line (5 7 aaaa etc.)
*
*               If looking for string only vnum is 0 and *n is useless
*               If looking for value vnum is 1 and *name is useless
*
*
*       INPUT : Data line, array of integers which will be returned,
*               expected number of variables in text, string to be returned. 
*      OUTPUT : 
*     RETURNS : Number of elements found in line.
*    CAUTIONS : 
****************************************************************/
int skip(BOOL, char *, long *, int, char *);


/****************************************************************
*        NAME : parse_line
* DESCRIPTION : Parses input line and interprets it. 
*               Way of parsing & interpreting determined according
*               to structure of input line as may be seen in 
*               configuration file ( .cfg ).
*       INPUT : Input line using *p pointer
*      OUTPUT : 
*     RETURNS : less than zero on error
*    CAUTIONS : 
****************************************************************/
int parse_line(char *);  



#ifdef __cplusplus                /* close C++ brackets */
}   
#endif /* def __cplusplus */

#endif /* ndef _PARSFP_H */
/*** End of File ***/

⌨️ 快捷键说明

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