1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
8<title>DWC_GdbRateRecordAsync</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__gdb_8h_149e3f4e87708f29f82e46c97a361e094"></a>
14<h1 align="left">DWC_GdbRateRecordAsync</h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;dwc.h&gt;</CODE><BR>
20  <BR>
21  <PRE><CODE><a href=Macro.html#dwc__gdb_8h_1cb77329e259246f72c99a77edee22a86>DWCGdbError</a> <a href=DWC_GdbRateRecordAsync.html#dwc__gdb_8h_149e3f4e87708f29f82e46c97a361e094>DWC_GdbRateRecordAsync</a>(const char *table_name,
22                                   int record_id,
23                                   u8 rating);</CODE></PRE></dd>
24</dl>
25
26<h2>Arguments</h2>
27
28<TABLE border="1" width="100%">
29  <TBODY>
30
31    <TR>
32<TD width="13%"><EM><STRONG>table_name</STRONG></EM></TD>
33<TD width="87%">Table name.</TD>
34    </TR>
35
36    <TR>
37<TD width="13%"><EM><STRONG>record_id</STRONG></EM></TD>
38<TD width="87%">The ID of the record you want to rate.</TD>
39    </TR>
40
41    <TR>
42<TD width="13%"><EM><STRONG>rating</STRONG></EM></TD>
43<TD width="87%">The rating you want to assign.</TD>
44    </TR>
45
46  </TBODY>
47</TABLE>
48
49<h2>Return Values</h2>
50
51<p>Error information.</p>
52
53<H2>Description</H2>
54<p>If the process is successful, the numerical value (0 - 255) specified by the <CODE>rating</CODE> argument is assigned to the record specified by the <CODE>record_id</CODE> argument. Users can perform this rating on records that are not their own, but a user cannot rate the same record twice.</p><p>If the <a href=Macro.html#dwc__gdb_8h_1cb77329e259246f72c99a77edee22a86e9779fbe6ad274d2016ee2ab66a08582><CODE>DWC_GDB_ERROR_NONE</CODE></a> value is returned, the asynchronous process has started.  Wait until the <a href=DWC_GdbGetState.html#dwc__gdb_8h_1369bfca6c2cd6e2e2893c03c94a5e2db><CODE>DWC_GdbGetState</CODE></a> function stops returning <a href=Macro.html#dwc__gdb_8h_1eb0cda4da19d6df37e71df9d0de849eb605bb3a74ef4c38439052c43bdae07ce><CODE>DWC_GDB_STATE_IN_ASYNC_PROCESS</CODE></a>.</p><p>You can get the result using the <a href=DWC_GdbGetAsyncResult.html#dwc__gdb_8h_1f700899219d0635bc4e4430fa9b7e840><CODE>DWC_GdbGetAsyncResult</CODE></a> function.</p>
55
56<H2>Revision History</H2>
57<DL>
58
59</DL>
60<hr><p>CONFIDENTIAL</p></body>
61</html>
62