📄 slp_attr.h
字号:
/******************************************************************* * Description: encode/decode attribute lists * * Originated: 03-07-2000 * Original Author: Mike Day - md@soft-hackle.net * Project: * * $Header: /cvsroot/openslp/openslp/common/slp_attr.h,v 1.4 2002/09/10 04:38:25 mpeterson Exp $ * * Copyright (C) Michael Day, 1999-2001 * * 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 SLP_ATTR_H_INCLUDED#define SLP_ATTR_H_INCLUDEDtypedef enum attrTypes{ head = -1, string, integer, boolean, opaque, tag}SLPTypes;typedef union SLP_attr_value { char *stringVal; unsigned long intVal; int boolVal; void *opaqueVal;}SLPAttrVal;typedef struct SLP_attr_list { struct SLP_attr_list *next; struct SLP_attr_list *prev; int isHead; unsigned char *name; SLPTypes type; SLPAttrVal val;}SLPAttrList;SLPAttrList *SLPAllocAttr(char *name, SLPTypes type, void *val, int len);SLPAttrList *SLPAllocAttrList(void);void SLPFreeAttr(SLPAttrList *attr);void SLPFreeAttrList(SLPAttrList *list, int staticFlag);SLPAttrList *SLPDecodeAttrString(char *s);#endif /* SLP_ATTR_H_INCLUDED */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -