IMAPX: Explicitly pass GCancellable and GError to callbacks.
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 24 Oct 2012 21:28:25 +0000 (17:28 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 24 Oct 2012 22:08:10 +0000 (18:08 -0400)
commitff1949841d60850409093a666f819e5c963e81ba
tree18dce833a52556f18996cdd27c8a86e3e53006e7
parent3594576b5710f46d4ac6e3b1c014cc343943182c
IMAPX: Explicitly pass GCancellable and GError to callbacks.

Further error handling improvements.  This involves some public API
changes, but the impact is limited to evolution-kolab.

 * CamelIMAPXCommandFunc now takes a GCancellable argument in addition
   to its GError argument.

 * The public GCancellable member of CamelIMAPXJob is now private, and
   the public GError member is removed.

 * The start() method of CamelIMAPXJob now takes a GCancellable and
   GError argument.  The GCancellable pass through this method call
   is always the CamelIMAPXJob's own private GCancellable.

 * A new camel_imapx_job_cancel() function which simply cancels the
   CamelIMAPXJob's internal GCancellable.

Additional changes internal to CamelIMAPXServer are:

 * Adapt operations to the new callback function signatures.

 * imapx_command_queue() now takes a GCancellable and GError argument
   and returns a 'success' boolean.  Other core job and command routing
   functions also now have similar function signatures.

 * Add error handling where needed, so that no failable function call
   goes unchecked.
camel/camel-imapx-command.h
camel/camel-imapx-job.c
camel/camel-imapx-job.h
camel/camel-imapx-server.c
docs/reference/camel/camel-sections.txt