we do not need tasks. that's an overkill.
[apps/pfixtools.git] / job.h
diff --git a/job.h b/job.h
index 388d8f3..45d3e89 100644 (file)
--- a/job.h
+++ b/job.h
@@ -60,19 +60,8 @@ enum smtp_state {
 
 typedef struct job_t   job_t;
 typedef struct jpriv_t jpriv_t;
-typedef struct task_t  task_t;
-typedef struct tpriv_t tpriv_t;
 typedef struct query_t query_t;
 
-struct task_t {
-    void (*start)(job_t *, query_t *);
-    void (*stop)(job_t *);
-    void (*cancel)(job_t *);
-    void (*process)(job_t *);
-
-    tpriv_t *tdata;
-};
-
 struct job_t {
     unsigned state : 6;
     unsigned done  : 1;
@@ -80,7 +69,9 @@ struct job_t {
 
     int fd;
 
-    task_t  *task;
+    void (*stop)(job_t *);
+    void (*process)(job_t *);
+
     jpriv_t *jdata;
 };