Skip to content

Conversation

@yao-msft
Copy link

@yao-msft yao-msft commented Dec 4, 2025

Summary of the Pull Request

PR Checklist

  • Closes: Link to issue #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

set(SOURCES wsla.cpp)
set(HEADERS wsla.h)

add_library(wslasdk SHARED ${SOURCES} ${HEADERS} wslasdk.def)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was originally of having the methods inside the wslaclient target, since it's essentially going to be the same thing conceptually.

I don't mind renaming it though, but if we do that let's delete the old target


// Container Process

STDAPI WslaCreateContainerProcess(_In_ WslaRuntimeContainer container, _In_ const WSLA_CONTAINER_PROCESS_OPTIONS* options, _Out_ WSLA_CONTAINER_PROCESS* process);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to follow the COM logic a bit closer to make the integration easier.

Something like:

WslaGetContainerInitProcess(WslaRuntimeContainer container, WSLA_CONTAINER_PROCESS* process);

might be easier to implement

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was the "nerdctl exec". I think you mean splitting CreateNewContainer into 2 methods? That works for me too.

Copy link

@ptrivedi ptrivedi Jan 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit confused by your comment too @OneBlue. I think the API above would map to WSLAContainerImpl::Exec in the backend.
I was also thinking we may not need something like GetContainerInitProcess in the public-facing API at all...?

typedef struct WSLA_CONTAINER_IMAGE_INFO
{
PCSTR repository;
PCSTR tag;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just the imageName and use char[]

WslaCreateSession
WslaReleaseSession
WslaPullContainerImage
WslaImportContainerImage

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this WslaImportContainerImage here correspond to LoadImage? Load and Import are a bit different.

WslaStopContainer
WslaDeleteContainer
WslaRestartContainer
WslaGetContainerState

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about inspection of an image?

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.

4 participants