add a blobmsg_type() inline function