acc_extra.h

来自「性能优秀的SIP Proxy」· C头文件 代码 · 共 66 行

H
66
字号
/* * $Id: acc_extra.h,v 1.2 2005/07/13 10:17:31 bogdan_iancu Exp $ * * Copyright (C) 2004 Voice Sistem SRL * * This file is part of SIP Express Router. * * openser 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. * * openser 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. * * * History: * --------- *  2004-10-28  first version (ramona) *  2005-05-30  acc_extra patch commited (ramona) *  2005-07-13  acc_extra specification moved to use pseudo-variables (bogdan) */#ifndef _ACC_EXTRA_H_#define _ACC_EXTRA_H_#include "../../str.h"#include "../../items.h"#include "../../parser/msg_parser.h"#include "dict.h"struct acc_extra{	str        name;       /* name (log comment/ column name) */	xl_spec_t  spec;       /* value's spec */	struct acc_extra *next;};#define MAX_ACC_EXTRA 64void init_acc_extra();struct acc_extra *parse_acc_extra(char *extra);void destroy_extras( struct acc_extra *extra);int extra2strar( struct acc_extra *extra, struct sip_msg *rq,	int *val_len, int *attr_len, str *attrs_arr, str **val_arr);int extra2attrs( struct acc_extra *extra, struct attr *attrs, int offset);int extra2int( struct acc_extra *extra );#endif

⌨️ 快捷键说明

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