gboolean
gsignond_dictionary_remove (GSignondDictionary *dict, const gchar *key);
+gboolean
+gsignond_dictionary_contains (GSignondDictionary *dict, const gchar *key);
+
G_END_DECLS
#endif /* __GSIGNOND_DICTIONARY_H__ */
return dict;
}
+
+/**
+ * gsignond_dictionary_contains:
+ * @dict: instance of #GSignondDictionary
+ * @key: (transfer none): key to check
+ *
+ * Checks if the @dict contains @key.
+ *
+ * Returns: TRUE if found, FALSE otherwise.
+ */
+gboolean
+gsignond_dictionary_contains (GSignondDictionary *dict,
+ const gchar *key)
+{
+ g_return_val_if_fail (dict != NULL, FALSE);
+ g_return_val_if_fail (key != NULL, FALSE);
+
+ return g_hash_table_contains (dict, key);
+}
+