flux_msg_cmp(3)¶
SYNOPSIS¶
#include <flux/core.h>
struct flux_match {
int typemask;
uint32_t matchtag;
char *topic_glob;
};
bool flux_msg_cmp (const flux_msg_t *msg, struct flux_match match);
DESCRIPTION¶
flux_msg_cmp()
compares msg to match criteria.
If match.typemask is nonzero, the type of the message must match one of the types in the mask.
If match.matchtag is not FLUX_MATCHTAG_NONE, the message matchtag must match match.matchtag.
If match.topic_glob is not NULL or an empty string, then the message topic string must match match.topic_glob according to the rules of shell wildcards.
RETURN VALUE¶
flux_msg_cmp()
returns true on a match, otherwise false.