common/msg: added mrp_msg_get for fetching multiple message fields.
authorKrisztian Litkey <kli@iki.fi>
Wed, 12 Sep 2012 19:54:32 +0000 (22:54 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Fri, 26 Oct 2012 16:03:50 +0000 (19:03 +0300)
commit6b1812c7047319935e885994168326dd8bf0bc8b
treecc989ad871ab346cfe2ddb3ec9366332c06458d0
parentd6ee4501c7619de25814222605121e14d8901209
common/msg: added mrp_msg_get for fetching multiple message fields.

You can use mrp_msg_get to fetch multiple fields from a message with
a single function call. Moreover, the implementation will do its best
to avoid scanning the message more than once. IOW, mrp_msg_get can be
used to fetch multiple fields from a message efficiently if the fields
to fetch are specified in the same order (with potential fields missing
in between) as they are present in the actual message.
src/common/msg.c
src/common/msg.h
src/common/tests/msg-test.c