?? gatepars.h
字號:
/**********************************************************************************************
*
* $ProjectName: X:/SIPROJ/VOIP/HOST/WIN_NT/DEMOS/Samples.rel5/Dm3/Iplink/project.pj $
* $ProjectRevision: 1.5 $
* $Label$
* $Revision: 1.2 $ - $Date: 2001/09/06 14:29:57 $
*
**********************************************************************************************/
#ifndef _GATEPARS_H
#define _GATEPARS_H
#ifdef __cplusplus
extern "C" {
#endif /* def __cplusplus */
#include <pdl.h>
/****************************************************/
/* */
/* 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
****************************************************************/
int 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(int, 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 *);
/****************************************************************
* NAME : getCoderType
* DESCRIPTION : Suits the coder type from configuration file to the
* defined list.
* INPUT : coder: poiner to the string that was read from the
* configuration file.
* ii: pointer to the return coder
* OUTPUT :
* RETURNS : 1 if succeeded to find a suitable coder from the
* coder list.
* CAUTIONS :
****************************************************************/
int getCoderType(char *coder, int *coderType);
#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 + -