os22: filter get_changes based on objtype selection
commitc76055c97a072c43bb5cb1e8a7c2d7c54a172fef
authorChris Frey <cdfrey@foursquare.net>
Thu, 15 Sep 2011 22:28:39 +0000 (15 18:28 -0400)
committerChris Frey <cdfrey@foursquare.net>
Thu, 15 Sep 2011 22:28:39 +0000 (15 18:28 -0400)
tree2f21e25f1dad2f4bf3ce5fe0bb528440cfc3c81e
parent1dff87714f62ff2158b52122299176cad9cf90cd
os22: filter get_changes based on objtype selection

The 0.22 plugin retrieves changes for calendar and contacts in one
function call, and would filter one or the other based on the Barry
configuration.

But there is another way to filter it, from the opensync side, by
enabling and disabling objtypes.

This commit checks both.

This should not be needed for the 0.4x plugin, since get_changes is
handled in multiple function calls for each objtype.
opensync-plugin/src/barry_sync.cc