]> mj.ucw.cz Git - libucw.git/commit
obj_add_attr() now returns head of the attribute value chain, so that you
authorMartin Mares <mj@ucw.cz>
Fri, 26 Jan 2001 16:27:38 +0000 (16:27 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 26 Jan 2001 16:27:38 +0000 (16:27 +0000)
commitb40107e9c3349c1c712b320c27ef631e6f76da26
treedad363603caba4ae7bbab27931f69d61c5ddd12a
parent6e419fae23837754aed6e043007cf5a7228607bb
obj_add_attr() now returns head of the attribute value chain, so that you
can easily do:

struct oattr *a;
a = obj_add_attr(obj, NULL, 'x', "val1");
a = obj_add_attr(obj, a, 'x', "val2");

to insert multi-valued attributes quickly.
lib/object.c