# 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.