1.1.9.4 WDRV_WINC_FileDelete

Function

WDRV_WINC_FILE_HANDLE WDRV_WINC_FileDelete
(
DRV_HANDLE handle,
const char *pFilename,
WDRV_WINC_FILE_TYPE type,
WDRV_WINC_FILE_DELETE_CALLBACK pfDeleteCb,
uintptr_t deleteCbCtx
)

Summary

Delete a file.

Description

Requests the WINC device deletes a file of a particular name and type.

Precondition

WDRV_WINC_Initialize should have been called. WDRV_WINC_Open should have been called to obtain a valid handle.

Parameters

handle - WINC driver handle obtained from WDRV_WINC_Open.

pFilename - Pointer to filename to delete.

type - Type of file.

pfDeleteCb - Pointer to application callback to receive status.

deleteCbCtx - User context value to pass to callback.

Returns

WDRV_WINC_STATUS_OK - A scan was initiated.

WDRV_WINC_STATUS_NOT_OPEN - The driver instance is not open.

WDRV_WINC_STATUS_REQUEST_ERROR - The request to the WINC was rejected.

WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.

WDRV_WINC_STATUS_RETRY_REQUEST - Another request is being processed, try again.

Remarks

None.