Lines Matching full:ns_info
129 NSInfo *ns_info;
131 ns_info = g_hash_table_lookup (ns_hash, namespace);
132 if (ns_info == NULL)
134 ns_info = g_new0 (NSInfo, 1);
135 ns_info->id = ++namespace_id_counter;
136 g_hash_table_insert (ns_hash, g_strdup (namespace), ns_info);
137 attributes = g_realloc (attributes, (ns_info->id + 1) * sizeof (char **));
138 attributes[ns_info->id] = NULL;
140 return ns_info;
146 NSInfo *ns_info;
157 ns_info = _lookup_namespace (namespace);
159 if (ns_info)
160 id = ns_info->id;
183 NSInfo *ns_info;
206 ns_info = _lookup_namespace (ns);
209 id = ++ns_info->attribute_id_counter;
210 attributes[ns_info->id] = g_realloc (attributes[ns_info->id], (id + 1) * sizeof (char *));
211 attributes[ns_info->id][id] = g_strdup (attribute);
213 attr_id = MAKE_ATTR_ID (ns_info->id, id);
215 g_hash_table_insert (attribute_hash, attributes[ns_info->id][id], GUINT_TO_POINTER (attr_id));