account_disconnect();
extra = bundle_create();
-bundle_add(extra, SYNC_OPTION_NO_RETRY, "true");
-bundle_add(extra, SYNC_OPTION_EXPEDITED, "false");
+bundle_add_str(extra, SYNC_OPTION_NO_RETRY, "true");
+bundle_add_str(extra, SYNC_OPTION_EXPEDITED, "false");
</pre>
<p>This example creates a bundle and adds options for sync-related information. Since the <span style="font-family: Courier New,Courier,monospace">SYNC_OPTION_NO_RETRY</span> is set to <span style="font-family: Courier New,Courier,monospace">true</span>, the sync service does not retry the operation if the sync operation fails.</p>
</li>
<pre class="prettyprint">
bundle *extra = NULL;
extra = bundle_create();
-bundle_add(extra, SYNC_OPTION_NO_RETRY, "false");
-bundle_add(extra, SYNC_OPTION_EXPEDITED, "false");
+bundle_add_str(extra, SYNC_OPTION_NO_RETRY, "false");
+bundle_add_str(extra, SYNC_OPTION_EXPEDITED, "false");
</pre>
<p>This example creates a bundle and adds options for sync-related information. All the sync options are set to <span style="font-family: Courier New,Courier,monospace">false</span> for a periodic sync request. The sync service tries again when the sync operation has failed and does not grant priority for the sync operation.</p>
</li>