Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

odb--daemon: implement get-parent and get-ancestor commands #2

Open
wants to merge 5 commits into
base: hackweek/more-odb-over-ipc
Choose a base branch
from

Conversation

mjcheetham
Copy link

@mjcheetham mjcheetham commented Apr 23, 2024

Implement basic versions of the get-parent and get-ancestor commands in the ODB daemon that will simply call the get_parent and get_nth_ancestor functions, respectively, that are being routed over the IPC channel with the same arguments.

This will get us a simple working proof of concept.

Note the IPC name of the get_nth_ancestor function is get-ancestor because we need to keep the name under 15 characters + 1 byte for a null terminator.

Expose the static `get_parent` function so we can use it in the
odb--daemon implementation of the `get-parent` IPC call.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Implement a basic version of the get-parent command in the ODB daemon
that will simply call the `get_parent` function that is being routed
over the IPC channel with the same arguments.

This will get us a simple working proof of concept.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Expose the static `get_nth_ancestor` function so we can use it
in the odb--daemon implementation of the `get-nth-ancestor` IPC
call.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Implement a basic version of the get-nth-ancestor command in the ODB
daemon that will simply call the `get_nth_ancestor` function that is
being routed over the IPC channel with the same arguments.

This will get us a simple working proof of concept.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Reduce the length of the IPC API `get-nth-ancestor` to be shorter, so
that the request key is less than 15 characters + 1 null terminator.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
@mjcheetham mjcheetham changed the title odb--daemon: implement get-parent command odb--daemon: implement get-parent and get-ancestor commands Apr 24, 2024
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.

1 participant