From 8318b8684fe6f2d5d72cf252d24e56fc4b1b46fd Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Wed, 6 May 2026 23:37:10 -0700 Subject: [PATCH] Updated Spice SDK (markdown) --- Spice-SDK.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Spice-SDK.md b/Spice-SDK.md index 618690e..3024e31 100644 --- a/Spice-SDK.md +++ b/Spice-SDK.md @@ -15,10 +15,11 @@ See one of the `.def` files in the sample section for an example. #### Implement `spice_sdk_entry_point` in your project -Sample C++ code: +Here is a minimal example: ```cpp +SPICE_SDK_V0 spice_sdk = {}; spice_sdk_destroy_callback_func destroy_callback; SPICE_SDK_ENTRY_POINT @@ -29,12 +30,12 @@ spice_sdk_entry_point( SPICE_SDK_STATUS_CODE status; spice.size = sizeof(spice); - status = init(0, destroy_callback, &spice); + status = init(0, destroy_callback, &spice_sdk); if (status != SPICE_SDK_STATUS_SUCCESS) { return 0; } - // after this point, you can call into the functions in "spice" function table + // after this point, you can call into the functions in "spice_sdk" function table // spin up a worker thread here return 1; }