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