#include <dwc.h>DWCGdbError DWC_GdbGetRandomRecordAsync(const char *table_name,
const char **field_names,
int field_num,
const char *filter,
DWCGdbGetRecordsCallback callback,
void *user_param);| table_name | Table name. |
| field_names | Array of names of the fields you want to get. |
| field_num | Number of elements in field_names. |
| filter | Conditions for the records you want to retrieve. Works the same way as SQL's WHERE phrase. If NULL is specified the selection will be made from all records. |
| callback | The callback that will receive the records. |
| user_param | Arbitrary value passed to the callback. |
Error information.
If the process is successful, the callback function specified by the callback argument is called and randomly obtained records are received. The record_num callback argument can take 0 or 1. If set to 0, the records argument becomes NULL. Be aware that if the process fails, the callback will not be called.
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.
CONFIDENTIAL