aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-pt-proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder-pt-proxy.c')
-rw-r--r--camel/camel-folder-pt-proxy.c36
1 files changed, 35 insertions, 1 deletions
diff --git a/camel/camel-folder-pt-proxy.c b/camel/camel-folder-pt-proxy.c
index 0d7bc3c957..d8031fb398 100644
--- a/camel/camel-folder-pt-proxy.c
+++ b/camel/camel-folder-pt-proxy.c
@@ -44,6 +44,9 @@
#include "camel-folder-pt-proxy.h"
#include "camel-log.h"
#include <pthread.h>
+#include <unistd.h>
+#include <string.h>
+#include <errno.h>
/* needed for proper casts of async funcs when
* calling pthreads_create
@@ -132,6 +135,14 @@ camel_folder_proxy_class_init (CamelFolderPtProxyClass *camel_folder_pt_proxy_cl
+static void
+camel_folder_proxy_init (CamelFolderPtProxy *folder_pt_proxy)
+{
+
+
+ folder_pt_proxy->op_queue = camel_op_queue_new ();
+
+}
@@ -147,7 +158,7 @@ camel_folder_proxy_get_type (void)
sizeof (CamelFolderPtProxy),
sizeof (CamelFolderPtProxyClass),
(GtkClassInitFunc) camel_folder_proxy_class_init,
- (GtkObjectInitFunc) NULL,
+ (GtkObjectInitFunc) camel_folder_proxy_init,
/* reserved_1 */ NULL,
/* reserved_2 */ NULL,
(GtkClassInitFunc) NULL,
@@ -175,6 +186,13 @@ _finalize (GtkObject *object)
+static void
+_plan_op_for_exec (CamelOp *op)
+{
+
+
+}
+
/* folder->init_with_store implementation */
@@ -210,7 +228,23 @@ _init_with_store (CamelFolder *folder, CamelStore *parent_store)
CamelFolderPtProxy *proxy_folder = CAMEL_FOLDER_PT_PROXY (folder);
_InitStoreParam *param;
pthread_t init_store_thread;
+ int filedes[2];
+
+#warning Notify io_channel initialization should be elsewhere
+ /* it can not be in camel_folder_proxy_init
+ * because of the pipe error handling */
+ /* set up the notification channel */
+ if (!pipe (filedes)) {
+ CAMEL_LOG_WARNING ("could not create pipe in for camel_folder_proxy_init");
+ CAMEL_LOG_FULL_DEBUG ("Full error message : %s\n", strerror(errno));
+ return;
+ }
+
+ proxy_folder->pipe_client_fd = filedes [0];
+ proxy_folder->pipe_server_fd = filedes [1];
+ proxy_folder->notify_source = g_io_channel_unix_new (filedes [0]);
+
/* param will be freed in _async_init_with_store */
param = g_new (_InitStoreParam, 1);
param->folder = folder;
n>1-10/+9 * Fix depedency to unzip command.maho2012-07-181-1/+1 * Add WANT_LEAD_0 knob.maho2012-03-121-0/+9 * - remove MD5ohauer2011-07-031-1/+0 * - Don't use UNZIP_CMD in a DEPENDS line. A user may redefine UNZIP_CMD to bewxs2009-09-091-1/+1 * * Install correct (the troff manpage)maho2009-03-161-2/+2 * Patch from security/flawfinder, and bump portrevision.maho2008-08-132-1/+77 * Make fetchable because ftp://netlib.bell-labs.com/netlib/maho2007-05-221-1/+2 * * f2c.h is now consistent with G77.maho2007-01-152-0/+172 * Grab maintainership.maho2007-01-151-1/+1 * - Update to 20060810miwi2007-01-142-4/+4 * Replace gunzip by minigzip, until gunzip get fixed.thierry2006-10-171-2/+1 * BROKEN: Corrupt distfilekris2006-10-161-0/+2 * Fix make reinstall problem, though the patch differs from that at [1].bsam2006-08-251-1/+1 * - Upgrade to 20060506;thierry2006-08-109-290/+144 * - Add SHA256pav2005-11-251-0/+1 * Fix on 64bit platforms.barner2005-10-052-0/+45 * Tidy up whitespace.trevor2004-04-111-1/+1 * SIZEify.trevor2004-01-291-0/+1 * De-pkg-comment.knu2003-02-212-1/+1 * o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-112-2/+1 * Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-07