예제 #1
0
static
void strlist__node_delete(struct rblist *rblist, struct rb_node *rb_node)
{
	struct strlist *slist = container_of(rblist, struct strlist, rblist);
	struct str_node *snode = container_of(rb_node, struct str_node, rb_node);

	str_node__delete(snode, slist->dupstr);
}
예제 #2
0
void strlist__remove(struct strlist *self, struct str_node *sn)
{
    rb_erase(&sn->rb_node, &self->entries);
    str_node__delete(sn, self->dupstr);
}