refactoors
[mTask.git] / client / task.h
index 375aafc..41ff04a 100644 (file)
@@ -12,8 +12,9 @@ struct task {
        uint16_t interval;
        unsigned long lastrun;
        uint8_t taskid;
-       struct task *next;
        uint8_t *bc;
+       char type;
+       int value;
 };
 
 bool is_interrupt_task(struct task* t);
@@ -21,9 +22,9 @@ bool had_interrupt(struct task* t);
 
 struct task *task_head(void);
 struct task *task_next(struct task *t);
-void task_init(void);
+
 void task_register(void);
-void task_delete(void);
+void task_delete(uint8_t num);
 
 #ifdef __cplusplus
 }