Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

char* nl_object_attrs2str ( struct nl_object *  obj,
uint32_t  attrs,
char *  buf,
size_t  len 
)

Convert bitmask of attributes to a character string

  • obj object of same type as attribute bitmask
  • attrs bitmask of attribute types
  • buf destination buffer
  • len length of destination buffer
Converts the bitmask of attribute types into a list of attribute names separated by comas.

Returns:
destination buffer.

Definition at line 336 of file object.c.

References nl_object_ops::oo_attrs2str.

Referenced by nl_object_attr_list().

{
      struct nl_object_ops *ops = obj_ops(obj);

      if (ops->oo_attrs2str != NULL)
            return ops->oo_attrs2str(attrs, buf, len);
      else {
            memset(buf, 0, len);
            return buf;
      }
}


Generated by  Doxygen 1.6.0   Back to index