Skip to content

Commit

Permalink
Fix some stylistic inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Nov 24, 2024
1 parent cd6366a commit a8e01c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/control-service.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -71,7 +72,8 @@ namespace Frida {
endpoint_params: endpoint_params,
options: (options != null) ? options : new ControlServiceOptions ()
);
link (host_session);

assign_session (host_session);
}

construct {
Expand All @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions src/frida.vala
Original file line number Diff line number Diff line change
Expand Up @@ -3028,6 +3028,7 @@ namespace Frida {

internal Script (Session session, AgentScriptId script_id) {
Object ();

this.id = script_id;
this.session = session;
}
Expand Down Expand Up @@ -3257,6 +3258,7 @@ namespace Frida {

internal PortalMembership (Session session, PortalMembershipId membership_id) {
Object ();

this.id = membership_id.handle;
this.session = session;
}
Expand Down

0 comments on commit a8e01c2

Please sign in to comment.