Diff between 13dd8c94b5d41951833900810e3509193fdda537 and f493c77f9ac37cf17b2206a02cb9192bfa1394b5

Changed Files

File Additions Deletions Status
src/profile.c +4 -1 modified
src/profile.h +1 -1 modified

Full Patch

diff --git a/src/profile.c b/src/profile.c
index c7c791c..9c8cfa0 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -2235,7 +2235,7 @@ static void free_property(gpointer data)
 	g_free(p);
 }
 
-void btd_profile_remove_custom_prop(const char *uuid, const char *name)
+bool btd_profile_remove_custom_prop(const char *uuid, const char *name)
 {
 	GSList *l;
 
@@ -2250,7 +2250,10 @@ void btd_profile_remove_custom_prop(const char *uuid, const char *name)
 
 		custom_props = g_slist_delete_link(custom_props, l);
 		free_property(prop);
+		return true;
 	}
+
+	return false;
 }
 
 void btd_profile_init(void)
diff --git a/src/profile.h b/src/profile.h
index fe332d9..27ccdd3 100644
--- a/src/profile.h
+++ b/src/profile.h
@@ -72,7 +72,7 @@ void btd_profile_add_custom_prop(const char *uuid, const char *type,
 					btd_profile_prop_exists exists,
 					btd_profile_prop_get get,
 					void *user_data);
-void btd_profile_remove_custom_prop(const char *uuid, const char *name);
+bool btd_profile_remove_custom_prop(const char *uuid, const char *name);
 
 void btd_profile_init(void);
 void btd_profile_cleanup(void);