From a7a27ff4082f882a21293b1ce251b634857d3b49 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 29 Nov 2012 10:29:52 +1100 Subject: [PATCH] Check if a property exists --- hipadaba.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hipadaba.h b/hipadaba.h index dd3803c9..5d3d999c 100644 --- a/hipadaba.h +++ b/hipadaba.h @@ -430,6 +430,13 @@ void SetHdbProperty(pHdb node, char *key, char *value); * @param len The length of value * @return 0 on failure, 1 on success */ +/** + * Check if a property exists + * @param node The node to get the property from + * @param key The properties key + * @return 1 or 0 for true or false + */ +int HasHdbProperty(pHdb node, char *key); int GetHdbProperty(pHdb node, char *key, char *value, int len); /** * get the value of a property