Add e_collection_backend_claim_all_resources().
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 15 Aug 2012 16:18:53 +0000 (12:18 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 15 Aug 2012 16:18:53 +0000 (12:18 -0400)
commit4a8d06106d07ad8d32178ca00eab520136b4cef8
tree8bd0dfa5d27ba1f993953c52530296c286800064
parent679b10d75730e81fa268e11cfda289a27fd3e306
Add e_collection_backend_claim_all_resources().

Claims all previously used sources that have not yet been claimed by
e_collection_backend_new_child() and returns them in a GList.  Note
that previously used sources can only be claimed once, so subsequent
calls to this function for backend will return NULL.

The backend is then expected to compare the returned list with a
current list of resources from a remote server, create new ESource
instances as needed with e_collection_backend_new_child(), discard
unneeded ESource instances with e_source_remove(), and export the
remaining instances with e_source_registry_server_add_source().
docs/reference/libebackend/libebackend-sections.txt
libebackend/e-collection-backend.c
libebackend/e-collection-backend.h