CamelIMAPXJob: Split out "folder_name" data.
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 31 Jan 2012 21:45:35 +0000 (16:45 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Tue, 31 Jan 2012 22:06:06 +0000 (17:06 -0500)
commita97a7aff3ea212f7046a929942a6c884d4e1cfe7
tree866c06dab8df19cfa3c1bb75c5b3879fd48f2b60
parent58a65ca8d81222f3ac8d855e71a3b0f42bb590f8
CamelIMAPXJob: Split out "folder_name" data.

Define standalone CreateFolderData and DeleteFolderData structs and
"free" functions.

Use camel_imapx_job_set_data() to attach an allocated struct to a
CamelIMAPXJob such that it will be freed along with the job.

Use camel_imapx_job_get_data() to obtain a pointer to the allocated
struct as needed, always with a NULL check for safety.
camel/providers/imapx/camel-imapx-job.h
camel/providers/imapx/camel-imapx-server.c