diff src/blist.c @ 10548:1596ade00664

[gaim-migrate @ 11918] Add functions for getting and setting the flags on a blist node. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 27 Jan 2005 05:24:26 +0000
parents 1a97d5e88d12
children a511fb614157
line wrap: on
line diff
--- a/src/blist.c	Thu Jan 27 03:48:25 2005 +0000
+++ b/src/blist.c	Thu Jan 27 05:24:26 2005 +0000
@@ -2348,6 +2348,22 @@
 }
 
 void
+gaim_blist_node_set_flags(GaimBlistNode *node, GaimBlistNodeFlags flags)
+{
+	g_return_if_fail(node != NULL);
+
+	node->flags = flags;
+}
+
+GaimBlistNodeFlags
+gaim_blist_node_get_flags(GaimBlistNode *node)
+{
+	g_return_val_if_fail(node != NULL, 0);
+
+	return node->flags;
+}
+
+void
 gaim_blist_node_set_bool(GaimBlistNode* node, const char *key, gboolean data)
 {
 	GaimValue *value;