Skip to content

Commit edda2d3

Browse files
committed
Interface for executables
This is RPC interface that allows spinning up new "executables". As of now, CMRX doesn't support creating processes so new executables are created within the calling process. This is for presentation purposes.
1 parent 5c3b34d commit edda2d3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/executable/executable.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#pragma once
2+
3+
#include <cmrx/rpc/interface.h>
4+
5+
struct ExecutableVTable {
6+
void (*exec)(INSTANCE(this));
7+
};
8+
9+
struct Executable {
10+
const struct ExecutableVTable * vtable;
11+
};

0 commit comments

Comments
 (0)