<ol>\r
<li>Set the log type with <span style="font-family: Courier New,Courier,monospace">contacts_record_set_int()</span> function. This function takes the log record handle as the first parameter, <span style="font-family: Courier New,Courier,monospace">_contacts_phone_log.log_type</span> as the second, and the type, which is a integer value, as the third parameter. The function returns the status code. If the function returns an error, free memory, remove handles, and disconnect from the service, if needed.\r
<pre class="prettyprint">\r
-error_code = contacts_record_set_int(log, _contacts_phone_log.log_type, CONTACTS_PLOG_TYPE_VOICE_INCOMMING);\r
+error_code = contacts_record_set_int(log, _contacts_phone_log.log_type, CONTACTS_PLOG_TYPE_VOICE_INCOMING);\r
if (error_code != CONTACTS_ERROR_NONE)\r
dlog_print(DLOG_ERROR, LOG_TAG, "contacts record set integer failed: %x", error_code);\r
</pre>\r
</li>\r
\r
<li>Add a condition, such as the log type.\r
- <p>The following example retrieves only those logs which type is <span style="font-family: Courier New,Courier,monospace">CONTACTS_PLOG_TYPE_VOICE_INCOMMING</span>.</p>\r
+ <p>The following example retrieves only those logs which type is <span style="font-family: Courier New,Courier,monospace">CONTACTS_PLOG_TYPE_VOICE_INCOMING</span>.</p>\r
<pre class="prettyprint">\r
-error_code = contacts_filter_add_int(filter, _contacts_phone_log.log_type, CONTACTS_MATCH_EQUAL, CONTACTS_PLOG_TYPE_VOICE_INCOMMING);\r
+error_code = contacts_filter_add_int(filter, _contacts_phone_log.log_type, CONTACTS_MATCH_EQUAL, CONTACTS_PLOG_TYPE_VOICE_INCOMING);\r
if (error_code != CONTACTS_ERROR_NONE)\r
dlog_print(DLOG_ERROR, LOG_TAG, "contacts filter add integer failed: %x", error_code);\r
</pre>\r