metadata: add kdbus_meta_offset_of()
authorDaniel Mack <zonque@gmail.com>
Fri, 15 Aug 2014 17:20:51 +0000 (19:20 +0200)
committerDaniel Mack <zonque@gmail.com>
Fri, 15 Aug 2014 20:09:02 +0000 (22:09 +0200)
commitedad96ffe90db633c073f962c4e309f2894f9c92
tree9a117593ccd93b55c71f8b7407a1f22939aa8ed3
parent726bc181b5210cb578b219fb668a8ec989ad5efd
metadata: add kdbus_meta_offset_of()

kdbus_meta_offset_of() will iterate over the given metadata and return
the offset of the item of type @type, if it exists.
metadata.c
metadata.h