mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-27 00:41:01 +00:00
Merge gitee.com:openharmony/interface_sdk_c
This commit is contained in:
commit
0bd7e08be6
@ -41,7 +41,7 @@ extern "C" {
|
||||
*
|
||||
* @since 13
|
||||
*/
|
||||
typedef enum WifiResultCode {
|
||||
typedef enum Wifi_ResultCode {
|
||||
/**
|
||||
* @error The operation is successful.
|
||||
*/
|
||||
@ -64,8 +64,8 @@ typedef enum WifiResultCode {
|
||||
* @error Operation failed.
|
||||
* Possible reasons: Internal execution failed.
|
||||
*/
|
||||
WIFI_OPERATION_FAILED = 1000
|
||||
} WifiResultCode;
|
||||
WIFI_OPERATION_FAILED = 2501000
|
||||
} Wifi_ResultCode;
|
||||
|
||||
/**
|
||||
* @brief Check whether the wifi switch is enabled.
|
||||
@ -75,13 +75,13 @@ typedef enum WifiResultCode {
|
||||
* the wifi switch is turned off.\n
|
||||
* The caller needs to pass in a non empty boolean pointer, otherwise an error will be returned.\n
|
||||
* @return wifi functions result code.\n
|
||||
* For a detailed definition, please refer to {@link WifiResultCode}.\n
|
||||
* For a detailed definition, please refer to {@link Wifi_ResultCode}.\n
|
||||
* {@link WIFI_SUCCESS} Successfully obtained the wifi switch status.\n
|
||||
* {@link WIFI_INVALID_PARAM} The input parameter enabled is a null pointer.\n
|
||||
* {@link WIFI_PERMISSION_DENIED} The application does not have the permission required to call the API.\n
|
||||
* {@link WIFI_OPERATION_FAILED} Internal execution failed.\n
|
||||
* @since 13
|
||||
*/
|
||||
WifiResultCode OH_Wifi_IsWifiEnabled(bool *enabled);
|
||||
Wifi_ResultCode OH_Wifi_IsWifiEnabled(bool *enabled);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file media_asset_manager.h
|
||||
* @file media_asset_base_capi.h
|
||||
*
|
||||
* @brief Defines the structure and enumeration for Media Asset Manager.
|
||||
*
|
||||
@ -321,4 +321,4 @@ typedef void (*OH_MediaLibrary_OnMovingPhotoDataPrepared)(MediaLibrary_ErrorCode
|
||||
#endif
|
||||
|
||||
#endif // MULTIMEDIA_MEDIA_LIBRARY_NATIVE_MEDIA_ASSET_BASE_H
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file media_asset_manager.h
|
||||
* @file media_asset_manager_capi.h
|
||||
*
|
||||
* @brief Defines the media asset manager APIs.
|
||||
*
|
||||
@ -162,4 +162,4 @@ MediaLibrary_ErrorCode OH_MediaAssetManager_Release(OH_MediaAssetManager* manage
|
||||
#endif
|
||||
|
||||
#endif // MULTIMEDIA_MEDIA_LIBRARY_NATIVE_MEDIA_ASSET_MANAGER_H
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
Loading…
Reference in New Issue
Block a user