From a8e01c29404deec7cbf7649ad2aa3f03c3dfd597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sun, 24 Nov 2024 15:32:14 +0100 Subject: [PATCH] Fix some stylistic inconsistencies --- src/control-service.vala | 8 +++++--- src/frida.vala | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/control-service.vala b/src/control-service.vala index 375ad7762..f41a5d058 100644 --- a/src/control-service.vala +++ b/src/control-service.vala @@ -62,7 +62,8 @@ namespace Frida { endpoint_params: endpoint_params, options: opts ); - link (session); + + assign_session (session); } internal ControlService.with_host_session (HostSession host_session, EndpointParameters endpoint_params, @@ -71,7 +72,8 @@ namespace Frida { endpoint_params: endpoint_params, options: (options != null) ? options : new ControlServiceOptions () ); - link (host_session); + + assign_session (host_session); } construct { @@ -83,7 +85,7 @@ namespace Frida { main_handler = new ConnectionHandler (this, null); } - private void link (HostSession session) { + private void assign_session (HostSession session) { host_session = session; host_session.spawn_added.connect (notify_spawn_added); host_session.child_added.connect (notify_child_added); diff --git a/src/frida.vala b/src/frida.vala index 1ff8efe17..02d1a19b9 100644 --- a/src/frida.vala +++ b/src/frida.vala @@ -3028,6 +3028,7 @@ namespace Frida { internal Script (Session session, AgentScriptId script_id) { Object (); + this.id = script_id; this.session = session; } @@ -3257,6 +3258,7 @@ namespace Frida { internal PortalMembership (Session session, PortalMembershipId membership_id) { Object (); + this.id = membership_id.handle; this.session = session; }