# qesdk\_init

Source: [https://docs.qualcomm.com/doc/80-PK177-134/topic/native_init.html](https://docs.qualcomm.com/doc/80-PK177-134/topic/native_init.html)

**This API is deprecated use [qesdk_initEx](https://docs.qualcomm.com/doc/80-PK177-134/topic/native_init_ex.html).** Initializes a
    QESDK session with a user-given license key. It triggers an authentication call to QESDK and
    returns the QESDK service handle on success or NULL on failure.

qesdk_init()Copy to clipboard

Note: Call this API only once per session.

## Parameters

| **Parameters** | **Data type** | **Description** |
| --- | --- | --- |
| license | char\* | License buffer for the license assigned to the application. |
| license\_size | size\_t | Length of the license buffer. |
| cb | [fwk_event_callback](https://docs.qualcomm.com/doc/80-PK177-134/topic/native_fwk_event_callback.html) | Callback where QESDK framework events are reported. |

## Returns

| **Return** | **Description** |
| --- | --- |
| int | This API will return.<br><br><br>                <ul class="ul" id="qesdk_init_20__properties_v33_tvt_zxb_spyrz_07-03-23-1134-35-244"><br>                  <br>                    <li class="li">0: Operation successful</li><br><br>                  <br>                  <br>                    <li class="li">-1: Operation failed</li><br><br>                  <br>                </ul> |
| int8 | This API will return.<br><br><br>                <ul class="ul" id="qesdk_init_20__properties_v33_tvt_zxb_spyrz_07-03-23-1134-35-244"><br>                  <br>                    <li class="li">0: Operation successful</li><br><br>                  <br>                  <br>                    <li class="li">-1: Operation failed</li><br><br>                  <br>                </ul> |
|  |  |

**Parent Topic:** [Function execution (DEPRECATED)](https://docs.qualcomm.com/doc/80-PK177-134/topic/native_functions.html)

Last Published: Nov 14, 2024

[Previous Topic
Function execution (DEPRECATED)](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/native_functions.md) [Next Topic
qesdk\_getFunctionHandle](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/native_get_function_handle.md)