00001 /* 00002 * $Id: attr.h 4518 2008-07-28 15:39:28Z henningw $ 00003 * 00004 * Copyright (C) 2006 Voice Sistem SRL 00005 * 00006 * This file is part of Kamailio, a free SIP server. 00007 * 00008 * Kamailio is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * Kamailio is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00021 * 00022 * 00023 * History: 00024 * --------- 00025 * 2006-09-08 first version (bogdan) 00026 */ 00027 00028 /*! 00029 * \file 00030 * \brief MI :: Attributes 00031 * \ingroup mi 00032 */ 00033 00034 #ifndef _MI_ATTR_H 00035 #define _MI_ATTR_H 00036 00037 #include <stdarg.h> 00038 #include "../str.h" 00039 #include "tree.h" 00040 00041 struct mi_attr{ 00042 str name; 00043 str value; 00044 struct mi_attr *next; 00045 }; 00046 00047 00048 struct mi_attr *add_mi_attr(struct mi_node *node, int flags, 00049 char *name, int name_len, char *value, int value_len); 00050 00051 struct mi_attr *addf_mi_attr(struct mi_node *node, int flags, 00052 char *name, int name_len, char *fmt_val, ...); 00053 00054 struct mi_attr *get_mi_attr_by_name(struct mi_node *node, 00055 char *name, int len); 00056 00057 void del_mi_attr_list(struct mi_node *node); 00058 00059 00060 #endif 00061
1.5.6