Welcome to Outscale SDK for C.
json-c and libcurl (7.75 and after)
Simply grab the C source and add it to your project, you need to include json-c and curl (version > 7.75) to your code.
See examples folder to jump straight into the code! Here's an explication of the Makefile rule compiling example 1:
${CC} examples/example1.c ./osc_sdk.c -I./ `pkg-config --cflags json-c` -lcurl -ljson-c -o example1 -Wall -Wno-unused-function -g
-Ispecify include path (where to findosc_sdk.h). If osc_sdk.h was in the same directory thanexample0.cit wouldn't be needed.-lcurl -ljson-cspecify curl and json-c libraries.-Wno-unused-functionbecause osc-sdk.c is compiled with the example, and not all functions are usedpkg-config --cflags json-cto find json-c cflags-Wallfor more warning-gfor debug symbole
example0.c is similar, but use an archive, so it can compile in ansi C (-std=c89)
You need libcurl to a version superior to 7.75 (again it's important).
json-c have deprecated ANSI C in favor to C99 and C11, if you want to continue using C89 you might stick to current or old versions.
Interface is not stable yet, please be aware that some breaking change can still exist until 1.x.
SDK itself is generated from Outscale's COGNAC using osc-api description.
Check contributing documentation.
Copyright Outscale SAS
BSD-3-Clause
This project is compliant with REUSE.