SqueezeBrains SDK 1.13
init_library.c File Reference

Tutorial 1 - How to initialize the library. More...

#include <stdio.h>
#include "../lib/sb.h"
#include "../common/common.h"
Include dependency graph for init_library.c:

Go to the source code of this file.

Functions

int main (void)
 

Detailed Description

Tutorial 1 - How to initialize the library.

To initialize the library you have to call the function sb_init .
Then it is necessary to wait until the license is active otherwise the functions that need the license (for example sb_project_detection ) will fail.
In order to know the licence status you have to call the function sb_license_get_info . At the end of your program you should call the function sb_release to release all the resources of the library.

See also
sb_init
sb_release
sb_get_info
sb_license_get_info

Definition in file init_library.c.

Function Documentation

◆ main()

int main ( void  )

In the following the list of the program steps:

  1. Initialization of the SqueezeBrains library
  2. Print library version
  3. Wait until the license is active
  4. Release the library

Definition at line 21 of file init_library.c.

Here is the call graph for this function: