EBookClientCursor: Keep a strong reference to the client
authorTristan Van Berkom <tristanvb@openismus.com>
Fri, 29 Nov 2013 18:12:44 +0000 (03:12 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Fri, 29 Nov 2013 18:36:30 +0000 (03:36 +0900)
commitd15ff9b1ddcc2a4a6fe033f8497d01106cb3714a
tree842396bb24b703e1d52e92ef2aa194e44b68bb94
parent3025a806ccabc7e4c4e6f522baaaa9726f04dcf9
EBookClientCursor: Keep a strong reference to the client

When finalizing a cursor, it is important to have access
to the direct backend available so that it can be asked
to delete the direct access cursor instance.

For this reason EBookClientCursor must keep the EBookClient alive,
EBookClient now exposes a hidden API (not in the header file)
to allow the EBookClientCursor to ask the EBookClient to delete
the cursor on the EBookClientCursor's behalf.

Ugly, but works.
addressbook/libebook/e-book-client-cursor.c
addressbook/libebook/e-book-client.c