Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
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