# set\_pkg

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

Binds the package name with the current session, if this API is not called,
    then a session with performance API is not established and any call to the performance API and error will
    return as `-2`.

set_pkg()Copy to clipboard

Note: This API is needed to maintain internal session details.

## Parameters

| Parameters | API type | Data type | Description |
| --- | --- | --- | --- |
| pkg\_name | Java | String | String type name of package. |
| Native | const char\* |
| ret\_val | Native | int8\_t& | On success this is the actual return value from the API.<br><br><br>                <br><ul class="ul"><br>                    <li class="li">1: Success</li><br><br>                    <li class="li">-1: Iqesdk is null</li><br><br>                    <li class="li">-2: Subsystem error</li><br><br>                  </ul> |

## Returns

| Return | API type | Data type | Description |
| --- | --- | --- | --- |
| response | Java | int | <ul class="ul"><br>                  <li class="li">1: Success</li><br><br>                  <li class="li">-1: Iqesdk is null</li><br><br>                  <li class="li">-2: Subsystem error</li><br><br>                </ul> |
| Native | qesdk\_transaction\_status | See QESDK transaction status for Native APIs for usage details. Use qesdk\_transaction\_status to confirm API call invocation. If successful, use the `ret` value for the actual API return value object. |

**Parent Topic:** QAPE subsystem APIs

Last Published: Nov 14, 2024

Previous Topic
 
Constructor Next Topic

boost\_cpu