rcfile.h

来自「SIP 用户登陆用的对话框」· C头文件 代码 · 共 63 行

H
63
字号
/*  josua - Jack'Open SIP User Agent is a softphone for SIP.    Copyright (C) 2002  Aymeric MOIZARD  - jack@atosc.org    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program 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 General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*/#ifndef _RCFILE_H_#define _RCFILE_H_#ifdef ENABLE_MPATROL#include <mpatrol.h>#endif#include "port.h"#define CONFIG_SIZE 50

#define CONFIG_DEFAULT_LOGIN  0x01
#define CONFIG_AUTO_REGISTER  0x02
#define CONFIG_SAVE_PASSWD    0x04
typedef struct {  char *name;  char *value;} configelt_t ;

typedef struct {
	char username[20];
	char passwd[10];
	char seraddr[20];
	char serport[5];
	char checkstate;
}config_t;int      josua_config_load (char *filename);int      josua_config_set_element(const char *s,configelt_t *configelt);char*    josua_config_get_element(char *name);void     josua_config_unload();


/////////////////////////////////////////////
int load_config_file(char *filename);


/////////////////////////////////////////////


#endif

⌨️ 快捷键说明

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