This readme specifies how to generate the Spectra C SDK command and model files and integrate them into the existing Spectra C SDK. This assumes that both the Autogen project and the Spectra C SDK project are both on the current system.
See the Autogen README for installation instructions.
To generate the C SDK files, use the following command. This assumes that the input API spec is in
the current directory and named api_spec.xml
.
ds3-autogen-cli -d src/ -i api_spec.xml -l c
This will generate the command and model code in proper folders starting at the src
folder.
Copy the generated folder src
and all its contents. Go to the ds3-c-sdk
main directory and
paste the copied src
into the C SDK. There may be a warning about overwriting some files, which
can be ignored.
Compile the C SDK and verify that there are no compilation errors.