Skip to content

Add dmosi_process_get_parent interface#18

Merged
JohnAmadis merged 2 commits intomainfrom
copilot/add-process-parent-interface
Feb 21, 2026
Merged

Add dmosi_process_get_parent interface#18
JohnAmadis merged 2 commits intomainfrom
copilot/add-process-parent-interface

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 21, 2026

dmosi_process_create() accepted a parent parameter but there was no way to retrieve it afterward — unlike every other process property which has a corresponding getter.

Changes

  • include/dmosi.h — Adds _process_get_parent declaration to the Process API group
  • src/dmosi.c — Adds weak stub returning NULL, consistent with all other weak stubs

Usage

dmosi_process_t child = dmosi_process_create("child", "my_module", parent_proc);

// Previously impossible:
dmosi_process_t parent = dmosi_process_get_parent(child);
Original prompt

This section details on the original issue you should resolve

<issue_title>Brakuje interfejsu do pobrania parenta procesu</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: JohnAmadis <17320783+JohnAmadis@users.noreply.github.com>
Copilot AI changed the title [WIP] Add interface to retrieve process parent Add dmosi_process_get_parent interface Feb 21, 2026
Copilot AI requested a review from JohnAmadis February 21, 2026 11:12
@JohnAmadis JohnAmadis marked this pull request as ready for review February 21, 2026 11:13
@JohnAmadis JohnAmadis merged commit b17c96d into main Feb 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Brakuje interfejsu do pobrania parenta procesu

2 participants