# File PlatformConfig.h

↰ [Parent directory](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_dir_DlSystem.html#dir-dlsystem) (`DlSystem`)

Contents

- [Definition (`DlSystem/PlatformConfig.h`)](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#definition-dlsystem-platformconfig-h)
- [Includes](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#includes)
- [Included By](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#included-by)
- [Enums](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#enums)
- [Functions](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#functions)
- [Typedefs](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#typedefs)
- [Full File Listing](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#full-file-listing)

## Definition (`DlSystem/PlatformConfig.h`)

## Includes

- `DlSystem/DlEnums.h` ([File DlEnums.h](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_DlEnums_h.html#file-dlsystem-dlenums-h))
- `DlSystem/DlError.h` ([File DlError.h](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_DlError_h.html#file-dlsystem-dlerror-h))
- `DlSystem/SnpeApiExportDefine.h` ([File SnpeApiExportDefine.h](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_SnpeApiExportDefine_h.html#file-dlsystem-snpeapiexportdefine-h))

## Included By

- [File RuntimeConfigList.h](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_SNPE_RuntimeConfigList_h.html#file-snpe-runtimeconfiglist-h)
- [File SNPEBuilder.h](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_SNPE_SNPEBuilder_h.html#file-snpe-snpebuilder-h)

## Enums

- [Enum Snpe\_PlatformConfig\_PlatformType\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/enum_PlatformConfig_8h_1ae334d2f4b000086a48b381368fadd576.html#exhale-enum-platformconfig-8h-1ae334d2f4b000086a48b381368fadd576)

## Functions

- [Function Snpe\_PlatformConfig\_Create](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1aa4a009280dba6e76b49d4ed5c1e28043.html#exhale-function-platformconfig-8h-1aa4a009280dba6e76b49d4ed5c1e28043)
- [Function Snpe\_PlatformConfig\_CreateCopy](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a5d9423cbe238ab3a4cd455a1650fdea1.html#exhale-function-platformconfig-8h-1a5d9423cbe238ab3a4cd455a1650fdea1)
- [Function Snpe\_PlatformConfig\_Delete](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a8a9875561fe10200b5e2234cb18c0563.html#exhale-function-platformconfig-8h-1a8a9875561fe10200b5e2234cb18c0563)
- [Function Snpe\_PlatformConfig\_GetIsUserGLBuffer](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1ab15d1ceb703e55de69bef40a18d9ceab.html#exhale-function-platformconfig-8h-1ab15d1ceb703e55de69bef40a18d9ceab)
- [Function Snpe\_PlatformConfig\_GetPlatformOptions](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a209bea4c4432adcb886a43dcfcd91eab.html#exhale-function-platformconfig-8h-1a209bea4c4432adcb886a43dcfcd91eab)
- [Function Snpe\_PlatformConfig\_GetPlatformType](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a09035dd66efabaf81133d4de395e53d6.html#exhale-function-platformconfig-8h-1a09035dd66efabaf81133d4de395e53d6)
- [Function Snpe\_PlatformConfig\_GetUserGpuConfig](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a5c9c7f16cbb42be059a4da2f19bc95d6.html#exhale-function-platformconfig-8h-1a5c9c7f16cbb42be059a4da2f19bc95d6)
- [Function Snpe\_PlatformConfig\_IsOptionsValid](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a1808b0aef8b1c03221c868d3ae13ffb8.html#exhale-function-platformconfig-8h-1a1808b0aef8b1c03221c868d3ae13ffb8)
- [Function Snpe\_PlatformConfig\_IsValid](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a8a4ccc338ce2fd443a55cad53bbe1eb0.html#exhale-function-platformconfig-8h-1a8a4ccc338ce2fd443a55cad53bbe1eb0)
- [Function Snpe\_PlatformConfig\_RemovePlatformOptionValue](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1aa6c0a569d77bfeb32d6b1f0ad2688bdb.html#exhale-function-platformconfig-8h-1aa6c0a569d77bfeb32d6b1f0ad2688bdb)
- [Function Snpe\_PlatformConfig\_SetIsUserGLBuffer](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a60323050945c07ea886aa8111e54f949.html#exhale-function-platformconfig-8h-1a60323050945c07ea886aa8111e54f949)
- [Function Snpe\_PlatformConfig\_SetPlatformOptions](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a0b8b7434f4e784079aa826472af852a5.html#exhale-function-platformconfig-8h-1a0b8b7434f4e784079aa826472af852a5)
- [Function Snpe\_PlatformConfig\_SetPlatformOptionValue](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a76a8e175f5b3d29f18049aabc5631590.html#exhale-function-platformconfig-8h-1a76a8e175f5b3d29f18049aabc5631590)
- [Function Snpe\_PlatformConfig\_SetUserGpuConfig](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1ad263a0fb98fe565c882c4797b6dbea6b.html#exhale-function-platformconfig-8h-1ad263a0fb98fe565c882c4797b6dbea6b)
- [Function Snpe\_UserGLConfig\_Create](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a56f03a621bfc07da67858c87c360e82b.html#exhale-function-platformconfig-8h-1a56f03a621bfc07da67858c87c360e82b)
- [Function Snpe\_UserGLConfig\_Delete](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a168beb5f943f869b16f4b15d3ef7ad7c.html#exhale-function-platformconfig-8h-1a168beb5f943f869b16f4b15d3ef7ad7c)
- [Function Snpe\_UserGLConfig\_GetUserGLContext](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a0e167050effceadadb6dd9b93e99cc09.html#exhale-function-platformconfig-8h-1a0e167050effceadadb6dd9b93e99cc09)
- [Function Snpe\_UserGLConfig\_GetUserGLDisplay](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a10429666a6431e9c8cb3b1d5b05a685f.html#exhale-function-platformconfig-8h-1a10429666a6431e9c8cb3b1d5b05a685f)
- [Function Snpe\_UserGLConfig\_SetUserGLContext](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a0a70ecc6f1bef647900e6a71e158b373.html#exhale-function-platformconfig-8h-1a0a70ecc6f1bef647900e6a71e158b373)
- [Function Snpe\_UserGLConfig\_SetUserGLDisplay](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a63948896fe2dfbd6190c95f9b224e29a.html#exhale-function-platformconfig-8h-1a63948896fe2dfbd6190c95f9b224e29a)
- [Function Snpe\_UserGpuConfig\_Create](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a7106d7531252e1c8116af2134341f582.html#exhale-function-platformconfig-8h-1a7106d7531252e1c8116af2134341f582)
- [Function Snpe\_UserGpuConfig\_Delete](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1acf4d15e6b20a11670d62a860d194208e.html#exhale-function-platformconfig-8h-1acf4d15e6b20a11670d62a860d194208e)
- [Function Snpe\_UserGpuConfig\_Get\_Ref](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1a323e5d8affb83c06ab1316bb9c7cbe0b.html#exhale-function-platformconfig-8h-1a323e5d8affb83c06ab1316bb9c7cbe0b)
- [Function Snpe\_UserGpuConfig\_Set](https://docs.qualcomm.com/doc/80-63442-10/topic/function_PlatformConfig_8h_1af132181e126c055a3dfd0a3b08bc7e5d.html#exhale-function-platformconfig-8h-1af132181e126c055a3dfd0a3b08bc7e5d)

## Typedefs

- [Typedef Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/typedef_PlatformConfig_8h_1ae58aee13fd1d72185e173efc1a26eee1.html#exhale-typedef-platformconfig-8h-1ae58aee13fd1d72185e173efc1a26eee1)
- [Typedef Snpe\_UserGLConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/typedef_PlatformConfig_8h_1afef16cd933904acd2bbf5f4b5aa1e6c2.html#exhale-typedef-platformconfig-8h-1afef16cd933904acd2bbf5f4b5aa1e6c2)
- [Typedef Snpe\_UserGpuConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/typedef_PlatformConfig_8h_1ad221ab29696dd469998a3f404b0d9879.html#exhale-typedef-platformconfig-8h-1ad221ab29696dd469998a3f404b0d9879)

## Full File Listing

Typedefs

- typedef void \*Snpe\_UserGLConfig\_Handle\_t

    - A structure OpenGL configuration

Note

When certain OpenGL context and display are provided to UserGLConfig for using GPU buffer as input directly, the user MUST ensure the particular OpenGL context and display remain vaild throughout the execution of neural network models.

- typedef void \*Snpe\_UserGpuConfig\_Handle\_t

    - A structure Gpu configuration

- typedef void \*Snpe\_PlatformConfig\_Handle\_t

    - A typedef to indicate a SNPE PlatformConfig handle

Enums

- enum Snpe\_PlatformConfig\_PlatformType\_t

    - *Values:*

- enumerator SNPE\_PLATFORMCONFIG\_PLATFORMTYPE\_UNKNOWN = 0

    - Unknown platform type.

- enumerator SNPE\_PLATFORMCONFIG\_PLATFORMTYPE\_CPU = 1

    - Snapdragon CPU.

- enumerator SNPE\_PLATFORMCONFIG\_PLATFORMTYPE\_GPU = 2

    - Adreno GPU.

- enumerator SNPE\_PLATFORMCONFIG\_PLATFORMTYPE\_DSP = 3

    - Hexagon DSP.

Functions

- [Snpe\_UserGLConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv426Snpe_UserGLConfig_Handle_t) Snpe\_UserGLConfig\_Create()

    - Creates a new userGLConfig

- [Snpe\_ErrorCode\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/enum_DlError_8h_1aa40d44ade537087ac80f867eb4e7d50f.html#_CPPv416Snpe_ErrorCode_t) Snpe\_UserGLConfig\_Delete([Snpe\_UserGLConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv426Snpe_UserGLConfig_Handle_t) handle)

    - Destroys the userGLConfig.

- Parameters

    - **handle** – **[in]** : Handle to access the userGLConfig

- Returns

    - Error code. Returns SNPE\_SUCCESS if destruction successful

- [Snpe\_ErrorCode\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/enum_DlError_8h_1aa40d44ade537087ac80f867eb4e7d50f.html#_CPPv416Snpe_ErrorCode_t) Snpe\_UserGLConfig\_SetUserGLContext([Snpe\_UserGLConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv426Snpe_UserGLConfig_Handle_t) handle, void \*userGLContext)

    - Sets the EGL context.

- Parameters

    - - **handle** – **[in]** : Handle to access userGLConfig
- **userGLContext** – **[in]** : void pointer

- [Snpe\_ErrorCode\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/enum_DlError_8h_1aa40d44ade537087ac80f867eb4e7d50f.html#_CPPv416Snpe_ErrorCode_t) Snpe\_UserGLConfig\_SetUserGLDisplay([Snpe\_UserGLConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv426Snpe_UserGLConfig_Handle_t) handle, void \*userGLDisplay)

    - Sets the EGL Display.

- Parameters

    - - **handle** – **[in]** : Handle to access userGLConfig
- **userGLDisplay** – **[in]** : void pointer

- void \*Snpe\_UserGLConfig\_GetUserGLContext([Snpe\_UserGLConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv426Snpe_UserGLConfig_Handle_t) handle)

    - Get EGL context.

- Parameters

    - **handle** – **[in]** : Handle to access userGLConfig

- Returns

    - userGLContext of type void pointer

- void \*Snpe\_UserGLConfig\_GetUserGLDisplay([Snpe\_UserGLConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv426Snpe_UserGLConfig_Handle_t) handle)

    - Get EGL Display.

- Parameters

    - **handle** – **[in]** : Handle to access userGLConfig

- Returns

    - userGLDisplay of type void pointer

- [Snpe\_UserGpuConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv427Snpe_UserGpuConfig_Handle_t) Snpe\_UserGpuConfig\_Create()

    - Creates a new userGpuConfig

- [Snpe\_ErrorCode\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/enum_DlError_8h_1aa40d44ade537087ac80f867eb4e7d50f.html#_CPPv416Snpe_ErrorCode_t) Snpe\_UserGpuConfig\_Delete([Snpe\_UserGpuConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv427Snpe_UserGpuConfig_Handle_t) handle)

    - Destroys the userGpuConfig.

- Parameters

    - **handle** – **[in]** : Handle to access userGLConfig

- Returns

    - Error code. Returns SNPE\_SUCCESS if destruction successful

- void Snpe\_UserGpuConfig\_Set([Snpe\_UserGpuConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv427Snpe_UserGpuConfig_Handle_t) handle, [Snpe\_UserGLConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv426Snpe_UserGLConfig_Handle_t) glHandle)

    - Set the userGpuConfig.

- Parameters

    - - **handle** – **[in]** : Handle to access userGpuConfig
- **glHandle** – **[in]** : Handle needed to access userGlConfig

- Returns

    - Error code. Returns SNPE\_SUCCESS if destruction successful

- [Snpe\_UserGLConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv426Snpe_UserGLConfig_Handle_t) Snpe\_UserGpuConfig\_Get\_Ref([Snpe\_UserGpuConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv427Snpe_UserGpuConfig_Handle_t) handle)

    - Get the userGpuConfig.

- Parameters

    - **handle** – **[in]** : Handle to access userGpuConfig

- Returns

    - Handle needed to access userGlConfig

- [Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) Snpe\_PlatformConfig\_Create()

    - Creates a new PlatformConfig

- [Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) Snpe\_PlatformConfig\_CreateCopy([Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) otherHandle)

    - Copy-Construct a PlatformConfig from another PlatformConfig.

- Parameters

    - **otherHandle** – **[in]** Handle to the other PlatformConfig

- Returns

    - Handle to the Copy-Constructed PlatformConfig

- [Snpe\_ErrorCode\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/enum_DlError_8h_1aa40d44ade537087ac80f867eb4e7d50f.html#_CPPv416Snpe_ErrorCode_t) Snpe\_PlatformConfig\_Delete([Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) handle)

    - Destroys the PlatformConfig.

- Parameters

    - **handle** – **[in]** : Handle needed to access the platformConfig

- Returns

    - Error code. Returns SNPE\_SUCCESS if destruction successful

- [Snpe\_PlatformConfig\_PlatformType\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/enum_PlatformConfig_8h_1ae334d2f4b000086a48b381368fadd576.html#_CPPv434Snpe_PlatformConfig_PlatformType_t) Snpe\_PlatformConfig\_GetPlatformType([Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) handle)

    - Retrieves the platform type.

- Parameters

    - **handle** – **[in]** : Handle needed to access the platformConfig

- Returns

    - Platform type

- int Snpe\_PlatformConfig\_IsValid([Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) handle)

    - Indicates whther the plaform configuration is valid.

- Parameters

    - **handle** – **[in]** : Handle needed to access the platformConfig

- Returns

    - 1 if the platform configuration is valid; 0 otherwise.

- [Snpe\_UserGpuConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv427Snpe_UserGpuConfig_Handle_t) Snpe\_PlatformConfig\_GetUserGpuConfig([Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) handle)

    - Retrieves the Gpu configuration.

- Parameters

    - **handle** – **[in]** : Handle needed to access the platformConfig

- Returns

    - userGpuConfig populated with the Gpu configuration.

- int Snpe\_PlatformConfig\_SetUserGpuConfig([Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) handle, [Snpe\_UserGpuConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv427Snpe_UserGpuConfig_Handle_t) gpuHandle)

    - Sets the Gpu configuration.

- Parameters

    - - **handle** – **[in]** : Handle needed to access the platformConfig
- **gpuHandle** – **[in]** : Gpu Configuration handle

- Returns

    - 1 if Gpu configuration was successfully set; 0 otherwise.

- int Snpe\_PlatformConfig\_SetPlatformOptions([Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) handle, const char \*options)

    - Sets the platform options.

- Parameters

    - - **handle** – **[in]** : Handle needed to access the platformConfig
- **options** – **[in]** : Options as a const char\* in the form of “keyword:options”

- Returns

    - 1 if options are pass validation; otherwise 0. If false, the options are not updated.

- int Snpe\_PlatformConfig\_IsOptionsValid([Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) handle)

    - Indicates whther the plaform configuration is valid.

- Parameters

    - **handle** – **[in]** : Handle needed to access the platformConfig

- Returns

    - 1 if the platform configuration is valid; 0 otherwise.

- const char \*Snpe\_PlatformConfig\_GetPlatformOptions([Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) handle)

    - Gets the platform options.

- Parameters

    - **handle** – **[in]** : Handle needed to access the platformConfig

- Returns

    - Options as a const char\*

- int Snpe\_PlatformConfig\_SetPlatformOptionValue([Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) handle, const char \*optionName, const char \*value)

    - Sets the platform options.

- Parameters

    - - **handle** – **[in]** : Handle needed to access the platformConfig
- **optionName** – **[in]**

    : Name of platform options”

    @param [in] value : Value of specified optionName

    @return If 1, add “optionName:value” to platform options if optionName don’t exist, otherwise update the value of specified optionName. If 0, the platform options will not be changed.

Note

the returned string will be invalidated by subsequent calls to this function

- int Snpe\_PlatformConfig\_RemovePlatformOptionValue([Snpe\_PlatformConfig\_Handle\_t](https://docs.qualcomm.com/doc/80-63442-10/topic/c_api-rst_file_DlSystem_PlatformConfig_h.html#_CPPv428Snpe_PlatformConfig_Handle_t) handle, const char \*optionName, const char \*value)

    - Removes the platform options.

- Parameters

    - - **handle** – **[in]** : Handle needed to access the platformConfig
- **optionName** – **[in]**

    : Name of platform options”

    @param [in] value : Value of specified optionName

    @return If 1, removed “optionName:value” to platform options if optionName don’t exist, do nothing. If 0, the platform options will not be changed.

- void Snpe\_PlatformConfig\_SetIsUserGLBuffer(int isUserGLBuffer)

    - 

- int Snpe\_PlatformConfig\_GetIsUserGLBuffer()

    -

Last Published: Jun 04, 2026