From d673b49dfcd75f723b39fbc914d69caae4b96237 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 18 Oct 2009 18:13:17 +0200 Subject: s4:ldb_msg_check_string_attribute - add a comment about the result values --- source4/lib/ldb/include/ldb.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source4/lib/ldb/include') diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index 69d052b0eb..2511fecefb 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -1807,6 +1807,15 @@ struct ldb_message *ldb_msg_diff(struct ldb_context *ldb, struct ldb_message *msg1, struct ldb_message *msg2); +/** + Tries to find a certain string attribute in a message + + \param msg the message to check + \param name attribute name + \param value attribute value + + \return 1 on match and 0 otherwise. +*/ int ldb_msg_check_string_attribute(const struct ldb_message *msg, const char *name, const char *value); -- cgit