scripts: rewrite policy-device-profile and m-default-profile into a set of hooks

... excluding the persistent profile functionality for now (I am not convinced)
This commit is contained in:
George Kiagiadakis
2022-12-02 17:22:14 +02:00
committed by Julian Bouzas
parent e1a8c3459a
commit f99c3005f2
5 changed files with 268 additions and 1 deletions

View File

@@ -132,7 +132,8 @@ get_object_type (gpointer obj, WpProperties **properties)
static gint
get_default_event_priority (const gchar *event_type)
{
if (!g_strcmp0 (event_type, "find-target-si-and-link"))
if (!g_strcmp0 (event_type, "find-target-si-and-link") ||
!g_strcmp0 (event_type, "select-profile"))
return 500;
else if (!g_strcmp0 (event_type, "rescan-session"))
return -500;