aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-op-queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-op-queue.h')
-rw-r--r--camel/camel-op-queue.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/camel/camel-op-queue.h b/camel/camel-op-queue.h
index 809946867f..9c91ca9297 100644
--- a/camel/camel-op-queue.h
+++ b/camel/camel-op-queue.h
@@ -30,13 +30,13 @@ extern "C" {
#endif /* __cplusplus }*/
#include <glib.h>
+#include "camel-marshal-utils.h"
-typedef void (CamelOpFunc)(gpointer param);
-typedef struct {
- CamelOpFunc *func;
- gpointer param;
+typedef struct {
+ CamelFuncDef *func_def;
+ GtkArg *params;
} CamelOp;
@@ -57,8 +57,10 @@ gboolean camel_op_queue_run_next_op (CamelOpQueue *queue);
gboolean camel_op_queue_get_service_availability (CamelOpQueue *queue);
void camel_op_queue_set_service_availability (CamelOpQueue *queue, gboolean available);
-CamelOp *camel_op_new ();
+CamelOp *camel_op_new (CamelFuncDef *func_def);
void camel_op_free (CamelOp *op);
+gboolean camel_op_run (CamelOp *op);
+gboolean camel_op_run_and_free (CamelOp *op);
#ifdef __cplusplus