1.1.16.9 WDRV_WINC_FileFind

C

WDRV_WINC_STATUS WDRV_WINC_FileFind
(
    DRV_HANDLE handle,
    WDRV_WINC_FILE_TYPE type,
    WDRV_WINC_FILE_FIND_CALLBACK pfFindCb,
    uintptr_t findCbCtx
)

Description

Requests the WINC device send a list of a particular file type.

Precondition

WDRV_WINC_Initialize must have been called.

WDRV_WINC_Open must have been called to obtain a valid handle.

Parameters

ParametersDescription
handleWINC driver handle obtained from WDRV_WINC_Open.
typeType of file.
pfFindCbPointer to application callback to receive file information and status.
findCbCtxUser context value to pass to callback.

Returns

  • WDRV_WINC_STATUS_OK - A file find request was sent.

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