Skip to content

Commit bf123d5

Browse files
committed
Remove use of cbinit
1 parent c10aabe commit bf123d5

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

docs/LIBLFI.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,18 +219,11 @@ non-C/C++ language).
219219

220220
### Callbacks
221221

222-
You might want to pass a host function into the sandbox that it can call. First,
223-
you need to initialize callback support in the sandbox:
224-
225-
```c
226-
bool ok = lfi_box_cbinit(box);
227-
assert(ok);
228-
```
229-
230-
Next, you can register your host function as a sandbox callback. This will
231-
return a function pointer to a function inside the sandbox that will transfer
232-
control to the host function. Since it is inside the sandbox, it may be called
233-
by sandbox code.
222+
You might want to pass a host function into the sandbox that it can call. You
223+
can register your host function as a sandbox callback. This will return a
224+
function pointer to a function inside the sandbox that will transfer control to
225+
the host function. Since it is inside the sandbox, it may be called by sandbox
226+
code.
234227

235228
```c
236229
static int

0 commit comments

Comments
 (0)