diff options
Diffstat (limited to 'addressbook/backend/pas/pas-backend.c')
-rw-r--r-- | addressbook/backend/pas/pas-backend.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/addressbook/backend/pas/pas-backend.c b/addressbook/backend/pas/pas-backend.c index 076565de07..5b559940d1 100644 --- a/addressbook/backend/pas/pas-backend.c +++ b/addressbook/backend/pas/pas-backend.c @@ -201,6 +201,18 @@ pas_backend_start_book_view (PASBackend *backend, } void +pas_backend_stop_book_view (PASBackend *backend, + PASBookView *book_view) +{ + g_return_if_fail (backend && PAS_IS_BACKEND (backend)); + g_return_if_fail (book_view && PAS_IS_BOOK_VIEW (book_view)); + + g_assert (PAS_BACKEND_GET_CLASS (backend)->stop_book_view); + + (* PAS_BACKEND_GET_CLASS (backend)->stop_book_view) (backend, book_view); +} + +void pas_backend_get_changes (PASBackend *backend, PASBook *book, const char *change_id) @@ -308,6 +320,17 @@ pas_backend_add_book_view (PASBackend *backend, g_mutex_unlock (backend->priv->views_mutex); } +void +pas_backend_remove_book_view (PASBackend *backend, + PASBookView *view) +{ + g_mutex_lock (backend->priv->views_mutex); + + e_list_remove (backend->priv->views, view); + + g_mutex_unlock (backend->priv->views_mutex); +} + /** * pas_backend_add_client: * @backend: An addressbook backend. |