Add function o_attrib_get_attached_attribs in o_attrib.c