Return a GError in camel_imapx_job_wait().
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 13 Aug 2013 19:21:29 +0000 (15:21 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Thu, 15 Aug 2013 09:47:55 +0000 (05:47 -0400)
commit3192936f5bc22c654cbb82db51a335e3cf1946b9
treec547fd047866f2d4b0c9c213ad3cde8e5922dfcc
parent3f40ff345f8c0787c015a0b2dcb3be051eb0104d
Return a GError in camel_imapx_job_wait().

Despite the improvements in commit dacf161, there is still a disconnect
in error propagation between CamelIMAPXCommand and CamelIMAPXJob in that
completed jobs are still not aware of whether they failed.

This commit lays the foundations for another attempt to bridge the gap,
this time by adding a means of setting an error on a CamelIMAPXJob with
camel_imapx_job_take_error().  We also break API in order to return the
error through camel_imapx_job_wait().

New functions:

  camel_imapx_job_take_error()
camel/camel-imapx-job.c
camel/camel-imapx-job.h
camel/camel-imapx-server.c
docs/reference/camel/camel-sections.txt