DWC_GdbUploadFileAsync

Syntax

#include <dwc.h>

DWCGdbError DWC_GdbUploadFileAsync(const void *data,
                                   int size,
                                   const char *file_name,
                                   int *file_id);

Arguments

data The data to upload.
size Data size.
file_name The file name, which can be used as metadata during searches. Set NULL here if you will not be using file names.
file_id Pointer to the region that will receive the file ID.

Return Values

Error information.

Description

If the process is successful, the file is uploaded to the server and the file ID is returned.

If the DWC_GDB_ERROR_NONE value is returned, the asynchronous process has started. Wait until the DWC_GdbGetState function stops returning DWC_GDB_STATE_IN_ASYNC_PROCESS.

You can get the result using the DWC_GdbGetAsyncResult function.

Revision History


CONFIDENTIAL